Job-scoped AWS credentials for on-premises runners
IAM Roles Anywhere lets a datacenter machine trade an X.509 certificate for AWS credentials. That answers which machine is this. It does not answer which product's job is running on it right now, and on a shared pool of executors that is the question that matters.
Status: these are reviewable architecture documents, proposed for enterprise review. Account IDs, Regions and lifetimes in them are illustrative. Nothing has been deployed or tested against AWS. A CI workflow validates the documents themselves: links, anchors, examples and diagram syntax.
The problem
The datacenter reaches corporate AWS VPCs over Direct Connect. A scheduler dispatches product-owned jobs to interchangeable execution nodes, and one node may run Job A for Product A and Job B for Product B at the same time. The nodes need a common platform role; each job needs different permissions and an auditable product identity.
A unique node certificate solves machine authentication. But a shared runner that may assume every product role does not solve job authorization: any job that can use that identity could ask for another product's role. Session names and tags chosen by the caller cannot supply the missing trusted assertion, and neither can network reachability or Organizations membership.
The decision
Separate the four concerns, and give each its own component:
- Machine authentication. Each node has its own key, generated locally, and a certificate from a centralized AWS Private CA, enrolled through an AWS-hosted registration service. Roles Anywhere maps it to the common runner role.
- Scheduler attestation. A scheduler attestor signs a grant for each run and sends it through the node agent.
- Authorization. The agent calls a private broker API with the runner session and that grant. The broker checks the grant against an entitlement registry and a replay ledger, then assumes the approved product/job role with its own execution role.
- Credential delivery. The agent hands only the resulting job credentials to that job's sandbox. The job never holds the runner role.
Product identity is never inferred from a session name the caller chose.
Classify servers before granting anything
The design includes a server-kind catalog: orchestrators, batch executors, CI runners, Kubernetes control-plane and worker nodes, integration gateways, backup and telemetry services, admin hosts and more. Only approved shared executors and workload adapters get the common runner role. A Kubernetes worker hosts pods with their own workload identities; a machine with no AWS API use case gets no AWS credentials at all. A server kind is classification metadata, not an entitlement.
How the documents are organized
One consolidated ADR, then four linked bundles in the Open Knowledge Format: architecture (requirements, trust boundaries, account and network topology), identity and PKI (CA design, enrollment and renewal, Kubernetes), job authorization (broker contract, policy examples, a worked example) and operations (onboarding, incident response, recovery, capacity, acceptance tests). The broker and the scheduler adapter are called out explicitly as custom services that someone has to build, operate and test.