Skip to content

fix: stop serving the OAuth client secret #106

Closed

Description

@uniqueg

Why?

The Swagger UI's OAuth configuration, served at /swagger-resources/configuration/security when the Swagger UI is on, includes the client secret from TESK_API_SWAGGER_OAUTH_CLIENT_SECRET. A browser-based client like the Swagger UI can't keep a secret, so it should work as a public client and not get one.

How?

  • Leave the client secret out of the Swagger UI's configuration and out of the API description (/v2/api-docs).
  • Mark TESK_API_SWAGGER_OAUTH_CLIENT_SECRET as deprecated: it is ignored. Register the Swagger UI's client as a public client (implicit grant, the default, or authorization code without a client secret).
  • Tell operators who had the Swagger UI on, with a client secret configured, to rotate that secret at their identity provider.
  • Regression test first; update docs/configuration.md, docs/access-control.md and the upgrade notes.

Acceptance criteria

  • Neither /swagger-resources/configuration/security nor /v2/api-docs contains the configured client secret.
  • The setting is documented as deprecated, with the advice to rotate the secret.
  • Tests and docs match.

Activity

  1. added this to the v1.2.0 milestone on Nov 7, 2026
  2. added
    type: bug
    on Nov 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions