Skip to content

Commit ef75f7b

Browse files
authored
fix(den): declare the public App no-index middleware for audit coverage (#7214)
The public App MCP surface mounts a no-index header middleware on /mcp/public and /mcp/public/*. Hono lists both as routes, and the audit route coverage check refuses any route without a declaration, so the check failed on every pull request. Declare both as support middleware, like the other app.use mounts. Signed-off-by: Jalil <reachjalil@gmail.com>
1 parent eed382c commit ef75f7b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎ee/apps/den-api/src/audit/routes/platform.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ export const platformAuditRoutes: readonly AuditRouteDeclaration[] = [
6060
support("ALL", "/api/auth/sso/saml2/callback/*", "sso.saml_callback.policy", "samlResponsePolicyMiddleware before better-auth; the endpoint itself is declared with the better-auth endpoints."),
6161
support("ALL", "/api/auth/sso/saml2/sp/acs/*", "sso.saml_acs.policy", "samlResponsePolicyMiddleware before better-auth ACS; the endpoint itself is declared with the better-auth endpoints."),
6262
support("ALL", "/v1/auth/desktop-handoff/exchange", "desktop_handoff.cors", "Reflecting CORS middleware for the grant exchange (only when !env.corsHandledByEdge)."),
63+
support("ALL", "/mcp/public", "mcp_public.no_index", "noIndex middleware: marks the public App MCP surface as not to be indexed by search engines (header only); the App server route is declared with the MCP consumption transports."),
64+
support("ALL", "/mcp/public/*", "mcp_public.no_index", "noIndex middleware: marks the public App MCP surface as not to be indexed by search engines (header only); the App server route is declared with the MCP consumption transports."),
6365

6466
// app.fetch re-dispatch
6567
route("ALL", "/v1/orgs/:orgId/*", "proxy", "legacy_org.proxy", "request.proxy", "organization", "orgId", "delegatedRoute legacy org proxy re-dispatches through app.fetch; the destination route records."),

0 commit comments

Comments
 (0)