GithubHelp home page GithubHelp logo

jokogledek / cicd-toolkit Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 31 KB

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

Makefile 2.93% Go 97.07%
golang vault toolkit secrets go hashicorp hashicorp-vault cicd

cicd-toolkit's Introduction

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

make build

it will build two binaries, binary file for linux and binary based on local OS

Generate json file from vault

./cmd/toolkit/toolkit  -vault -output=conf.json -secret=vaultkv/data/yourdata

Generate env file from vault

./cmd/toolkit/toolkit  -vault  -env -secret=vaultkv/data/envdata

Generate raw text file from vault

./cmd/toolkit/toolkit  -vault  -raw -secret=vaultkv/data/rawtextfile

Verify github PR approval

./cmd/toolkit/toolkit -approval -repo=ujunglangit-id/some-repo -id=23

Merge github pull request

./cmd/toolkit/toolkit -merge -repo=ujunglangit-id/some-repo -id=23

Merge squash github pull request

./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

cicd-toolkit's People

Contributors

azwarnrst avatar

Stargazers

Hari Prasetia avatar

Watchers

M Azwar Nurrosat avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.