No description
Find a file
2025-06-12 09:12:57 +02:00
cmd/secret new: -update for selfupdate 2025-06-12 09:12:57 +02:00
.gogogo.conf new: add .gogogo.conf for release 2025-06-12 08:50:03 +02:00
.golangci.yml update dependencies 2025-05-25 17:41:10 +02:00
go.mod new: -update for selfupdate 2025-06-12 09:12:57 +02:00
go.sum new: -update for selfupdate 2025-06-12 09:12:57 +02:00
LICENSE.txt initial commit 2024-10-04 09:43:17 +02:00
README.md doc: README 2024-10-04 12:57:19 +02:00
secret.go new: autodetection of token schema 2025-05-26 19:04:41 +02:00
secret_test.go new: autodetection of token schema 2025-05-26 19:04:41 +02:00

secret

Go Reference

This package allows simple "encoding" of secret values in configuration files:

user: hans
pass: env:USERPASS

The secret value consists of a schema, and one or more values. Currently supported schemes are:

  • plain, pass: the value itself is the secret, with whitespace trimmed
  • raw: the value itself is the secret
  • env: the actual value is taken literally from the referenced environment
  • file: the actual value is taken from the referenced file, with whitespace trimmed
  • rawfile: as file, but literally