Skip to content

Conversation

@ferrohd
Copy link

@ferrohd ferrohd commented Sep 17, 2025

Description

This PR implements hex encoding support for both password and UUID generators, addressing the need for hexadecimal-encoded secrets in various applications and configuration systems.

Closes #185

Usage Examples

After this change, users can generate hex-encoded secrets:

apiVersion: v1
kind: Secret
metadata:
  name: my-secret
  labels:
    secret-generator.cs.sap.com/enabled: "true"
stringData:
  hex-password: "%generate:password:length=16;encoding=hex"
  hex-uuid: "%generate:uuid:encoding=hex"

- Add hex encoding option to encode() function in mutator.go
- Add comprehensive unit tests for hex encoding in mutator_test.go
- Add integration tests for hex encoding in suite_test.go
- Update README.md documentation to include hex encoding option
- Support hex encoding for both password and UUID generators
- Maintain backward compatibility with existing encodings
@cla-assistant
Copy link

cla-assistant bot commented Sep 17, 2025

CLA assistant check
All committers have signed the CLA.

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.

[FEATURE]Add hex encoding support for password and UUID generators

1 participant