jocxfin / pwgen

Simple self hosted password generator
GNU Affero General Public License v3.0
53 stars 3 forks source link

Environment Variables for Password Settings Defaults #36

Closed jocxfin closed 6 months ago

jocxfin commented 6 months ago

Is Your Feature Request Related to a Problem? Please Describe.

Yes, the application's flexibility in a self-hosted environment can be enhanced. While deploying it in self-hosted environment, there is no feature that would allow the user to set password and passphrase generation rules via environment variables. This limitation requires manual interaction for each password generation, which can be cumbersome for batch operations or when aiming for consistency across deployments.

Describe the Solution You'd Like

I would like the application to support the usage of environment variables in the Docker run command to control the password and passphrase settings as defaults. For example, allowing settings like docker run -d -e INCLUDE_DIGITS=true to be used for both passwords and passphrases. This enhancement would streamline the process of setting defaults for password generation, particularly in environments where automation and configuration management tools are utilized.

Describe Alternatives You've Considered

A workaround involves manually configuring each password or passphrase upon generation. However, this approach is not scalable and does not leverage the automation capabilities inherent in containerized environments.

Additional Context

The software utilizes Docker and already supports an environment variable for disabling API checks (NO_API_CHECK). Extending this configuration approach to include password generation settings would significantly improve usability and deployment flexibility.

User Story

As a self-hosted environment administrator, I want to define default settings for password and passphrase generation using environment variables, so that I can automate and standardize the deployment process across different setups.

Acceptance Criteria

Implementation Notes

Potential Challenges

Priority

Medium

Labels

enhancement, usability, Backend, Docker

Other

Origin: https://www.reddit.com/r/selfhosted/comments/1bozfo9/comment/kx8sqod/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button