Skip to content

Commit

Permalink
add the script to download certs and apply azure policy operation on …
Browse files Browse the repository at this point in the history
…an AKS

Signed-off-by: Shahram Kalantari <[email protected]>
  • Loading branch information
shahramk64 committed Jan 31, 2025
1 parent d0eb4ff commit 911f222
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions ratify-on-azure.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

# Get AKS credentials
az aks get-credentials --resource-group $RESOURCE_GROUP --name $CLUSTER_NAME --overwrite-existing --identity

# install helm
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash

Check warning

Code scanning / Scorecard

Pinned-Dependencies Medium

score is 9: downloadThenRun not pinned by hash
Click Remediation section below to solve this issue

# Install Ratify using Helm
helm repo add ratify https://deislabs.github.io/ratify
helm repo update --namespace gatekeeper-system --create-namespace --set authProvider.azureWorkloadIdentity.clientID=$RATIFY_CLIENT_ID --set provider.enableMutation=$ENABLE_MUTATION --set featureFlags.RATIFY_CERT_ROTATION=$ENABLE_CERT_ROTATION

0 comments on commit 911f222

Please sign in to comment.