feat(artifacts): additive Secrets list + SecretsApplied on the artifact deploy contract (proto field 9)

This commit is contained in:
Joseph Doherty
2026-09-28 17:22:57 -04:00
parent b6287ae307
commit bf7d2db0b1
8 changed files with 1671 additions and 498 deletions
@@ -270,6 +270,25 @@ message SmtpConfigurationArtifactDto {
// own message makes the null/empty distinction a message-presence question,
// which proto3 does model — the same silent-data-loss class the transport
// round-trip guard caught in PLAN-05 T8.
// One StoredSecret row, ciphertext verbatim under the fleet's shared KEK — never
// plaintext on the wire. Site secrets design §3.3.
message SecretArtifactDto {
string name = 1;
string content_type = 2;
bytes ciphertext = 3;
bytes nonce = 4;
bytes tag = 5;
bytes wrapped_dek = 6;
bytes wrap_nonce = 7;
bytes wrap_tag = 8;
string kek_id = 9;
int64 revision = 10;
google.protobuf.Timestamp created_utc = 11;
google.protobuf.Timestamp updated_utc = 12;
google.protobuf.StringValue description = 13; // absent => null
}
message SecretArtifactListDto { repeated SecretArtifactDto items = 1; }
message SharedScriptArtifactListDto { repeated SharedScriptArtifactDto items = 1; }
message ExternalSystemArtifactListDto { repeated ExternalSystemArtifactDto items = 1; }
message DatabaseConnectionArtifactListDto { repeated DatabaseConnectionArtifactDto items = 1; }
@@ -286,6 +305,7 @@ message DeployArtifactsCommandDto {
DataConnectionArtifactListDto data_connections = 6; // absent => null
SmtpConfigurationArtifactListDto smtp_configurations = 7; // absent => null
google.protobuf.Timestamp timestamp = 8;
SecretArtifactListDto secrets = 9; // absent => null
}
message DeploymentStatusResponseDto {
@@ -319,6 +339,7 @@ message ArtifactDeploymentResponseDto {
bool success = 3;
string error_message = 4; // empty string represents null
google.protobuf.Timestamp timestamp = 5;
google.protobuf.Int32Value secrets_applied = 6; // absent => null
}
message LifecycleRequest {