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
{{ message }}
Repository navigation
BUG-07: docs.public has no effect, so the API docs cannot be put behind sign-in #134
In-ProgressWork started and not complete; the comment gives the pull request or the jobbugSomething isn't workingclass:INVInnovation: a new feature, design, idea or methodsev:mediumIncorrect data, a weak control or a slow service, with no direct lossstatus:openNo fix yet
What is wrong: The instance setting docs.public has no effect. The design says that docs.public can put Swagger UI, ReDoc and the spec behind sign-in. The code reads only docs.enabled.
Where:cmapi/src/cmapi/main.py:52, :54 and :84. They read docs_cfg.get("enabled", True) and never read public. The design is docs/01-design-and-architecture.md:711.
How to prove it: Set docs.public: false in the test instance.yaml. GET /openapi.json without a token must return 401. Today it returns 200.
Measured or inferred: Measured by reading the code at 0c79108: grep -n public cmapi/src/cmapi/main.py finds only publicUrl. The 401 result is inferred until the test runs.
Severity: Medium. An operator who sets docs.public: false expects the API map to need sign-in, and it does not.
What must hold after the fix: With docs.public: false, the five docs paths need a valid token, and return 401 with WWW-Authenticate without one. With docs.public absent or true, they stay public, as docs/01 says.
Research: How Swagger UI and ReDoc pages can load behind a bearer token. The page needs a sign-in redirect, because the browser does not send a bearer token on a page load.
In-Progress: draft pull request #135 closes this issue. CI run 43400342375 on 3ea7aa1: api-contract, service, portal-ui, portal-mockup and reference-code passed; manifests was still running when this was written.
In-ProgressWork started and not complete; the comment gives the pull request or the jobbugSomething isn't workingclass:INVInnovation: a new feature, design, idea or methodsev:mediumIncorrect data, a weak control or a slow service, with no direct lossstatus:openNo fix yet
Activity
OB1's prompt: agile records, STE writing, diagrams, the auth and Keyc…
ephico2real2 commentedon Nov 13, 2026
In-Progress: draft pull request #135 closes this issue. CI run 43400342375 on 3ea7aa1: api-contract, service, portal-ui, portal-mockup and reference-code passed; manifests was still running when this was written.