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
Reads (GET /service-info, /services, /services/types, /services/{serviceId}, the public verification endpoints) are public: the API spec sets security: [], and FOCA only enforces access control policies on operations that require authentication. The default policies therefore have no rules for GET.
When an operator requires login for reads (with FOCA's spec patches, elixir-cloud-aai/foca#396), FOCA enforces the policies on these operations, finds no rule that allows GET for ordinary users, and returns 403 to everyone except admins: "admins only" instead of "login required".
Expected
Default policies that allow GET on the read endpoints for any authenticated user (*). They are never evaluated while reads are public, so nothing changes by default; once an operator requires login for reads, any logged-in user may read with a single spec patch.
Use FOCA's named policies (foca#396) for the defaults, so operators can tighten single rules.
Docs: the recipe "require login for all reads except /service-info" (a ready-to-use patch file and overlay), with FOCA's warning about patches, and a test that applies the recipe and checks: anonymous reads 401, authenticated reads 200, /service-info public.
Activity