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: Script Added to rotate secrets in .env #50

Merged

Conversation

SanjaySinghRajpoot
Copy link

Description

The script is a command-line tool that allows users to rotate the secrets for one or more variables in a .env file using a randomly generated value. The script takes the path to the .env file as a required argument and an optional list of variable names to rotate secrets for.

The script reads the contents of the .env file and iterates over each line. For each line that contains a variable name and value and is not commented out, the script checks whether the variable name is in the list of variables to rotate secrets for.

Changes

Added a new file called rotate_secrets.py

@tushar5526
Copy link
Member

LGTM! Let's use this in #49 to rotate the secrets in gitpod and subsequently in #43

@tushar5526 tushar5526 merged commit 78c35a5 into Samagra-Development:main May 16, 2023
@SanjaySinghRajpoot
Copy link
Author

ok, I will do that.

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