Skip to content

[core] fix /jobs access by excluding it from global Swagger basic auth#1981

Open
akozdem wants to merge 1 commit intodevlikeapro:corefrom
akozdem:fix/jobs-double-auth
Open

[core] fix /jobs access by excluding it from global Swagger basic auth#1981
akozdem wants to merge 1 commit intodevlikeapro:corefrom
akozdem:fix/jobs-double-auth

Conversation

@akozdem
Copy link

@akozdem akozdem commented Mar 24, 2026

Summary

/jobs is already protected by its own auth middleware in the apps module, but it is not excluded from the global basic auth configured in SwaggerConfiguratorCore.

As a result, the Jobs UI can end up behind two auth layers and return repeated 401 responses even when credentials are configured correctly.

Change

Add /jobs and /jobs/ to the global auth exclude list in src/core/SwaggerConfiguratorCore.ts.

Why

This keeps /jobs protected by its dedicated auth middleware while avoiding the double-auth behavior from the global Swagger basic auth layer.

Validation

Confirmed in a live deployment running WAHA 2026.3.2: after excluding /jobs and /jobs/ from the global Swagger basic auth layer, the Jobs UI became accessible again. I did not add a new automated test for this change, since the fix is limited to the auth exclude list and was verified in a live deployment.

Related issues

patron:PLUS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant