stealth

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

README

stealth

Stealth is a go interface to write/read from secret stores.

The current storage implementation uses our fork of unicreds, which is a go port of credstash, which uses AWS DynamoDB and KMS.

usage

Stealth can be run standalone for certain administrative tasks. First you'll need to compile the binary:

make build

To find all secrets that have the same value as an existing secret (for instance, to revoke a leaked secret):

./stealth dupes --environment [production OR development] --service [service-name] --key [key name]

You can replace all these values using this command:

./stealth dupes --environment [production OR development] --service [service-name] --key [key name] --update-with [value to replace with]

To delete a secret:

./stealth delete --environment [production OR development] --service [service-name] --key [key name]

To write a secret:

./stealth write --environment [production OR development] -- service [service-name] --key [key name] --value [key value]

tests

To run tests, use:

make test

This creates, updates, and reads secrets from the ci-test environment secret store, using the AWS credentials in your local environment.

Setting up backend infrastructure

If you are using terraform, you can use the module tf-credstash to set up the necessary dynamodb and kms key for stealth. For xample, to create a dev backend, you can use this terraform code:

provider "aws" {}

module "stealth-dev" {
  source = "github.com/dfuentes/tf-credstash"
  key_alias = "alias/stealth-key-dev"
  table_name = "stealth-dev"
}

license

Apache 2.0

usage at Clever

Stealth is co-owned by #eng-infra and #eng-security. For more info, see http://go/stealth

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL