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

Improve env var name #406

Merged
merged 1 commit into from
Mar 11, 2024
Merged

Improve env var name #406

merged 1 commit into from
Mar 11, 2024

Conversation

seallard
Copy link
Contributor

An env var was vaguely named.

@seallard seallard requested a review from a team as a code owner March 11, 2024 15:04
Copy link

sonarcloud bot commented Mar 11, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@@ -18,7 +18,7 @@ class Container(containers.DeclarativeContainer):
oauth_client_secret: str = os.environ.get("GOOGLE_CLIENT_SECRET")
oauth_redirect_uri: str = os.environ.get("GOOGLE_REDIRECT_URI")
google_oauth_base_url: str = os.environ.get("GOOGLE_OAUTH_BASE_URL")
encryption_key: str = os.environ.get("SECRET_KEY")
encryption_key: str = os.environ.get("ENCRYPTION_KEY")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think I like "encryption_key". In many cryptographic schemas there are both public and private/secret keys. So I think this is probably a bit more unclear to me.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, what do you think it should be called?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Either AES_SECRET_KEY or PRIVATE_KEY or something like it?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe AES_PRIVATE_KEY might be best?

@seallard seallard merged commit 28f993e into master Mar 11, 2024
5 checks passed
@seallard seallard deleted the improve-env-name branch March 11, 2024 15:06
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

Successfully merging this pull request may close these issues.

None yet

2 participants