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

[Bug]: Primary CryptoKey not being updated with new CryptoKey version #584

Closed
1 task done
AnaisUrlichs opened this issue Jul 22, 2024 · 3 comments
Closed
1 task done
Labels
bug Something isn't working needs:triage stale

Comments

@AnaisUrlichs
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Affected Resource(s)

  • kms.gcp.upbound.io/v1beta1 - CryptoKey and CryptoKeyVersion

Resource MRs required to reproduce the bug

KeyRing, CryptoKey and CryptoKeyVersion

https://marketplace.upbound.io/providers/upbound/provider-gcp-kms/v1.5.0/resources/kms.gcp.upbound.io/CryptoKey/v1beta1
https://marketplace.upbound.io/providers/upbound/provider-gcp-kms/v1.5.0/resources/kms.gcp.upbound.io/CryptoKeyVersion/v1beta1
https://marketplace.upbound.io/providers/upbound/provider-gcp-kms/v1.5.0/resources/kms.gcp.upbound.io/KeyRing/v1beta1

Steps to Reproduce

I have deployed a KeyRing and a CryptoKey. Once the CryptoKey is deployed, it will by default create the first key version (if skipInitialVersionCreation is not set to true) and set the first key as the primary key & update the status.atProvider.primary field with the primary key version path in gcp.

Next, I deployed a new CryptoKeyVersion referencing the original CryptoKey.

What happened?

A new KeyVersion is indeed created on GCP (Version 2 if Version 1 has been created with the CryptoKey Resource). However, it is not automatically set as the primary Key.

So my questions is:
- How do I set a new CryptoKeyVersion as the Primary Key?

I have also tried importing the CryptoKeyVersion using the KeyRingImportJob. However, then it just creates the new CryptoKey Version without setting the first nor the second as the Primary Key and the status of the Key in GCP remains Not available.

Any help is highly appreciated.

Relevant Error Output Snippet

No response

Crossplane Version

1.16.0

Provider Version

1.5.0

Kubernetes Version

No response

Kubernetes Distribution

GKE

Additional Info

No response

@AnaisUrlichs AnaisUrlichs added bug Something isn't working needs:triage labels Jul 22, 2024
@Sijoma
Copy link

Sijoma commented Aug 20, 2024

Plus 1 here. In addition to setting a Key as primary: I'm also wondering how to restore a specific CryptoKey if it was deleted in GCP by mistake.

Copy link

This provider repo does not have enough maintainers to address every issue. Since there has been no activity in the last 90 days it is now marked as stale. It will be closed in 14 days if no further activity occurs. Leaving a comment starting with /fresh will mark this issue as not stale.

@github-actions github-actions bot added the stale label Nov 19, 2024
Copy link

github-actions bot commented Dec 3, 2024

This issue is being closed since there has been no activity for 14 days since marking it as stale. If you still need help, feel free to comment or reopen the issue!

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs:triage stale
Projects
None yet
Development

No branches or pull requests

2 participants