Skip to content

fix(secrets-manager): remove bogus sourceSecret property from SecretImporter CRD - #1165

Open
jorgemoralespou wants to merge 1 commit into
educates:developfrom
jorgemoralespou:bugfix/remove-secretimporter-sourcesecret
Open

fix(secrets-manager): remove bogus sourceSecret property from SecretImporter CRD#1165
jorgemoralespou wants to merge 1 commit into
educates:developfrom
jorgemoralespou:bugfix/remove-secretimporter-sourcesecret

Conversation

@jorgemoralespou

Copy link
Copy Markdown
Collaborator

The SecretImporter custom resource definition declared a sourceSecret
property in its schema, and the documentation described it as a way of
qualifying by name which source secret could be copied. The secrets manager
never reads this property: the secret a SecretImporter accepts is always
determined from the name of the SecretImporter resource itself, and the
source secret name comes from the SecretCopier or SecretExporter rule.

This removes the unused property from the CRD schema, drops the
documentation section that described the non-existent behaviour, and adds a
release notes entry for 4.0.0 noting that manifests which set the field
should remove it, since strict kubectl field validation would reject the
field once the schema no longer declares it.

Fixes #1036

…mporter CRD

The SecretImporter CRD declared a sourceSecret property that the secrets
manager never reads; the secret a SecretImporter accepts is always
determined from the name of the SecretImporter resource itself. Remove
the property from the CRD schema and drop the documentation section that
described the non-existent behaviour.

Fixes educates#1036
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SecretImporter has bogus sourceSecret section.

1 participant