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

[BUG] Annotations conflict when using a single Secret for multiple users #884

Open
evheniyt opened this issue Oct 28, 2024 · 2 comments · May be fixed by #899
Open

[BUG] Annotations conflict when using a single Secret for multiple users #884

evheniyt opened this issue Oct 28, 2024 · 2 comments · May be fixed by #899
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@evheniyt
Copy link
Contributor

In our configuration, we have a single Secret users-credentials which contains passwords for multiple Opensearch users.
Users configuration looks like this:

  users:
    - name: backup-and-restore
      secretName: users-credentials
      secretKey: backup-and-restore
    - name: collections
      secretName: users-credentials
      secretKey: collections
    - name: es-consumer
      secretName: users-credentials
      secretKey: es-consumer

So each user takes it's password from the users-credentials Secret, where the password is a dedicated Secret key.
But after Operator created these users, we could see constant changes in Secret annotations. During reconciling loop Operator updates Secret annotation for each user.

I think it's a pretty common scenario when we are taking Secret from some external secret manager and want to share it by multiple users. Do we really need to set these annotations for the Secret?

@evheniyt evheniyt added bug Something isn't working untriaged Issues that have not yet been triaged labels Oct 28, 2024
@swoehrl-mw
Copy link
Collaborator

Hi @evheniyt

I think it's a pretty common scenario when we are taking Secret from some external secret manager and want to share it by multiple users.

I agree.

Do we really need to set these annotations for the Secret?

I had a quick look at the code and I don't see a technical need for setting the annotations. So I'm fine with removing that code. Would you be open to filing a PR for that?

@swoehrl-mw swoehrl-mw added good first issue Good for newcomers and removed untriaged Issues that have not yet been triaged labels Nov 5, 2024
@evheniyt
Copy link
Contributor Author

evheniyt commented Nov 5, 2024

Will do it soon

@evheniyt evheniyt linked a pull request Nov 10, 2024 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
Status: 🆕 New
Development

Successfully merging a pull request may close this issue.

2 participants