constants

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APIName  = "CMK"
	KMS      = "KMS"
	BasePath = "/cmk/v1/{tenant}"
)
View Source
const (
	KeyTypeSystemManaged = "SYSTEM_MANAGED"
	KeyTypeBYOK          = "BYOK"
	KeyTypeHYOK          = "HYOK"

	DefaultKeyStore = "DEFAULT_KEYSTORE"
	HYOKKeyStore    = "HYOK_KEYSTORE"
)
View Source
const (
	DefaultTop  = 20
	DefaultSkip = 0
)
View Source
const (
	QueryMaxLengthSystem = 50
	QueryMaxLengthName   = 255
)
View Source
const (
	//nolint:gosec
	AuthTypeSecret      = "AUTH_TYPE_SECRET"
	AuthTypeCertificate = "AUTH_TYPE_CERTIFICATE"

	TenantAdminGroup   string = "TenantAdministrator"
	TenantAuditorGroup string = "TenantAuditor"

	KeyAdminRole      BusinessRole = "KEY_ADMINISTRATOR"
	TenantAdminRole   BusinessRole = "TENANT_ADMINISTRATOR"
	TenantAuditorRole BusinessRole = "TENANT_AUDITOR"

	InternalRequestingHandlingRole     InternalRole = "INTERNAL_REQUEST_HANDLING"
	InternalBusinessAuthzRole          InternalRole = "INTERNAL_BUSINESS_AUTH"
	InternalTenantProvisioningRole     InternalRole = "INTERNAL_TENANT_PROVISIONING"
	InternalTenantCLIRole              InternalRole = "INTERNAL_TENANT_CLI"
	InternalEventReconcilerRole        InternalRole = "INTERNAL_EVENT_RECONCILER"
	InternalTaskProcessingRole         InternalRole = "INTERNAL_TASK_PROCESSING"
	InternalTaskCertRotationRole       InternalRole = "INTERNAL_TASK_CERT_ROTATION"
	InternalTaskWorkflowApproversRole  InternalRole = "INTERNAL_TASK_WORKFLOW_APPROVERS"
	InternalTaskWorkflowCleanupRole    InternalRole = "INTERNAL_TASK_WORKFLOW_CLEANUP"
	InternalTaskWorkflowExpirationRole InternalRole = "INTERNAL_TASK_WORKFLOW_EXPIRATION"
	InternalTaskHYOKSyncRole           InternalRole = "INTERNAL_TASK_HYOK_SYNC"
	InternalTaskKeystorePoolRole       InternalRole = "INTERNAL_TASK_KEYSTORE_POOL"
	InternalTaskSystemRefreshRole      InternalRole = "INTERNAL_TASK_SYSTEM_REFRESH"
	InternalTaskTenantRefreshRole      InternalRole = "INTERNAL_TASK_TENANT_REFRESH"
	InternalTaskSendNotificationRole   InternalRole = "INTERNAL_TASK_SEND_NOTIFICATION"

	AuditorPolicy     PolicyID = "AuditorPolicy"
	KeyAdminPolicy    PolicyID = "KeyAdminPolicy"
	TenantAdminPolicy PolicyID = "TenantAdminPolicy"

	InternalTenantCLIPolicy              PolicyID = "InternalTenantCLI"
	InternalBusinessAuthzPolicy          PolicyID = "InternalBusinessAuthz"
	InternalEventReconcilerPolicy        PolicyID = "InternalEventReconciler"
	InternalTenantProvisioningPolicy     PolicyID = "InternalTenantProvisioning"
	InternalTaskProcessingPolicy         PolicyID = "InternalTaskProcessing"
	InternalTaskCertRotationPolicy       PolicyID = "InternalTaskCertRotation"
	InternalTaskWorkflowApproversPolicy  PolicyID = "InternalTaskWorkflowApprovers"
	InternalTaskHYOKSyncPolicy           PolicyID = "InternalTaskHYOKSync"
	InternalTaskKeystorePoolPolicy       PolicyID = "InternalTaskKeystorePool"
	InternalTaskSystemRefreshPolicy      PolicyID = "InternalTaskSystemRefresh"
	InternalTaskTenantRefreshPolicy      PolicyID = "InternalTaskTenantRefresh"
	InternalTaskWorkflowCleanupPolicy    PolicyID = "InternalTaskWorkflowCleanup"
	InternalTaskWorkflowExpirationPolicy PolicyID = "InternalTaskWorkflowExpiration"
)
View Source
const (
	UserType     userTypeKey   = "UserType"
	BusinessUser UserTypeValue = "Business"
	InternalUser UserTypeValue = "Internal"

	InternalUserData internalUserDataKey = "InternalData"
	BusinessUserData businessUserDataKey = "ClientData"
)
View Source
const (
	DefaultConfigPath1 = "/etc/cmk"
	DefaultConfigPath2 = "$HOME/.cmk"
)
View Source
const (
	DefaultErrorCode    = "UNKNOWN"
	DefaultErrorMessage = "Unknown"
)
View Source
const (
	KeyActionSetPrimary      = "SET_PRIMARY_KEY"
	SystemActionDecommission = "SYSTEM_DECOMMISSION"
)
View Source
const (
	CertificateTable      = "certificates"
	EventTable            = "events"
	GroupTable            = "groups"
	ImportparamTable      = "import_params"
	KeyTable              = "keys"
	KeyconfigurationTable = "key_configurations"
	KeystoreTable         = publicTablePreFix + "keystore_pool"
	KeyVersionTable       = "key_versions"
	KeyLabelTable         = "key_labels"
	SystemTable           = "systems"
	SystemPropertyTable   = "systems_properties"
	TagTable              = "tags"
	TenantTable           = publicTablePreFix + "tenants"
	TenantconfigTable     = "tenant_configs"
	WorkflowTable         = "workflows"
	WorkflowApproverTable = "workflow_approvers"
)
View Source
const (
	WorkflowConfigKey = "WORKFLOW_CONFIG"

	DefaultMinimumApprovalCount = 2
	DefaultRetentionPeriodDays  = 30

	DefaultExpiryPeriodDays = 7

	DefaultMaxExpiryPeriodDays = 30
)
View Source
const (
	DBDriver = "pgx"
)
View Source
const UnknownUserName = "UNKNOWN"

Variables

This section is empty.

Functions

This section is empty.

Types

type BusinessRole added in v0.9.0

type BusinessRole string

type InternalRole added in v0.9.0

type InternalRole string

type LogLevel

type LogLevel string

LogLevel represents available logging levels

const (
	LogLevelDebug LogLevel = "debug"
	LogLevelInfo  LogLevel = "info"
	LogLevelWarn  LogLevel = "warn"
	LogLevelError LogLevel = "error"
)

func (LogLevel) String

func (l LogLevel) String() string

String implements the Stringer interface

type PolicyID added in v0.9.0

type PolicyID string

type UserTypeValue added in v0.9.0

type UserTypeValue string

Jump to

Keyboard shortcuts

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