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

Should not use demo keys in production-like environments #50

Open
brodygov opened this issue Mar 6, 2019 · 0 comments
Open

Should not use demo keys in production-like environments #50

brodygov opened this issue Mar 6, 2019 · 0 comments

Comments

@brodygov
Copy link
Contributor

brodygov commented Mar 6, 2019

Currently sp-oidc-sinatra uses the hardcoded demo key in all environments, including when deployed in EC2. This is a low-impact vulnerability today since it could only be used to forge login requests to sandbox environments.

@sp_private_key ||= OpenSSL::PKey::RSA.new(File.read('config/demo_sp.key'))

However, if we ever want to run the sample apps in production, we should ensure that they do not use example keys. Ideally we would remove the demo keys and have this app not ship with any demo keys at all, which would remove the potential for making this error.

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

No branches or pull requests

1 participant