Skip to content

fix(basic-auth): split credentials on the first colon only - #13836

Open
Arjen10 wants to merge 2 commits into
apache:masterfrom
Arjen10:fix/basic-auth-password-colon
Open

fix(basic-auth): split credentials on the first colon only#13836
Arjen10 wants to merge 2 commits into
apache:masterfrom
Arjen10:fix/basic-auth-password-colon

Conversation

@Arjen10

@Arjen10 Arjen10 commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Description

RFC 7617 treats everything after the first ':' as the password. ngx.re.split on all colons truncated passwords that contained ':'.

Align with the implementation of ldap-auth-advanced

Which issue(s) this PR fixes:

Fixes #13835

Checklist

  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (If not, please discuss on the APISIX mailing list first)

RFC 7617 treats everything after the first ':' as the password.
ngx.re.split on all colons truncated passwords that contained ':'.
@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. bug Something isn't working labels Aug 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: basic-auth password containing colon is truncated

1 participant