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

Update Key Vault to use Azure RBAC #306

Merged
merged 7 commits into from
Jun 28, 2024
Merged

Conversation

TomAugspurger
Copy link
Contributor

@TomAugspurger TomAugspurger commented Jun 26, 2024

Description

This updates our deployment to use Azure RBAC for key vault access, rather than the classic Key Vault access policies. This is deployed to staging.

Some of the unused KEDA stuff needed to be removed manually (otherwise the helm install failed with Error: customresourcedefinitions.apiextensions.k8s.io "triggerauthentications.keda.sh" not found).

To confirm the fix, I

  1. applied the terraform changes, which removed the class Access Policies in favor of Azure RBAC role assignments
  2. Submitted a workflow pctasks dataset ingest-collection -d ~/src/Microsoft/planetary-computer-tasks/datasets/ecmwf-forecast/dataset.yaml -su , which failed because pctasks couldn't read the secret from the keyvault.
  3. Manually switched the key vault to Azure RBAC and resubmitted the workflow, which now succeeded.

Tom Augspurger added 2 commits June 26, 2024 16:26
@TomAugspurger TomAugspurger merged commit 8b4d2a7 into main Jun 28, 2024
5 checks passed
@TomAugspurger TomAugspurger deleted the user/tom/fix/keyvault-rbac branch June 28, 2024 11:53
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.

2 participants