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
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.
Activity
fix: warn about the client secret with any profile