canonical / mongodb-operator

Charmed solution for MongoDB
Apache License 2.0
12 stars 14 forks source link

[DPE-5215] feat(libs): Correct use of data_interfaces #472

Closed Gu1nness closed 2 months ago

Gu1nness commented 2 months ago

Issue

Solution

This library was not using the data interface library the right way. The provider should not write in the databag before the database_requested event which is fired when the requirer asks for the DB and write its name + the requested-secrets list in the databag.

This commit hence:

Gu1nness commented 2 months ago

I have logged a ticket to do the implementation you are suggesting @juditnovak but I think this is out of scope for this ticket and I don't have some additional bandwidth to handle this during this pulse. This will be reviewed, scoped, and tackled as soon as we have some time.