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

Azure challenge 11 solution does not work #225

Closed
bendehaan opened this issue Mar 8, 2022 · 0 comments
Closed

Azure challenge 11 solution does not work #225

bendehaan opened this issue Mar 8, 2022 · 0 comments
Assignees

Comments

@bendehaan
Copy link
Collaborator

The solution is currently documented as follows:

You can solve this challenge by the following steps:

    Check your vault name with terraform output vault_name.

    Create a new pod file pod.yaml with the following content (replace the vault name with output from the previous step):

apiVersion: batch/v1
kind: Job
metadata:
  name: wrongsecret-3
  labels:
    aadpodidbinding: separate-workload-pod-id
spec:
  template:
    spec:
      containers:
        - name: az
          image: mcr.microsoft.com/azure-cli:latest
          command:
            [
              "sleep", "7200"
            ]
      restartPolicy: Never

    Apply the job with kubectl apply -f job.yaml

You can now exec into the pod, and execute something like az login --identity --allow-no-subscriptions && az keyvault secret show --name wrongsecret-3 --vault-name wrongsecrets-vault-00000. Since the job can access the same vault as the secret challenge pod, it has access to its secrets.

However, when exec'ing into the pod, it seems az login --identity times out.

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

No branches or pull requests

2 participants