Skip to content

Commit

Permalink
fix for s3 secret ids
Browse files Browse the repository at this point in the history
  • Loading branch information
skourta committed Oct 26, 2024
1 parent e4d2229 commit 94408f8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/charms/opensearch/v0/opensearch_relation_peer_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,11 @@ def _grant_rel_data_secrets(

for rel_id in all_rel_ids:
if relation := self.get_rel(rel_id=rel_id):
self.secrets.grant_secret_to_relation(secret_id, relation)
if key == "s3":
self.secrets.grant_secret_to_relation(secret_id["access_key"], relation)
self.secrets.grant_secret_to_relation(secret_id["secret_key"], relation)
else:
self.secrets.grant_secret_to_relation(secret_id, relation)


class OpenSearchPeerClusterRequirer(OpenSearchPeerClusterRelation):
Expand Down

0 comments on commit 94408f8

Please sign in to comment.