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

https://github.com/govtechsg/attest


https://github.com/govtechsg/attest

Last synced: 11 months ago
JSON representation

Awesome Lists containing this project

README

          

# attest

attest is a tool for downloading terraform and verify that the SHASUM matches the archive.

## What is actually run in the back background

1. Import hashicorp public key using gpg
2. Download the archive, SHA256SUM, and SHA256SUM.sig files
3. Verify is signature file is not tampered with
4. Verify the SHASUM matches the archive
5. Install to tfenv if argument "install-tfenv" was passed to command

## Prerequiste

1. gpg - OpenPGP encryption and signing tool

## How to setup

1. Download Hashicorp public key from https://www.hashicorp.com/security
2. Store Hashicorp public key from step 2 to $HOME/.gnupg/hashicorp.asc
3. `git clone `
4. `ln -s //attest.sh /usr/local/bin/attest`

## Usage

```bash
Example:
# Download and verify terraform package
Usage: attest terraform

# Deploy package to tfenv
Usage: attest terraform install-tfenv

terraform Terraform version number to download and attest (eg. 0.15.4)
install-tfenv Install terraform to tfenv
```