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

Add posibilities to specify metadata password selector per cell #809

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mrkisaolamb
Copy link
Contributor

Now metadata password can be specified per cell using MetadataTemplate. If there is no defined MetadataSecret secret from top nova secret is used

close #524

@openshift-ci openshift-ci bot requested review from gibizer and stuggi July 2, 2024 12:00
Copy link
Contributor

openshift-ci bot commented Jul 2, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mrkisaolamb

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

// between nova and neutron ovn-metadata inside selected cell
// and if this is not defined the global metadata_proxy_shared_secret
// secret will be used
MetadataSecret string `json:"metadataSecret"`
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a deviation from the existing pattern regarding how we get secret data from the user via the Nova CR. So far our interface was a single Nova.spec.secret field and a configurable password selector to select fields out of that secret. I think this patter can be extended without the need on on the user side to create a separate secret per cell to pass the metadata secret.

There could be a per celltemplate or per metadatatemplate password selector to configure which field from the nova.spec.secret should be used for the metadata service in the given cell. We can default that to empty or default it to the same value as the NovaSpec level password selector for the metadata secret "MetadataSecret" to implement that by default all metadata uses the same secret field.

Now metadata password can be specified per cell using
global nova secret. Key should be value of PrefixMetadataCellsSecret + cellName
eg. MetadataCellsSecretcell1. If there is no defined MetadataSecret for cell
secret from MetadataSecret will be used
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.

Cannot specify metadata password selector per cell
2 participants