Skip to content

Launch path hardcodes the spawn: tag prefix — emit prism:/prp: lifecycle tags too #112

Open

Description

@scttfrdmn

Context

pkg/aws/client.go buildTags() (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):

  • spawn:* — lifecycle (engine-owned)
  • prism:* — research-computing (Prism-owned)
  • prp:* — institutional ABAC (prism-research-portal-owned)

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:

// LaunchConfig
LifecycleTagPrefixes []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

  1. added this to the Later milestone on Oct 19, 2026
  2. modified the milestones: Later, Post-1.0 on Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions