Skip to content

Conversation

dragomirp
Copy link
Contributor

@dragomirp dragomirp commented May 2, 2024

Follow up to #454

Try to always do the translation from peer data to secrets in case of very old revisions being updated.

@dragomirp dragomirp marked this pull request as ready for review May 2, 2024 19:15
Copy link
Member

@marceloneppel marceloneppel left a comment

Choose a reason for hiding this comment

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

LGTM!

It looks like the change to the get_secret method prevents an unexpected password change at

self.set_secret(APP_SCOPE, password, new_password())
.

Copy link
Contributor

@juditnovak juditnovak left a comment

Choose a reason for hiding this comment

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

So, normally this is somethig that the lib was supposed to do for you.

However (thanks to the wonderful Postgres unittests -- that now will be also migrated to the lib test coverage) I had to realize that there is a bug on this behavior with the new get_secret(), set_secret() methods.

canonical/data-platform-libs#174

So please go ahead with the change (for now).

@dragomirp dragomirp merged commit a4d5b3b into main Jun 6, 2024
@dragomirp dragomirp deleted the translate-all-fields branch June 6, 2024 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants