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

Automatically update User password on Secret change #922

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

evheniyt
Copy link
Contributor

@evheniyt evheniyt commented Dec 27, 2024

Description

Solving a problem with updating User password if it was changed in the Secret by adding an additional attribute to the Opensearch user - secret-version. The logic relies on a default Kubernetes ResourceVersion behavior.

Issues Resolved

Closes #908

Check List

  • Commits are signed per the DCO using --signoff
  • Unittest added for the new/changed functionality and all unit tests are successful
  • Customer-visible features documented
  • No linter warnings (make lint)

If CRDs are changed:

  • CRD YAMLs updated (make manifests) and also copied into the helm chart
  • Changes to CRDs documented

Please refer to the PR guidelines before submitting this pull request.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Copy link
Collaborator

@swoehrl-mw swoehrl-mw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution @evheniyt.
LGTM

@swoehrl-mw swoehrl-mw merged commit d831add into opensearch-project:main Jan 10, 2025
9 checks passed
markbaumgarten pushed a commit to markbaumgarten/opensearch-k8s-operator that referenced this pull request Jan 17, 2025
…ct#922)

### Description
Solving a problem with updating User password if it was changed in the
Secret by adding an additional attribute to the Opensearch user -
`secret-version`. The logic relies on a default Kubernetes
`ResourceVersion` behavior.

### Issues Resolved
Closes opensearch-project#908 

### Check List
- [x] Commits are signed per the DCO using --signoff 
- [x] Unittest added for the new/changed functionality and all unit
tests are successful
- [x] Customer-visible features documented
- [x] No linter warnings (`make lint`)

If CRDs are changed:
- [x] CRD YAMLs updated (`make manifests`) and also copied into the helm
chart
- [x] Changes to CRDs documented

Please refer to the [PR
guidelines](https://github.com/opensearch-project/opensearch-k8s-operator/blob/main/docs/developing.md#submitting-a-pr)
before submitting this pull request.

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and
signing off your commits, please check
[here](https://github.com/opensearch-project/OpenSearch/blob/main/CONTRIBUTING.md#developer-certificate-of-origin).

Signed-off-by: Yevhenii Tiutiunnyk <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

[FEATURE] Operator should automatically update User password if it was changed in the Secret
2 participants