Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/titikterang/cicd-toolkit
simple command line tool helper to integrate with hashicorp vault & github api
https://github.com/titikterang/cicd-toolkit
cicd go golang hashicorp hashicorp-vault secrets toolkit vault
Last synced: 5 days ago
JSON representation
simple command line tool helper to integrate with hashicorp vault & github api
- Host: GitHub
- URL: https://github.com/titikterang/cicd-toolkit
- Owner: titikterang
- Created: 2021-12-08T09:49:29.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2021-12-08T10:11:30.000Z (almost 3 years ago)
- Last Synced: 2024-06-21T18:12:17.127Z (5 months ago)
- Topics: cicd, go, golang, hashicorp, hashicorp-vault, secrets, toolkit, vault
- Language: Go
- Homepage:
- Size: 30.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## Overview
* CI/CD Toolkit is small command line tool helper to integrate with vault secret kv management & github api
* We can use simple command to generate json/env/raw text file from vault secret kv
* Or to verify github PR approval status and then merge PR if pull request approval is validated## Build
```shell
make build
```
it will build two binaries, binary file for linux and binary based on local OS## Generate json file from vault
```shell
./cmd/toolkit/toolkit -vault -output=conf.json -secret=vaultkv/data/yourdata
```## Generate env file from vault
```shell
./cmd/toolkit/toolkit -vault -env -secret=vaultkv/data/envdata
```## Generate raw text file from vault
```shell
./cmd/toolkit/toolkit -vault -raw -secret=vaultkv/data/rawtextfile
```## Verify github PR approval
```shell
./cmd/toolkit/toolkit -approval -repo=ujunglangit-id/some-repo -id=23
```## Merge github pull request
```shell
./cmd/toolkit/toolkit -merge -repo=ujunglangit-id/some-repo -id=23
```## Merge squash github pull request
```shell
./cmd/toolkit/toolkit -debug -squash -repo=ujunglangit-id/some-repo -id=23
```## Hashicorp vault secret kv management
https://www.vaultproject.io/api-docs## Github api integration for pr status check & merging
https://docs.github.com/en/rest/reference/pulls