Skip to content

docs: document STAC API access control with STAC Auth Proxy#167

Open
alukach wants to merge 2 commits into
EOEPCA:mainfrom
alukach:docs/stac-auth-proxy-access-control
Open

docs: document STAC API access control with STAC Auth Proxy#167
alukach wants to merge 2 commits into
EOEPCA:mainfrom
alukach:docs/stac-auth-proxy-access-control

Conversation

@alukach

@alukach alukach commented Jun 12, 2026

Copy link
Copy Markdown

What I'm changing

Per @rconway's comment on EOEPCA/resource-discovery#203, the STAC API access-control approach implemented in EOEPCA/eoepca-plus#118 should be documented in the Deployment Guide.

This adds a STAC API Access Control (STAC Auth Proxy) section to the Data Access page, covering:

  • The collection ID prefix policy model (summary table, with a link to the full documentation proposed for the Resource Discovery BB docs in docs: document STAC API access control (stac-auth-proxy policies) resource-discovery#257)
  • Enabling the stac-auth-proxy subchart in the eoAPI Helm values
  • Delivering the policy filter factories via ConfigMap, so policy changes need no image rebuild
  • Keycloak configuration (audiences, the stac_editor client role for service accounts, groups claim mapper)
  • Routing the /stac ingress path through the proxy
  • Validation steps (anonymous vs. authenticated reads, rejected anonymous writes)

Also adds STAC Auth Proxy to the components overview, optional prerequisites, and further reading.

Scope note

This is docs-only: configure-data-access.sh and the values/IAM templates under scripts/data-access/ do not yet template the proxy configuration, and the page's IAM sections still describe the Keycloak+OPA approach. The new section is positioned as an alternative and flags the manual steps explicitly. Updating the scripts (and deciding whether stac-auth-proxy supersedes the OPA path) is left to maintainers — happy to help with that as a follow-up if useful.

How you can test it

uvx --with-requirements docs/requirements.txt zensical build

Builds cleanly — the 5 reported issues are pre-existing anchors in oapip-engine.md / workspace.md, untouched by this PR.

Note

Merge order: the new section links to the Resource Discovery Access Control docs added in EOEPCA/resource-discovery#257 — that PR should merge (and ReadTheDocs rebuild) first, or the link will 404.

alukach added 2 commits June 12, 2026 15:07
Adds a section to the Data Access page describing how to protect the
STAC API with stac-auth-proxy and the EOEPCA collection-prefix access
policies, as deployed in the EOEPCA+ demo cluster: enabling the proxy
subchart, mounting the policy filter factories via ConfigMap, Keycloak
configuration, ingress routing, and validation steps.

Refs EOEPCA/resource-discovery#203
…tion

Reframe the section as complementary to ingress-level OPA rather than a
strict alternative, warn that the sample collection must be loaded before
enabling the proxy (anonymous writes are rejected once active), demote
step headings below the page's main deployment-step numbering, and point
group naming and suffix semantics at the Resource Discovery policy docs.
@alukach alukach marked this pull request as ready for review June 15, 2026 19:19
@alukach alukach requested review from jonas-eberle and rconway June 15, 2026 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant