Skip to content

Commit b02274e

Browse files
committed
2 parents 8d6744b + 136a814 commit b02274e

File tree

3 files changed

+65
-17
lines changed

3 files changed

+65
-17
lines changed

docs/conclusions.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,21 @@
11
# Conclusions
22

3-
We hope this tutorial has introduced you to some practical steps you can take to make your Kubernetes deployments more secure. Thank you for your time!
3+
We hope this tutorial has introduced you to some practical steps you can take
4+
to make your Kubernetes deployments more secure. Thank you for your time!
45

56
## Further reading
67

7-
You'll find more details and further resources about Kubernetes Security [here](https://kubernetes-security.info) including a link to download an electronic copy of our book [here](https://info.aquasec.com/kubernetes-security).
8+
You'll find more details and further resources about Kubernetes Security at
9+
[kubernetes-security.info](https://kubernetes-security.info) including a link
10+
to download an electronic copy of our book [here](https://info.aquasec.com/kubernetes-security):
811

912
![Kubernetes Security book](https://kubernetes-security.info/assets/img/cover.png)
1013

11-
If you'd like to dive into more technical details, you might also like to check out Liz's book on [Container Security](https://container-security.tech).
14+
If you'd like to dive into more technical details, you might also like to
15+
check out Liz's book on [Container Security](https://container-security.tech).
16+
17+
## Related resources
18+
19+
- [KubeCon NA 2019 CTF](https://securekubernetes.com/)
20+
- [rbac.dev](https://rbac.dev/) has RBAC tools and recipes
21+
- [Amazon EKS Best Practices Guide for Security](https://aws.github.io/aws-eks-best-practices/)

docs/gitops.md

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,39 @@
11
# GitOps
22

3-
## Concept
3+
We wrap up this tutorial with a special topic insofar that it doesn't
4+
demonstrate an attack of shows a control in action but rather discusses a
5+
good practice. [GitOps](https://www.gitops.tech/) is a continuous or sometimes
6+
called progressive deployment method. The source of truth for the state of the
7+
deployments is Git and the way how a deployment is done is as follows:
48

5-
## Using Flux
9+
1. As a developer or release engineer, you commit a change (for example, via
10+
a pull request in GitHub.
11+
1. A combination of bots and human reviewers comment on the commit, request
12+
changes and/or merge it, eventually.
13+
1. In the Kubernetes cluster runs an agent that watches the Git repo and on
14+
changes, kicks off a new deployment.
615

7-
## Using ArgoCD
16+
In this setup, other than for read-only or potentially troubleshooting access
17+
(with tight RBAC settings) the end-user does not have access to the Kubernetes
18+
cluster. In other words, a `kubectl apply -f ...` is not possible, every change
19+
of the application configuration is reviewed and part of an immutable log, the
20+
Git repo's commit log. This allows at any point in time to reset the state to
21+
a well-defined and good, previous state. Further, since it's formally and
22+
automatically on record who requested and who approved a change, auditing is
23+
straightforward.
24+
25+
There are a number of tools available for applying GitOps in your team, for
26+
example:
27+
28+
- CNCF [Flux](https://docs.fluxcd.io)
29+
- CNCF [ArgoCD](https://argoproj.github.io/argo-cd/)
30+
31+
32+
To see GitOps in action, head over to the GitOps Toolkit and do go through
33+
the [Get Started](https://toolkit.fluxcd.io/get-started/) guide.
34+
35+
Learn more about GitOps via:
36+
37+
- [Adopting GitOps for Kubernetes on AWS](https://acloudguru.com/blog/engineering/adopting-gitops-for-kubernetes-on-aws)
38+
- Introduction To GitOps Toolkit: [video](https://www.youtube.com/watch?v=qQBtSkgl7tI)
39+
and [slide deck](https://www.slideshare.net/weaveworks/gitops-toolkit-cloud-native-nordics-tech-talk).

mkdocs.yml

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,25 @@ site_author: 'Liz Rice and Michael Hausenblas'
44
repo_name: 'k8s-sec/cloud-native-security-tutorial'
55
repo_url: 'https://github.com/k8s-sec/cloud-native-security-tutorial'
66
copyright: 'Copyright © Liz Rice and Michael Hausenblas'
7+
docs_dir: 'docs'
78
nav:
8-
- Overview: index.md
9-
- Introduction: introduction.md
10-
- Preparation: preparation.md
11-
- Compromise a pod!: compromise.md
12-
- Scanning: scanning.md
13-
- Policies: policies.md
14-
- Secure settings: settings.md
15-
- GitOps: gitops.md
16-
- Conclusion: conclusions.md
9+
- Home:
10+
- Overview: index.md
11+
- Introduction: introduction.md
12+
- Preparation: preparation.md
13+
- Exercises:
14+
- Compromised pod: compromise.md
15+
- Scanning: scanning.md
16+
- Policies: policies.md
17+
- Secure settings: settings.md
18+
- GitOps: gitops.md
19+
- Conclusion:
20+
- conclusions.md
1721
theme:
1822
name: 'material'
23+
features:
24+
- 'tabs'
25+
- 'instant'
1926
icon:
2027
logo: 'material/lock'
2128
font:
@@ -35,5 +42,4 @@ markdown_extensions:
3542
- admonition
3643
- codehilite:
3744
linenums: true
38-
- pymdownx.details
39-
- pymdownx.superfences
45+

0 commit comments

Comments
 (0)