Skip to content

Remove URL check that causes loading 401 responses from Spring Cloud … #809

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 1, 2020

Conversation

rgoers
Copy link
Contributor

@rgoers rgoers commented Aug 13, 2020

Log4j 2 provides enhanced Spring Boot and Spring Cloud Config support with its log4j-spring-boot and log4j-spring-cloud-config-client modules. The Spring Cloud Config Client allows Log4j configuration files to be managed in Spring Cloud Config allowing for dynamic updating of the configuration, configurable SSL support, and support for credentials to access Spring Cloud Config server.

Unfortunately, Spring Cloud Commons' PropertySourceBootstrapConfiguration class causes a 401 error response when trying to access a logging configuration file from Spring Cloud Configuration server when credentials are required. This check really provides no value since the underlying LoggingSystem will throw an exception if the url cannot be accessed, and because it does not include credentials it results in a 401 response that prevents the Spring Boot application from starting if credentials are required to access the Spring Cloud Configuration server.

@spencergibb
Copy link
Member

We'll follow the conversation in the boot PR

@rgoers
Copy link
Contributor Author

rgoers commented Aug 14, 2020

Thanks Spencer. I should note that the check in this piece of code should never fail. By the time this check happens the check in Spring Boot will already have occurred. Obviously if that fails this will never be reached. However, I do understand the desire to keep the logic the same.

@rgoers
Copy link
Contributor Author

rgoers commented Sep 19, 2020

The fix for Spring Boot is available in 2.2.10 and 2.3.4. Please either apply this or modify the affected code to match Spring Boot.

@rgoers
Copy link
Contributor Author

rgoers commented Sep 24, 2020

Any updates on this?

@spencergibb spencergibb added this to the 3.0.0-M4 milestone Oct 1, 2020
@spencergibb spencergibb merged commit 4a2e83e into spring-cloud:master Oct 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants