Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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-3654] Peer cluster data stored in a secret #463
base: 2/edge
Are you sure you want to change the base?
[DPE-3654] Peer cluster data stored in a secret #463
Changes from all commits
484f930
52d9410
64612e5
267dd2a
14dcd4a
e4d2229
94408f8
a894458
f95739e
ec8227b
6ee5596
6c66252
545436f
b2fb840
0c256dd
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is it needed to serialize into a dict?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is needed to serialize to a dict, why not work with the object and its attributes directly? I would rather we work with the former.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do not want to mutate the object directly. We can either use the dict or copy the object and update the content of the secret to their respective ids.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Mehdi-Bendriss We cannot directly use the
PeerClusterRelData
object directly because of theadmin_tls
field in the credentials which isdict
. The secret IDs arestr
. I can either create a new model for the redacted peer cluster relation data or stick with thedict
. WDYT?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Likewise, this secret should be caught straight from the s3 relation, once it supports granting secrets around.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and it should be only one
s3
secret, not 2 like we currently do