mittwald / kubernetes-secret-generator

Kubernetes controller for automatically generating and updating secrets
Apache License 2.0
330 stars 57 forks source link

Password Policy? #23

Closed danielnbalasoiu closed 4 years ago

danielnbalasoiu commented 4 years ago

Can you add the option to configure the exclusion of custom characters?

Thank you!

martin-helmich commented 4 years ago

Hey @danielnbalasoiu! Thanks for your suggestion. We already use base64 encoding for generated secrets, which limits the alphabet of generated secrets significantly. Can you describe your use case?

In any way, this is not a feature I see on our roadmap for this project. I'd be happy to review and accept any PRs coming our way regarding this feature, but any implementation of this would probably require a heavy rewrite of the current secret generation workflow (which basically just takes n bytes of random data and pipes it through base64 encoding).

mittwald-machine commented 4 years ago

There has not been any activity to this issue in the last 30 days. It will automatically be closed after 7 more days. Remove the stale label to prevent this.

day1118 commented 3 years ago

Hi @martin-helmich I have a use case for this. My secrets sometimes include the / symbol which is not accepted by the tool that reads the secret. Is it possible to exclude this (and any) special characters? Thanks