Skip to content

Generate random passwords in update-docker-env.sh#142

Merged
chamikaJ merged 1 commit intoWorklenz:mainfrom
gdevenyi:patch-2
May 30, 2025
Merged

Generate random passwords in update-docker-env.sh#142
chamikaJ merged 1 commit intoWorklenz:mainfrom
gdevenyi:patch-2

Conversation

@gdevenyi
Copy link
Copy Markdown
Contributor

No description provided.

@kithmina1999
Copy link
Copy Markdown
Contributor

pwgen is not available on Windows systems by default. Since this project needs to support both local development (including Windows environments) and remote/production setups, adding a dependency on pwgen could cause setup issues for Windows users.
came up solutions:

  1. Conditionally use pwgen only in production environments by detecting the system environment
  2. Use a cross-platform alternative that works on both Unix-like and Windows systems
    (e.g., OpenSSL's rand function which is available in Git Bash/MINGW)

@gdevenyi
Copy link
Copy Markdown
Contributor Author

I can certainly swap this for openssl's rand.

@chamikaJ chamikaJ merged commit 3de4f69 into Worklenz:main May 30, 2025
1 check passed
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.

3 participants