Skip to content

✨(backend) support _FILE environment variables for secrets #912

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

soyouzpanda
Copy link

Related to #909

@soyouzpanda soyouzpanda force-pushed the feature/environment-variables-file branch 2 times, most recently from 88c3c56 to 98a7eaa Compare April 28, 2025 19:11
@soyouzpanda soyouzpanda force-pushed the feature/environment-variables-file branch from 98a7eaa to d47c362 Compare April 28, 2025 19:12
@soyouzpanda soyouzpanda marked this pull request as ready for review April 28, 2025 19:13
@@ -37,6 +37,34 @@ def get_release():
except (FileNotFoundError, KeyError):
return "NA" # Default: not available

class SecretFileValue(values.Value):
Copy link
Member

Choose a reason for hiding this comment

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

tests are missing to validate this new class.
There is no docstring explaining how to use it
There is no documentation at all.

@lunika
Copy link
Member

lunika commented Apr 29, 2025

I suggest to add this in https://github.com/suitenumerique/django-lasuite/

As you are doing nix packages for all projects, you will need it everywhere. Instead copy/pasting it, do it in the django-lasuite package.

Thanks

@soyouzpanda
Copy link
Author

I suggest to add this in https://github.com/suitenumerique/django-lasuite/

As you are doing nix packages for all projects, you will need it everywhere. Instead copy/pasting it, do it in the django-lasuite package.

Thanks

Should I wait that the PR suitenumerique/django-lasuite#15 is merged ? (I think so)

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