feat(eda): sources own signing, with UUIDv7 paths and approved unsigned option
A source is the capture endpoint: a UUIDv7 path by default or a unique URL-safe custom path, signed by default with an Archie-generated secret (encrypted via the bindings cipher), or unsigned after an approval. Intake verifies X-Hub-Signature-256/X-Signature-256 against the source secret before redaction; an unauthenticated event on a signed source is captured but never dispatched, an event on an approved unsigned source dispatches and is marked unsigned. The binding secret is retired; migration 0006 derives sources from existing binding and capture source strings, moving each binding's secret onto its source. SourceStore crosses the State Store gRPC contract. The dashboard gains a sources panel and flags unsigned in the capture inspector, binding list and task timeline.
This commit is contained in:
1 parent
5009288729
commit
6adbdc55a9
59 files changed
+3741
-1660
No files matched your search
@@ -21,7 +21,11 @@ const line = computed(() => describeTimelineEvent(props.event));
|
||||
|
||||
<template>
|
||||
<li class="flex items-start gap-3">
|
||||
<span class="mt-[5px] size-2 shrink-0 rounded-full bg-primary" aria-hidden="true" />
|
||||
<span
|
||||
class="mt-[5px] size-2 shrink-0 rounded-full"
|
||||
:class="line.tone === 'warn' ? 'bg-warn' : 'bg-primary'"
|
||||
aria-hidden="true"
|
||||
/>
|
||||
<div>
|
||||
<div class="text-sm font-medium">{{ line.title }}</div>
|
||||
<div v-if="line.detail" class="mt-0.5 text-xs text-fg-muted">{{ line.detail }}</div>
|
||||
|
||||
@@ -48,6 +48,8 @@ function text(value: unknown): string {
|
||||
export interface TimelineLine {
|
||||
title: string;
|
||||
detail: string;
|
||||
/** Set for an event a reader must not skim past. */
|
||||
tone?: "warn";
|
||||
}
|
||||
|
||||
export function describeTimelineEvent(ev: TaskEvent = {}): TimelineLine {
|
||||
@@ -112,6 +114,10 @@ export function describeTimelineEvent(ev: TaskEvent = {}): TimelineLine {
|
||||
detail: "The effective task-runtime configuration for this run.",
|
||||
};
|
||||
}
|
||||
if (ev.kind === "unsigned_event") {
|
||||
const source = text(data.source);
|
||||
return { title: "Started by an unsigned event", detail: source ? `source ${source}` : "", tone: "warn" };
|
||||
}
|
||||
if (ev.kind === "changes_captured") {
|
||||
const totals = (data.totals ?? {}) as { files?: unknown };
|
||||
const fileCount = Number(totals.files);
|
||||
|
||||
Reference in new issue
Block a user