https://github.com/4ch1m/reject-k8s-secrets
https://github.com/4ch1m/reject-k8s-secrets
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/4ch1m/reject-k8s-secrets
- Owner: 4ch1m
- Archived: true
- Created: 2023-08-11T06:38:12.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-08-11T07:11:11.000Z (about 2 years ago)
- Last Synced: 2025-03-24T04:32:08.457Z (7 months ago)
- Language: Java
- Size: 46.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# reject-k8s-secrets
A (quick and dirty) POC/sample implementation of a custom pre-receive hook for Atlassian's Bitbucket server.
The hook rejects specific `Secret` declarations in K8s YAML files.
The actual magic happens in ...
* [MyPreReceiveRepositoryHook.java](src/main/java/com/foobar/reject_k8s_secrets/hook/MyPreReceiveRepositoryHook.java)and
* [YamlParser.java](src/main/java/com/foobar/reject_k8s_secrets/parser/YamlParser.java)Developed with [Atlassian SDK 8.2.7](https://marketplace.atlassian.com/apps/1210993/atlassian-plugin-sdk-tgz).