Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support symmetric encryption of feature cookie #4

Open
moredip opened this issue May 21, 2014 · 0 comments
Open

Support symmetric encryption of feature cookie #4

moredip opened this issue May 21, 2014 · 0 comments

Comments

@moredip
Copy link
Owner

moredip commented May 21, 2014

As a security-conscious dev
In order to prevent unauthorized access to features via cookie tampering
I want to encrypt the feature flag cookie

We should add an option to encrypt the rack-flags cookie using a symmetric key which is only known by the server, similar to how general cookie encryption is done in Rails (might be worth checking to see if there's a standard cookie encryption middleware we can use).

We should require the user to provide that symmetric key, and not have a known default (false sense of security).

We should make it obvious that not providing an encryption key will be bad. For example, make it so that you turn this feature off by calling allow_insecure_flag_transport or something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant