Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Provide Agents username and password via (Sealed)Secret #116

Open
teceP opened this issue Nov 2, 2023 · 0 comments
Open

[FEATURE] Provide Agents username and password via (Sealed)Secret #116

teceP opened this issue Nov 2, 2023 · 0 comments
Assignees

Comments

@teceP
Copy link

teceP commented Nov 2, 2023

I want to specify Agents username and password via a provided SealedSecret.

Instead of creating this Secret automatically https://github.com/crowdsecurity/helm-charts/blob/main/charts/crowdsec/templates/secrets.yaml , I need a "switch" to deactivate it and do something like this:

    env:
      - name: AGENT_USERNAME
        valueFrom:
          secretKeyRef:
            name: agent-credentials-secret-envs
            key: username
      - name: AGENT_PASSWORD
        valueFrom:
          secretKeyRef:
            name: agent-credentials-secret-envs
            key: password

(this doesnt work, since the AGENT_USERNAME and AGENT_PASSWORD are provided two times: by me and be the Secret i linked above)

or something like

secretName: agent-credentials-secret-envs

where agent-credentials-secret-envs contains keys "username" and "password.

I do not want to provide a Base64 password, since it is easy to decode it into a plain password.

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

No branches or pull requests

2 participants