项目作者: gembaadvantage

项目描述 :
Generate a signed AWS V4 CodeCommit URL directly from an IAM role. No dedicated CodeCommit credentials needed
高级语言: Go
项目地址: git://github.com/gembaadvantage/codecommit-sign.git
创建时间: 2021-09-03T14:03:05Z
项目社区:https://github.com/gembaadvantage/codecommit-sign

开源协议:MIT License

下载


codecommit-sign

Build status
License MIT
Go Report Card
Go Version
codecov

Generate a signed AWS V4 CodeCommit URL without the need for dedicated IAM user credentials.

Install

Binary downloads can be found on the Releases page. Unpack the codecommit-sign binary and add it to your PATH.

Homebrew

To use Homebrew:

  1. brew tap gembaadvantage/tap
  2. brew install codecommit-sign

Scoop

To use Scoop:

  1. scoop install codecommit-sign

Yum

To install using the yum package manager:

  1. echo '[codecommit-sign]
  2. name=uplift
  3. baseurl=https://yum.fury.io/ga-paul-t/
  4. enabled=1
  5. gpgcheck=0' | sudo tee /etc/yum.repos.d/codecommit-sign.repo
  6. sudo yum install -y codecommit-sign

Apt

  1. echo 'deb [trusted=yes] https://apt.fury.io/ga-paul-t/ /' | sudo tee /etc/apt/sources.list.d/codecommit-sign.list
  2. sudo apt update
  3. sudo apt install -y codecommit-sign

Aur

To install from the aur using yay:

  1. yay -S codecommit-sign-bin

Linux Packages

Download and manually install one of the .deb, .rpm or .apk packages from the Releases page.

  1. sudo apt install codecommit-sign_*.deb
  1. sudo yum localinstall codecommit-sign-*.rpm
  1. sudo apk add --no-cache --allow-untrusted codecommit-sign_*.apk

Script

To install using a shell script:

  1. curl https://raw.githubusercontent.com/gembaadvantage/codecommit-sign/main/scripts/install > install
  2. chmod 700 install
  3. ./install

Quick Start

Retrieve (or construct) the clone URL to your chosen CodeCommit repository and then sign it. Depending on your chosen authentication mechanism, you may need to provide an AWS named profile through the optional --profile flag.

HTTPS

  1. codecommit-sign https://git-codecommit.eu-west-1.amazonaws.com/v1/repos/repository

GRC

  1. codecommit-sign codecommit::eu-west-1://repository

All GRC variants are supported: