canonical / data-platform-libs

A collection of charm libraries curated by the Data Platform Team
https://charmhub.io/data-platform-libs
Apache License 2.0
10 stars 9 forks source link

[BUG][BACKWARDS_COMPATIBILITY] URI in databag is removed on first read not write #158

Closed juditnovak closed 5 months ago

juditnovak commented 5 months ago

In case secret URI was stored in the databag (Peer Relation Data solution before moving to secret labels), don't remove the databag field after the first read, BUT on the first write

This could result in issues in case we do an upgrade (from a version that was retrieving secrets from URI in databag), read our secrets (thus loose the databag internal-field key that was referring to the secret URI) and we do a rollback after. (NOTE: in case no rollback is applied, all works well.)

github-actions[bot] commented 5 months ago

https://warthogs.atlassian.net/browse/DPE-4072