Repository navigation
docs: access policies + 4 scoped IAM users - #571
Conversation
|
Review findings addressed (commit on the updated branch): Critical (both fixed):
Important (all fixed):
Suggestions (all addressed):
Plus added: tagging ( User count is now 5 (was 4) after the actions split. |
f70b142 to
ebe9427
Compare
📦 Package PreviewYour package is ready to test! bun install -g nemar-cli@PR571Version: 🤖 Updated on each push. |
|
Live-validated against SCCN dev — Provisioned in AWS account 191754232783 (root login via aws CLI):
Keys deployed live (committed by the same value, two-slot rotation intact):
Live runtime fixes that surfaced during validation (also committed on this branch):
Permissions boundary turned out to be a service-scope ceiling, not a write-tier ceiling, as the prior review correctly called out. Ready to merge. |
Flips the central-manifest-workflow flag from false→true under [env.dev.vars] only. Prod stays off. Full e2e on SCCN dev (10 steps, 21s) validated. Worker already deployed to SCCN dev; this commit makes the source of truth match the live state. Companion to #571 (access policies).
Summary
New canonical doc at `docs/operations/access-policies.md` covering:
Five operational principles that contributors and code follow:
IAM user catalog with full inline-policy JSON for the four
scoped users that replace the previous single-admin key:
A shared permissions boundary (`nemar-bucket-boundary`) attached to all four users, capping their reach at the `nemar` bucket + the `upload-*` federated user pattern.
A provisioning checklist for re-creating these users after an incident.
Motivation
On 2026-05-22 a compromised single-admin IAM key triggered AWS's automatic `AWSCompromisedKeyQuarantineV3` enforcement, which took down `data.nemar.org` for every dataset (every `getManifest` SigV4 GET started failing). The recovery hotfix (#570) restored read-only via unsigned-first / signed-fallback, but the underlying credential design needed to be rethought.
This doc captures the new design as a normative reference so the same single-point-of-failure cannot reappear.
Why a doc PR before the IAM rollout?
Out of scope (separate PRs)
Test plan