Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: about 1 month ago
JSON representation

simple command line tool helper to integrate with hashicorp vault & github api

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