Skip to content

Commit 3163b60

Browse files
committed
readme
1 parent b23f079 commit 3163b60

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Policy checker
2+
3+
This is a tool that can be used locally and in CI by tooling to determine if the repository is compliant with policy.
4+
5+
The version of policy is determined by:
6+
- Kubernetes: reads the `kustomization.yaml` file and retrieves the `commonLabels['mycompany.com/policy-version']`
7+
- Terraform: reads the variable default_value of `mycompany.com/policy-version`
8+
9+
If theres any `.tf` files it'll check terraform and check kubernetes if theres a `kustomization.yaml`.
10+
asdasdaff
11+
12+
## ⚠️⚠️ This is not intended for general use or to be immediately reusable ⚠️⚠️
13+
The location of the policy it retrieves is hardcoded to get from [example-policy-org-demo/policy](https://github.com/example-policy-org-demo/policy). This was a very concious limitation to scope this to the proof of concept of the [example-policy-org-demo github org](https://github.com/example-policy-org), to make this more reusable it needs to handle authenticating to retrieve the policy where it's in a private repo, be a significantly smaller image, cache the policy so it doesn't need to be retrieved on every execution and find a better story than docker to be able to execute locally for the sake of speed.
14+
15+
## Usage
16+
17+
```bash
18+
$ docker run --rm -v $(pwd):/apps ghcr.io/example-policy-org-demo/policy-checker
19+
```

0 commit comments

Comments
 (0)