canonical / canonical/data-platform-libs
Database created event will be triggered before database setup, if a secret is created too early
- Dominant language
- Python
- Stars
- 13
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Description
Should be reproducible with the steps described in [DPE-5564](https://warthogs.atlassian.net/browse/DPE-5564)
The underlying issue was that Pgbouncer was setting an dud URI secret that triggered the check on:
https://github.com/canonical/data-platform-libs/blob/c5696736e6582b8e93794f6fe15f356ac620efa0/lib/charms/data_platform_libs/v0/data_interfaces.py#L3139
Which emitted a database created event even if the database was not yet configured on data-integrator's side.
[DPE-5564]: https://warthogs.atlassian.net/browse/DPE-5564?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
Contributor guide
Assessment
This issue has not been assessed yet.