Hello Community,
I’m facing a major roadblock with my Google Cloud project and need urgent assistance. Here’s a summary of my issue:
The Problem:
-
Service Account in Question:
- Email: tlentine-upahead-online@[project].iam.gserviceaccount.com
-
Issue:
-
I am unable to create a key for this service account (or any other service account in my project) due to an enforced organization-level policy:
constraints/iam.disableServiceAccountKeyCreation. -
When attempting to create a key, I receive this error:
ERROR: (gcloud.iam.service-accounts.keys.create) FAILED_PRECONDITION: Key creation is not allowed on this service account. - '@type': type.googleapis.com/google.rpc.PreconditionFailure violations: - description: Key creation is not allowed on this service account. subject: projects/[project]/serviceAccounts/tlentine-upahead-online@[project].iam.gserviceaccount.com type: constraints/iam.disableServiceAccountKeyCreation
-
Steps I’ve Taken:
-
Policy Checks:
- Used gcloud org-policies describe to confirm that constraints/iam.disableServiceAccountKeyCreation is enforced at the organization level.
- Attempted to disable or reset the policy, but lack the orgpolicy.policies.update permission.
-
Service Account Key List:
- Verified that a key exists for the service account, valid until 2025-01-14.
- However, I cannot locate the .json file associated with the key.
-
Support Limitations:
- I attempted to upgrade my support plan but found I am not eligible to purchase Standard or Enhanced Support.
Questions:
- How can I create a new key or recover the existing one under this enforced policy?
- Is there a workaround or alternative authentication method (e.g., Workload Identity Federation) that I can use without violating the policy?
- Has anyone encountered and resolved a similar issue with a locked-down organization policy?
Context:
- I am the owner of the project but lack permissions to modify organization-level policies.
- My current support plan is Basic Support (billing-only), limiting my options to escalate this issue.
Any help, insights, or pointers would be greatly appreciated! This issue is significantly delaying my project.
Thank you in advance!
Thomas Lentine
Owner, UpAhead LLC