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
@@ -90,6 +90,8 @@ internal static class SiteCommandSamples
Add(new NotificationListArtifact("ops", ["a@x.com"]), new NotificationListArtifact("empty", []));
Add(DataConnection(), new DataConnectionArtifact("bare", "OpcUa", null, null, 0));
Add(Smtp(), new SmtpConfigurationArtifact("bare", "smtp", 25, "None", "f@x.com", null, null, null));
Add(Secret(), new SecretArtifact(
"bare", "text/plain", [], [], [], [], [], [], "kek-bare", 0, T2, T2));
// ── Lifecycle replies ──
Add(new DeploymentStatusResponse("dep-1", "Site1.Pump1", DeploymentStatus.Success, null, T1),
@@ -233,6 +235,11 @@ internal static class SiteCommandSamples
private static SmtpConfigurationArtifact Smtp() =>
new("Default", "smtp.host", 587, "Basic", "from@x.com", "user", "secret", "{\"tenant\":\"t\"}");
private static SecretArtifact Secret() =>
new("EsgApiKey", "application/octet-stream",
[1, 2, 3, 4], [5, 6], [7, 8, 9], [10, 11], [12], [13, 14, 15],
"kek-2026-09", 4, T1, T2, "MES API key");
private static BrowseNode Node() => new("ns=2;s=Pump1.Speed", "Speed", BrowseNodeClass.Variable, false, "Double", -1, true);
private static BrowseNode NodeBare() => new("ns=2;s=Root", "Root", BrowseNodeClass.Object, true);