feat(target): Add support for static credential as target credential sources

This commit is contained in:
Louis Ruch committed 2022-06-14 13:01:17 -07:00
1 parent 58d546cdd4
commit 00dfea1244
27 files changed
+1951 -588

No files matched your search

@@ -90,3 +90,49 @@ message CredentialLibrary {
// @inject_tag: `gorm:"default:current_timestamp"`
timestamp.v1.Timestamp create_time = 40;
}
message StaticCredential {
// target_id of the Target
// @inject_tag: gorm:"primary_key"
string target_id = 10;
// credential_id of the static Credential
// @inject_tag: `gorm:"column:credential_static_id;primary_key"
string credential_id = 20;
// credential_purpose is the purpose of the credential for the target
// @inject_tag: gorm:"primary_key"
string credential_purpose = 30;
// create_time from the RDBMS
// @inject_tag: `gorm:"default:current_timestamp"`
timestamp.v1.Timestamp create_time = 40;
}
message CredentialSource {
// target_id of the Target
// @inject_tag: gorm:"primary_key"
string target_id = 10;
// credential_source_id of the Credential Library or static Credential
// @inject_tag: gorm:"primary_key"
string credential_source_id = 20;
// credential_purpose is the purpose of the credential for the target
// @inject_tag: gorm:"primary_key"
string credential_purpose = 30;
// create_time from the RDBMS
// @inject_tag: `gorm:"default:current_timestamp"`
timestamp.v1.Timestamp create_time = 40;
}
message CredentialSourceView {
// public_id of the Credential source
// @inject_tag: gorm:"primary_key"
string public_id = 10;
// type of credential source (library or static)
// @inject_tag: `gorm:"not_null"`
string type = 20;
}