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

feat: always export ID for CACertificate #193

Merged
merged 1 commit into from
Jul 31, 2020
Merged

feat: always export ID for CACertificate #193

merged 1 commit into from
Jul 31, 2020

Conversation

hbagdi
Copy link
Member

@hbagdi hbagdi commented Jul 31, 2020

mtls-auth credentials can be tied to CACertificate.
This leads to a probelm where mtls-auth credential can contain an ID of
a CACertificate but CACertificate is exported to state file without an
ID. Now, on a subsequent sync from scratch, the ID of CACertificate
will be auto generated. This breaks the link between mtls-auth
credential and CACertificate, and the sync fails.

With this patch, like Certificate entity, ID of CACertificate is always
exported, no matter what.

mtls-auth credentials can be tied to CACertificate.
This leads to a probelm where mtls-auth credential can contain an ID of
a CACertificate but CACertificate is exported to state file without an
ID. Now, on a subsequent `sync` from scratch, the ID of CACertificate
will be auto generated. This breaks the link between mtls-auth
credential and CACertificate, and the sync fails.

With this patch, like Certificate entity, ID of CACertificate is always
exported, no matter what.
@hbagdi hbagdi merged commit 3a6eeb5 into main Jul 31, 2020
@hbagdi hbagdi deleted the feat/export-id branch July 31, 2020 18:27
rainest pushed a commit that referenced this pull request Apr 21, 2021
mtls-auth credentials can be tied to CACertificate.
This leads to a probelm where mtls-auth credential can contain an ID of
a CACertificate but CACertificate is exported to state file without an
ID. Now, on a subsequent `sync` from scratch, the ID of CACertificate
will be auto generated. This breaks the link between mtls-auth
credential and CACertificate, and the sync fails.

With this patch, like Certificate entity, ID of CACertificate is always
exported, no matter what.

From #193
AntoineJac pushed a commit that referenced this pull request Jan 23, 2024
mtls-auth credentials can be tied to CACertificate.
This leads to a probelm where mtls-auth credential can contain an ID of
a CACertificate but CACertificate is exported to state file without an
ID. Now, on a subsequent `sync` from scratch, the ID of CACertificate
will be auto generated. This breaks the link between mtls-auth
credential and CACertificate, and the sync fails.

With this patch, like Certificate entity, ID of CACertificate is always
exported, no matter what.

From #193
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.

1 participant