feat(credential/vault): Primitives for UPD cred in vault-generic library
--------- Co-authored-by: Andrew Gaffney <andrew@gaffney.cc>
This commit is contained in:
1 parent
ee908ddc23
commit
e4dfa76c8e
8 files changed
+976
-30
No files matched your search
@@ -464,6 +464,41 @@ message UsernamePasswordOverride {
|
||||
string password_attribute = 3;
|
||||
}
|
||||
|
||||
message UsernamePasswordDomainOverride {
|
||||
// library_id of the owning vault credential library.
|
||||
// @inject_tag: `gorm:"primary_key"`
|
||||
string library_id = 1;
|
||||
|
||||
// username_attribute is the name of the attribute in the Data field of a
|
||||
// Vault api.Secret that maps to a username.
|
||||
// If set, it overrides any default attribute names the system uses to
|
||||
// find a username attribute.
|
||||
//
|
||||
// See https://github.com/hashicorp/vault/blob/5e505ec039177e8212cbbab74ccb644c46e62e63/api/secret.go#L25
|
||||
//
|
||||
// @inject_tag: `gorm:"default:null"`
|
||||
string username_attribute = 2;
|
||||
|
||||
// password_attribute is the name of the attribute in the Data field of a
|
||||
// Vault api.Secret that maps to a password.
|
||||
// If set, it overrides any default attribute names the system uses to
|
||||
// find a password attribute.
|
||||
//
|
||||
// See https://github.com/hashicorp/vault/blob/5e505ec039177e8212cbbab74ccb644c46e62e63/api/secret.go#L25
|
||||
//
|
||||
// @inject_tag: `gorm:"default:null"`
|
||||
string password_attribute = 3;
|
||||
// domain_attribute is the name of the attribute in the Data field of a
|
||||
// Vault api.Secret that maps to a domain.
|
||||
// If set, it overrides any default attribute names the system uses to
|
||||
// find a domain attribute.
|
||||
//
|
||||
// See https://github.com/hashicorp/vault/blob/5e505ec039177e8212cbbab74ccb644c46e62e63/api/secret.go#L25
|
||||
//
|
||||
// @inject_tag: `gorm:"default:null"`
|
||||
string domain_attribute = 4;
|
||||
}
|
||||
|
||||
message SshPrivateKeyOverride {
|
||||
// library_id of the owning vault credential library.
|
||||
// @inject_tag: `gorm:"primary_key"`
|
||||
|
||||
Reference in new issue
Block a user