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

feat: add *-secret-key-id charm configuration for flask, django, golang and fastapi framework charms #2160

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

weiiwang01
Copy link
Contributor

Add the new *-secret-key-id charm configurations to Flask, Django, Golang, and FastAPI framework charms.

The *-secret-key-id configuration serves a similar purpose as the old *-secret-key configuration but instead accepts Juju secrets, providing a more secure way to pass sensitive information like secret keys.

This change is backward-compatible with deployments on Juju 3, as the old configuration still exists but takes lower precedence. However, it might not be compatible with Juju 2, as Juju 2 does not support Juju secrets.

@weiiwang01 weiiwang01 requested a review from lengau as a code owner February 11, 2025 17:52
@weiiwang01 weiiwang01 changed the title Add *-secret-key-id charm configuration for flask, django, golang and fastapi framework charms feat: add *-secret-key-id charm configuration for flask, django, golang and fastapi framework charms Feb 11, 2025
Copy link
Collaborator

@lengau lengau left a comment

Choose a reason for hiding this comment

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

LGTM with the suggested grammatical fix applied to all extensions.

"description": "This configuration is similar to `flask-secret-key`, but instead accepts a Juju user secret ID. "
'The secret should contain a single key, "value", which maps to the actual Flask secret key. '
"To create the secret, run the following command: `juju add-secret my-flask-secret-key value=<secret-string> && juju grant-secret my-flask-secret-key flask-k8s`, "
"and use the outputted secret ID to configure this option.",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
"and use the outputted secret ID to configure this option.",
"and use the output secret ID to configure this option.",

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks! Fixed the grammar issue and squashed the commits.

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.

2 participants