config

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CryptoConfig

type CryptoConfig struct {
	// Contains the password for encrypting user group specific report encryptions using v1 to v2
	ReportEncryptionV1Password string `validate:"required" viperEnv:"TASK_REPORT_CRYPTO_V1_PASSWORD"`
	// Contains the salt for encrypting user group specific report encryptions v1 to v2
	ReportEncryptionV1Salt string `validate:"required,gte=32" viperEnv:"TASK_REPORT_CRYPTO_V1_SALT"`
}

CryptoConfig defines the configuration for service-wide cryptography options.

Version specific options will apply to all newer encryption versions up to the variants with a new specific option, e.g. if the options MyKeyV1 and MyKeyV4 exist, MyKeyV1 will apply to v1, v2 and v3, while MyKeyV4 applies to v4 and newer.

func Read

func Read() (config CryptoConfig, err error)

Jump to

Keyboard shortcuts

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