-
Notifications
You must be signed in to change notification settings - Fork 77
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
Add vault caching of secrets on relation test #1153
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This specific test is for the certificates relation to ensure that the data presented to units related to vault have a consistent set of data. (cherry picked from commit 752e643)
ajkavanagh
changed the title
Add vault cachine of secrets on relation test
Add vault caching of secrets on relation test
Oct 13, 2023
ajkavanagh
requested changes
Oct 13, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This patch isn't in the stable/antelope branch (yet), so can't be merged here until it is merged in stable/antelope.
openstack-mirroring
pushed a commit
to openstack/charm-vault
that referenced
this pull request
Jan 5, 2024
This cache is used to store certificates and keys issued by the leader unit. Non-leader units read these certificates and keep data in their "tls-certificates" relations up to date. This ensures that charm units that receive certs from vault can read from relation data of any vault unit and receive correct data. This patch is mostly the same as I18aa6c9193379ea454851b6f60a8f331ef88a980 but improved to avoid LP#1896542 by removing the section where a certificate can be reused from cache during create_certs. Co-Authored-By: Rodrigo Barbieri <[email protected]> Co-Authored-By: Alex Kavanagh <[email protected]> func-test-pr: openstack-charmers/zaza-openstack-tests#1153 Closes-Bug: #1940549 Closes-Bug: #1983269 Closes-Bug: #1845961 Related-Bug: #1896542 Change-Id: I0cca13d2042d61ffc6a7c13eccb0ec8c292020c9 (cherry picked from commit 1a1953b)
openstack-mirroring
pushed a commit
to openstack/charm-vault
that referenced
this pull request
Jan 5, 2024
leader-get decodes using json, but leader-set just sets the keys. This wasn't taken into consideration when fetching all the keys to filter for cached keys when a relation is leaving. This is resolved in this patch. func-test-pr: openstack-charmers/zaza-openstack-tests#1153 Change-Id: I2d44ec0c43c1ecffd9ac77a1162ead4e4a01aabe (cherry picked from commit d925ac7)
openstack-mirroring
pushed a commit
to openstack/charm-vault
that referenced
this pull request
Jan 10, 2024
This cache is used to store certificates and keys issued by the leader unit. Non-leader units read these certificates and keep data in their "tls-certificates" relations up to date. This ensures that charm units that receive certs from vault can read from relation data of any vault unit and receive correct data. This patch is mostly the same as I18aa6c9193379ea454851b6f60a8f331ef88a980 but improved to avoid LP#1896542 by removing the section where a certificate can be reused from cache during create_certs. Co-Authored-By: Rodrigo Barbieri <[email protected]> Co-Authored-By: Alex Kavanagh <[email protected]> func-test-pr: openstack-charmers/zaza-openstack-tests#1153 Closes-Bug: #1940549 Closes-Bug: #1983269 Closes-Bug: #1845961 Related-Bug: #1896542 Change-Id: I0cca13d2042d61ffc6a7c13eccb0ec8c292020c9 (cherry picked from commit 1a1953b) (cherry picked from commit 56ca825)
openstack-mirroring
pushed a commit
to openstack/charm-vault
that referenced
this pull request
Jan 10, 2024
leader-get decodes using json, but leader-set just sets the keys. This wasn't taken into consideration when fetching all the keys to filter for cached keys when a relation is leaving. This is resolved in this patch. func-test-pr: openstack-charmers/zaza-openstack-tests#1153 Change-Id: I2d44ec0c43c1ecffd9ac77a1162ead4e4a01aabe (cherry picked from commit d925ac7) (cherry picked from commit 0a18ac2)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This specific test is for the certificates relation to ensure that the data presented to units related to vault have a consistent set of data.
(cherry picked from commit 752e643)