-
Notifications
You must be signed in to change notification settings - Fork 150
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
'Scheme' Configuration option is not recognized when starting up spring boot application #712
Comments
You provided both, Please either configure URI or scheme/hostname/port. |
I removed the
It appears as though the URI I provided is not being used |
By using HTTPS in the URI, you can switch to SSL. Also, your URL looks like the default values. |
Since this is for local development, I would like to avoid setting up SSL on my local vault container. Is there any way to configure it so that it can make requests over http instead of https? Also I tried changing the URI to
Here is the log printed before the stack trace: |
Does anything change if you provide that value as system property or via |
Setting it as a System property worked! While I am happy that this removed the error, is there any way to configure this in the properties file instead? |
I assume that due to the early nature of Spring Boot's config file handling, profile-specific config files aren't parsed yet. |
I would agree with this however I also added tried changing the main |
Is there something I have to do to enable this package to pull in the settings in my config files? |
Also, I just checked my gradle compileClasspath and it looks like it is using v4.0.1 of the |
There's a thread on profile-specific config files in the Boot issue tracker: spring-projects/spring-boot#26858 |
While I agree that this is an issue, I am also concerned with my properties not being loaded when there is no profile specified. My settings were not loaded even when they were moved to the |
Thank you for taking the time to look at this issue! I appreciate it |
I figured out the issue! I should have been putting my settings in a |
Describe the bug
I am running vault in a local docker container at http://localhost:8200 and have configured my application to reach out to this container using http, NOT https. However, I see this error when starting up the application:
I/O error on GET request for "https://localhost:8200/v1/secret/application/local": Unsupported or unrecognized SSL message
I will post my configuration file and my docker-compose file below.
I am using the following dependency in my gradle build:
implementation("org.springframework.cloud:spring-cloud-starter-vault-config")
From the error message it looks like spring-cloud-vault-config-4.0.1 and spring-vault-core-3.0.0 are being brought in as transitive dependencies.
Also, I am running this locally using the
local
profileSample
application-local.yml:
docker-compose.yml:
The text was updated successfully, but these errors were encountered: