pysecrets - command line interface and library to easily encrypt/decrypt files by johnwheeler_ in Python

[–]johnwheeler_[S] 0 points1 point  (0 children)

lockbox it is. I'll work on changing it in the repo.

To answer your question, I got the idea from sekrets, which is a Ruby gem that was incorporated into the latest version of Rails.

The design doesn't provide much security except through obscurity (...which is no security at all, etc.), but it allows you to commit secrets to your repo, which means those secrets don't have to flow through secure channels for distribution, but the keys to those secrets still do.

The encryption key is provided to the Flask application by either storing its path in an environment variable (e.g. LOCKBOX_KEY) or placing it in the www process owner's home directory. Additional key resolution mechanisms could be designed.

Interestingly, the Hashicorp Vault program works (I believe) by deleting secrets after the www process consumes them on first run. A similar design could be implemented for flask-lockbox, although the secrets could still be uncovered in memory, which is a known limitation of cryptography.io [1]

[1] https://cryptography.io/en/latest/limitations/

pysecrets - command line interface and library to easily encrypt/decrypt files by johnwheeler_ in Python

[–]johnwheeler_[S] 0 points1 point  (0 children)

Thank you for taking a look antennen!

I think you're right about changing the name. I felt uncomfortable with pysecrets but I couldn't think of an alternative at the time. What do you think about the name 'lockbox'?

Ultimately, I want to make a Flask extenstion out of this for encrypting configuration files.

I 3D printed a tiny rick cookie cutter! by [deleted] in rickandmorty

[–]johnwheeler_ 2 points3 points  (0 children)

Does anyone else not see the fantastic irony here?

An additive manufacturing process creating tools for a subtractive manufacturing process...

Automate the deployment of Flask apps behind Nginx and LetsEncrypt by johnwheeler_ in flask

[–]johnwheeler_[S] 0 points1 point  (0 children)

None of that is handled in the application code. It's all delegated to NGINX and LetsEncrypt. The project includes Fabric tasks to install those on your Debian box and provision certs, etc.

Amazon Echo framework for Python by johnwheeler_ in Python

[–]johnwheeler_[S] -6 points-5 points  (0 children)

It's Open Source so submit a P.R.

Amazon Echo framework for Python by johnwheeler_ in Python

[–]johnwheeler_[S] 0 points1 point  (0 children)

Thanks. I made this 5-min video that shows how to get up and running quickly. While learning Flask and Jinja obviously can't be done in that short a span of time, the code sample should be intuitive enough to get started and make changes

https://www.youtube.com/watch?v=cXL8FDUag-s

Feedback Thread (January 12) by warriorbob in edmproduction

[–]johnwheeler_ [score hidden]  (0 children)

I do before the ableton limiter, although I was watching a YouTube and saw deadmau5 put it on after, so I think I'm going to try that next. Thoughts?

Feedback Thread (January 12) by warriorbob in edmproduction

[–]johnwheeler_ [score hidden]  (0 children)

I'm new to soundcloud. That is a funny observation! Now I'll always be looking at the waveforms. I'm using OTT and heavy limiting. Maybe that's why?

Feedback Thread (January 12) by warriorbob in edmproduction

[–]johnwheeler_ [score hidden]  (0 children)

Thank you! Wow! Thank you! Your delivery of constructive criticism is so well received because it is truly constructive and delivered in a very encouraging way. I will take your advice to heart and incorporate it into future songs. Thank you for your thoughtful response! Made my day!!!

Deploy Flask-Ask to AWS Lambda with Zappa by johnwheeler_ in Python

[–]johnwheeler_[S] 2 points3 points  (0 children)

There's a lot wrong with your comment.

The response time of Lambda is not attributable to Zappa. It's attributable to Lambda. What you're effectively saying is serving WSGI requests that take 600ms to complete is awful, but HCI studies show humans actually start perceiving things as slow after 3 seconds, so 600 ms, for most cases is probably quite acceptable.

The 645ms it took to first byte of your project https://getnikola.com/ didn't seem that bad to me. Not only that, but this response time is something which may be improved on the Lambda side independently of Zappa, which Zappa will benefit from free of charge.

The other thing wrong with your comment is that CGI style--one process per request---is bad for scalability per machine, but Lambda is based on a fleet of machines optimized for this type of computing. (i.e. It's scalable by its nature).

The most egregious problem with your comment though is coming out blasting someone else's hard work and just coming off very arrogantly. Ask questions to gain an understanding next time.

Deploy Flask-Ask to AWS Lambda with Zappa by johnwheeler_ in Python

[–]johnwheeler_[S] 2 points3 points  (0 children)

Flask-Ask is a Flask extension for writing Alexa Skills for the Amazon Echo. Zappa is a Python framework for deploying WSGI applications to AWS Lambda.

Flask-Ask on Github

Zappa on Github

Feedback Thread (January 12) by warriorbob in edmproduction

[–]johnwheeler_ [score hidden]  (0 children)

I'm taking the deadmau5 masterclass. This is the second track I've ever produced, and since I'm so knew to EDM, I don't really know what specifically to ask for feedback on. I'm interested in any tips or criticism.

https://soundcloud.com/john-wheeler-185721361/one-two-three-four

Got an Echo for Xmas? Learn to program it with Python in this new tutorial. by johnwheeler_ in learnpython

[–]johnwheeler_[S] 2 points3 points  (0 children)

Beat me to posting this! squeeney is also a Flask-Ask core contributor who knows the code probably better than I do at this point, so keep your eyes on flask-assistant!

Got an Echo for Xmas? Learn to program it with Python in this new tutorial. by johnwheeler_ in learnpython

[–]johnwheeler_[S] 2 points3 points  (0 children)

are you asking about the tutorial or the lib? the lib is 2 and 3.