Documentation
¶
Index ¶
- type AccessLog
- type AppRole
- type AppRoleRule
- type AppRolesPolicy
- type ApprovalRequest
- type AuditLog
- type Claims
- type Config
- type Group
- type GroupPolicy
- type GroupRule
- type Notification
- type Path
- type PathPermission
- type PathRule
- type Policy
- type RootCA
- type Secret
- type SecretAccess
- type SecretDeletion
- type SharedLink
- type SubCA
- type TransitKeyVersion
- type User
- type UserGroup
- type UserPolicy
- type UserRule
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppRoleRule ¶
type AppRolesPolicy ¶
type ApprovalRequest ¶
type ApprovalRequest struct {
ID int64 `json:"id"`
UserID int64 `json:"user_id"`
SecretID *int64 `json:"secret_id,omitempty"`
Action string `json:"action"`
Status string `json:"status"`
Details map[string]interface{} `json:"details"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type Claims ¶
type Claims struct {
AuthType string `json:"auth_type"`
Username string `json:"username"`
UserID int64 `json:"user_id"`
jwt.StandardClaims
}
type Config ¶
type Config struct {
Server struct {
Host string
Port int
}
Database struct {
Host string
Port int
User string
Password string
Name string
SSLMode string
}
Security struct {
MasterKey string `mapstructure:"master_key"`
}
Sync struct {
Platform string
Vault struct {
Address string
Token string
}
AWS struct {
Region string
AccessKeyID string
SecretAccessKey string
}
Azure struct {
TenantID string
ClientID string
ClientSecret string
KeyVaultName string
}
}
}
type GroupPolicy ¶
type Notification ¶
type PathPermission ¶
type Policy ¶
type Policy struct {
ID int64 `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
HCL string `json:"hcl"` // Store HCL string
PathID int64 `json:"path_id"`
Paths []PathRule `hcl:"path,block"`
Groups []GroupRule `hcl:"group,block"`
Users []UserRule `hcl:"user,block"`
AppRoles []AppRoleRule `hcl:"approle,block"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type Secret ¶
type Secret struct {
ID int64 `json:"id"`
PathID int `json:"path_id" pg:"fk:path_id"`
Key string `json:"key"`
Version int `json:"version"`
EncryptedDEK []byte `json:"encrypted_dek"`
EncryptedValue []byte `json:"encrypted_value"`
Metadata map[string]interface{} `json:"metadata"`
IsMultiValue bool `json:"is_multi_value"`
Tags []string `json:"tags"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
IsOneTime bool `json:"is_one_time"`
ExpiresAt *time.Time `json:"expires_at,omitempty"`
RotatedAt *time.Time `json:"rotated_at,omitempty"`
RotationInterval string `json:"rotation_interval,omitempty"`
LastRotatedAt *time.Time `json:"last_rotated_at,omitempty"`
CreatedBy int64 `json:"created_by"`
Value string `pg:"-" json:"value"`
Path string `pg:"-" json:"path"`
KeyType string `pg:"-" json:"key_type"`
CreatedByUser string `pg:"-" json:"created_by_user,omitempty"`
}
type SecretAccess ¶
type SecretDeletion ¶
type SecretDeletion struct {
ID int64 `json:"id"`
SecretID int64 `json:"secret_id" pg:"fk:secret_id"`
PathID int `json:"path_id" pg:"fk:path_id"`
Key string `json:"key"`
Version int `json:"version"`
EncryptedDEK []byte `json:"encrypted_dek"` // Encrypted Data Encryption Key
EncryptedValue []byte `json:"encrypted_value"` // Encrypted Secret Value
Metadata map[string]interface{} `json:"metadata"`
DeletedAt time.Time `json:"deleted_at"`
Accesses []SecretAccess `json:"accesses"`
}
type TransitKeyVersion ¶
type UserPolicy ¶
Click to show internal directories.
Click to hide internal directories.