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

Add audit to demo #116

Merged
merged 4 commits into from
May 17, 2019
Merged

Add audit to demo #116

merged 4 commits into from
May 17, 2019

Conversation

ritazh
Copy link
Member

@ritazh ritazh commented May 15, 2019

No description provided.

@ritazh ritazh requested a review from maxsmythe May 15, 2019 16:03
@@ -100,6 +100,16 @@ echo

pe "kubectl get k8sbannedimagetags -oyaml"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

k8sbannedimagetags shows audit results (and mostly exists to show the audit results). Is there something specific we're trying to solve with the extra commands?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The k8sbannedimagetags example did not result in any violations (at least not in my test cluster) and we didnt create any deployment with latest tag images in the demo. Hence I added some thing that gives us violations.

demo/agilebank/demo.sh Outdated Show resolved Hide resolved
Copy link
Contributor

@maxsmythe maxsmythe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM after nits.

@@ -88,19 +85,13 @@ echo
NO_WAIT=true
p "All is well with the world, until the big outage. The bank is down for hours."
read
p "We must never again use the :latest tag in production!"
p "We had no idea there were resources in the cluster without resource limits. Now they are causing issues in production!"
echo
NO_WAIT=false

echo "===== ENTER admin ====="
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move ENTER admin above "We had no idea there were ..."


pe "kubectl get k8sbannedimagetags -oyaml"
echo
read
NO_WAIT=true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can leave NO_WAIT=true until we switch back to actual shell input

Signed-off-by: Rita Zhang <rita.z.zhang@gmail.com>
Signed-off-by: Rita Zhang <rita.z.zhang@gmail.com>
Signed-off-by: Rita Zhang <rita.z.zhang@gmail.com>
Signed-off-by: Rita Zhang <rita.z.zhang@gmail.com>
@ritazh ritazh merged commit 836815b into open-policy-agent:master May 17, 2019
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