You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Launch path hardcodes the spawn: tag prefix — emit prism:/prp: lifecycle tags too #112
pkg/aws/client.gobuildTags() (around L457) hardcodes the spawn: prefix on every lifecycle tag it writes at launch — spawn:ttl, spawn:ttl-deadline, spawn:idle-timeout, spawn:managed, spawn:dns-name, etc. The downstream consumers (the ttl-reaper, dns-updater, cost-history-collector) are effectively prefix-agnostic — they read the tag meaning, not a fixed prefix.
Arbitrary config.Tags already pass through verbatim (L617), so a caller can attach prism:* / prp:*cost-allocation tags today. What a caller can not do is get the lifecycle tags (ttl/idle/managed/dns) written under another namespace — those are emitted only as spawn:.
Why this matters (in-family)
The Prism family layers three tag namespaces on each resource (a shared contract):
prp's ABAC scoping and per-PI/grant chargeback depend on the institutional tags being present at launch, including on the lifecycle dimension the reaper/cost paths key on. Working around this in prp would mean re-tagging after launch (a race) or shimming the launch path (forking the contract) — both rejected by design. This is the right place to fix it.
Proposed shape (non-breaking)
Add an optional lifecycle-tag prefix set to LaunchConfig (default ["spawn:"], preserving today's behavior) so buildTags() can mirror the lifecycle tags under additional prefixes when asked:
// LaunchConfigLifecycleTagPrefixes []string// default {"spawn:"}; e.g. {"spawn:","prism:","prp:"}
buildTags emits each lifecycle tag once per configured prefix. Empty/nil → exactly today's output, so this is additive and backward-compatible.
Acceptance
Default behavior unchanged (only spawn: tags).
With prefixes configured, spawn:ttl is mirrored as prism:ttl / prp:ttl (etc.) at launch.
Reaper/dns/cost paths continue to function (they already read by meaning).
Filed from the prism-research-portal build (design §4 named upstream task). Tracking issue downstream: scttfrdmn/prism-research-portal#7.
Activity