Skip to content

1.1.0

Choose a tag to compare

@github-actions github-actions released this 14 Nov 18:48
· 11 commits to main since this release

Single sign-on: users can authenticate with an OpenID Connect provider (Microsoft Entra ID, Keycloak, …) instead of
bearer tokens, and the skills and OAuth path are now tested against real containers. Backwards compatible: without
OAUTH_ISSUER nothing changes.

Added

  • scripts/admincli.sh: OAuth assignment commands (list-assignments, show-assignment, add-assignment --group|--email … with the connection options of add-token, delete-assignment, set-assignment-conn, clear-assignment-conn, set-assignment-client-conn, set-assignment-admin) and whoami; ADMIN_TOKEN is accepted as alias of AUTH_TOKEN, and the access token of an OAuth admin works as well. Covered by tests/admincli.test.ts
  • OAuth 2.0 / OpenID Connect as an alternative to bearer tokens, primarily for Microsoft Entra ID (any OIDC provider
    works): OAUTH_ISSUER switches it on. MCP clients send an access token (JWT: signature via JWKS, issuer, audience,
    lifetime are validated locally); the admin UI offers single sign-on (authorization code flow with PKCE, HttpOnly
    session cookie, X-Requested-With header for changes). AUTH_TOKEN and file tokens keep working. See
    docs/oauth.md
  • Assignments (deny by default): group or e-mail (*@domain, or the immutable object id) → access, default
    Oracle connection
    , client_connection mode and admin role. Configured by OAUTH_ALLOWED_GROUPS,
    OAUTH_ALLOWED_USERS, OAUTH_ADMIN_GROUPS, OAUTH_ADMIN_USERS, OAUTH_ASSIGNMENTS (read-only) and in the admin UI
    (OAuth assignments) / REST /admin/assignments (stored in the token store, password / wallet_password
    encrypted like token secrets and never returned)
  • GET /admin/me, GET /auth/status|login|callback, POST /auth/logout,
    GET /.well-known/oauth-protected-resource (RFC 9728; the 401 challenge carries resource_metadata)
  • Attribution: the user's e-mail replaces the token name in the [MCP] / [SESSION] / [ADMIN] log lines and in
    V$SESSION.CLIENT_IDENTIFIER; new [AUDIT] log category (login, logout, session_start, changing admin calls)
    and [AUTH] reason="oauth: …". Documented in docs/logging.md, Logstash pipeline updated
  • Helm: oauth.* values; OpenAPI: assignment and auth endpoints; docker-compose.yml passes the OAUTH_* variables
  • Docker integration tests (skipped unless their environment variable is set; npm run test:integration, CI job
    integration): tests/oracle.integration.test.ts runs every MCP tool against a real Oracle Free database
    (oracle-test container) and the whole OAuth path over HTTP (group / e-mail → schema, V$SESSION tags,
    client-supplied credentials enforced by Oracle, assignment admin API); tests/oidc.integration.test.ts validates
    tokens and the browser login against a real provider (docker compose --profile oidc up -d oidc-test,
    mock-oauth2-server)
  • OAUTH_RESOURCE_SCOPES: scopes advertised to MCP clients in /.well-known/oauth-protected-resource (default
    <audience>/.default as before, right for Entra ID; e.g. openid profile email for Keycloak). Compose and Helm
    (oauth.resourceScopes) pass it through. New docs section "MCP clients" (static header vs. client-side login,
    client registration / dynamic registration, audience, scopes, claude mcp add --client-id), example.mcp.json
    and README client examples
  • Keycloak as a real test and demo identity provider: compose profile keycloak (docker compose --profile keycloak up -d --wait keycloak, console on port 8081) with the realm tests/oidc/keycloak-realm.json (users, groups, audience and
    groups mappers, browser, password-grant and pre-registered MCP-client (oramcp-mcp-client, authorization code + PKCE) clients) and examples/oauth-keycloak.env for the full stack with SSO
    login in the admin UI. tests/oidc.integration.test.ts runs against the mock server or Keycloak (real login form);
    CI runs both. docker-compose.yml passes OAUTH_JWKS_URI, OAUTH_AUTHORIZATION_ENDPOINT, OAUTH_TOKEN_ENDPOINT
  • Unit tests tests/oauth.test.ts and tests/oauth-auth.test.ts with a fake identity provider
  • Skills are tested: tests/skills.test.ts checks that every parameter and value a SKILL.md names exists in the tool
    schemas and that every tool is covered by a skill; tests/skills.integration.test.ts (ORA_TEST_HOST) runs the SQL
    blocks and the workflows on a real database — a real blocking chain for locks, a slow statement through top_sql /
    sql_plan / explain_plan and the index fix, schema documentation, and a real deadlock followed from alert_log
    through trace_files to trace_content

Changed

  • example.mcp.json: inactive examples (_inactive_examples) for OAuth login by the client, an OAuth access token header
    and client-supplied connections (X-Oracle-* headers: own credentials, own database)
  • Docs: README "When to choose this server" (and the DOCKERHUB.md intro) now cover single sign-on, directory-group based
    access, attribution of the individual user in V$SESSION / audit log, the skills and the real-container tests
  • /info accepts the same admin authentication as /admin/* (also OAuth admins)

Security

  • A malformed admin request body is answered with 400 Invalid JSON body (was 500); the JSON parser message quotes a snippet of the body, which could contain a password, and is no longer logged. Connect strings of the form user/password@target are masked in /info and log lines
  • With OAuth configured, an empty AUTH_TOKEN does not disable authentication
  • E-mail matching ignores an e-mail the provider marks email_verified: false; OAUTH_REQUIRE_VERIFIED_EMAIL
    demands true

Documentation

  • Screenshots of the single sign-on login and the OAuth assignments screens (README, docs/oauth.md, Docker Hub)
  • Configuration reference in the README and on Docker Hub now lists every variable (incl. all OAUTH_*, TLS, pool/limit settings) with default and description, and marks per-token overrides.

Full Changelog: 1.0.0...1.1.0