Open juditnovak opened 11 months ago
@shayancanonical
SecretCache: Your point is valid, it is
However it IS a cache too :-)
The point is that, once you fetch a secret via a SecretCache object, it won't be fetched again within the same event scope. So it's kinda providing a smart layer between DataInterfaces and Juju. It's both handling the interactions AND if the interaction is avoidable it would just return the previously cached data.
(I may need to polish up a code, there could be errors on this still :-) )
Disclaimer
Here we introduce Relations Secrets on top of the existing
data_interfaces
logic.New interfaces:
get_relation_secret_data()
(Provides
,Requires
)set_relation_secret_fields()
(Provides
)get_relation_secret_fields()
,get_relation_secret_fields()
(Requires
)POC demo of usage demonstrated on Opensearch: https://github.com/canonical/opensearch-operator/pull/116