Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DPE-3310] New DataPeer(Unit) objects handling Peer Relation Data (so far secrets only) -- Juju 3.1.7 #333

Open
wants to merge 5 commits into
base: 6/edge
Choose a base branch
from

Conversation

juditnovak
Copy link
Contributor

The same code as #332, running on Juju 3.1.7

@juditnovak
Copy link
Contributor Author

@MiaAltieri @Mehdi-Bendriss

data_interfaces now is at v33. This PR has a WAY older version. I'd suggest to update it (however it's likely to have test failures at that point).

@juditnovak
Copy link
Contributor Author

juditnovak commented Apr 11, 2024

...furthermore you may wanna evaluate if this is your preferred choice, or rather the "dyamic secret creation". (See Peer Realtoin Data Spec )

I can give you more insight to pros and cons.

Comment on lines +143 to +147
additional_secret_fields=[
"backup-password",
"operator-password",
"monitor-password",
],
Copy link
Contributor

@MiaAltieri MiaAltieri Jul 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will not need this in the new version. Dynamically introduce the name of the secrets when we set them

Comment on lines +154 to +160
additional_secret_fields=[
"ca-secret",
"key-secret",
"cert-secret",
"csr-secret",
"chain-secret",
],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also dont need this

Copy link
Contributor

@MiaAltieri MiaAltieri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO MongoDB Team:

  • update data plaform libs
  • resolve merge conflicts
  • make these changes
  • see if it works
  • see what can merged into one lib
  • verify with Judit
  • update across all charms


label = None
if scope == APP_SCOPE:
self.peer_relation_app.update_relation_data(peers.id, {key: value})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

both update_relation_data([...]) with set_secret(peer.id, key,value) - like in postgres charm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants