secrets

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package secrets manages the writing of secrets without an intermediate file, by showing the administrator with a prompt. The secrets are then encrypted with the administrator's public key, and stored in secrets.yml. The administrator's private key is stored in secrets.key. The administrator's public key is stored in secrets.pub. When LibRate is launched, IT MUST NOT merge a decrypted secrets.yml with config.yml. Instead, decryption should happen "on the fly" and then parsed into the config where it'd be solely stored in volatile memory. If LibRate is used in Docker though, it should automatically pick that up and use Docker Secrets instead.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ask

func Ask(showCrackTime bool) error

Ask prompts the admin to enter the secrets.

Types

type Secrets

type Secrets struct {
	Postgres string `yaml:"postgres"`
	Redis    string `yaml:"redis"`
	Mailer   string `yaml:"mailer"`
}

Secrets represents the secrets for databases, mailer etc.

Jump to

Keyboard shortcuts

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