Describe the bug
Hello all, I don't know if this is really a bug, but it's possibly unwanted behavior when using basic auth (probably a very small use case). This is not so much a bug in the Spring Security framework, as it is in the procedures that caused it.
Environment: Spring Boot Starter Security 3.4.1 Kubernetes 1.27+ RedHat UBI9 Container Image
When using basic auth, with no customizations to the configuration, an password environment variable containing a newline character will cause the password to be "incorrect" when trying to curl with a non-newline password.
To Reproduce set an environment
Expected behavior A clear and concise description of what you expected to happen.
Sample
A link to a GitHub repository with a minimal, reproducible sample.
Reports that include a sample will take priority over reports that do not. At times, we may require a sample, so it is good to try and include a sample up front.
Comment From: speedythesnail
Closed issue, was trying to create a draft so I can complete this later.