Workflow is an Open Source project aimed towards the creation of data flow models using config files thereby allowing you to easily create and interact with stateful applications with minimum setup.
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.
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