globalflags

package
v0.9.15 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package globalflags contains global flags of binary, eg. Experimental.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Experimental is a global flag determining if experimental features should be enabled.
	// Set from env var: `export FEDERATED_ACCESS_ENABLE_EXPERIMENTAL=true`
	Experimental = os.Getenv("FEDERATED_ACCESS_ENABLE_EXPERIMENTAL") == "true"

	// DisableAuditLog is a global flag determining if you want to disable audit log.
	// Set from env var: `export DISABLE_AUDIT_LOG=true` or `export FEDERATED_ACCESS_DISABLE_AUDIT_LOG=true`
	DisableAuditLog = os.Getenv("FEDERATED_ACCESS_DISABLE_AUDIT_LOG") == "true" || os.Getenv("DISABLE_AUDIT_LOG") == "true"

	// EnableDevLog is a global flag determining if you want to enable dev log.
	// Set from env var: `export ENABLE_DEV_LOG=true`
	EnableDevLog = os.Getenv("ENABLE_DEV_LOG") == "true"

	// DisableIAMConditionExpiry is a global flag determining if you want to use IAM condition to manage user IAM expiry.
	// Set from env var: `export DISABLE_IAM_CONDITION_EXPIRY=true`
	DisableIAMConditionExpiry = os.Getenv("DISABLE_IAM_CONDITION_EXPIRY") == "true"

	// EnableAWSAdapter is a global flag determining if you want to use enable management of AWS resources.
	// Set from env var: `export ENABLE_AWS_ADAPTER=true`
	EnableAWSAdapter = os.Getenv("ENABLE_AWS_ADAPTER") == "true"

	// LocalSignerAlgorithm is a global flag determining if you want to sign the JWT with specific algorithm, only supported in persona service and using local signer.
	// It will cause err if given invalid value.
	// Set from env var: `export LOCAL_SIGNER_ALGORITHM=RS384`
	LocalSignerAlgorithm = parseLocalSignerAlgorithm()
)

Functions

This section is empty.

Types

type SignerAlgorithm added in v0.9.13

type SignerAlgorithm string

SignerAlgorithm of JWT.

const (
	// RS256 used to sign JWT.
	RS256 SignerAlgorithm = "RS256"
	// RS384 used to sign JWT.
	RS384 SignerAlgorithm = "RS384"
)

Jump to

Keyboard shortcuts

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