vault-token-helper

command module
v0.0.0-...-0bc9fbf Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

README

Vault Token Helper

This is a very simple implementation of a Token Helper for HashiCorp Vault. It's primary feature is the ability to store multiple active tokens at once, while also not having any additional dependencies.

Installation

Select a suitable package archive from the Releases page. Either unzip the archive file to extract the binary for your OS or install the platform specific package using your system package manager.

Enable Token Helper

Once installed, enabling it by running:

vault-token-helper enable

This will write a suitable configuration file to ~/.vault or the path specified by the value of the VAULT_CONFIG_PATH environment variable.

Token Storage

Tokens will be written to ~/.config/vault.d/tokens in JSON. This directory will be created if it doesn't exist.

Erasing Tokens

Any existing token for the vault identified by VAULT_ADDR can be removed from the token file with the following command:

vault-token-helper erase

Disable Token Helper

Disable the token helper by running:

vault-token-helper disable

That will delete the configuration file, but will not remove any active tokens.

Documentation

Overview

Copyright © 2020 Joshua Colson <joshua.colson@gmail.com>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Jump to

Keyboard shortcuts

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