0

It works fine when I invoke the config server using curl -X GET http://localhost:8888/limits-service/dev -H "X-Config-Token: s.6S92v3OekCYEAWjp8unbt4ei"

But from the client microservice, upon invoking the config service http://localhost:8888/limits-service/dev how to pass the header. The following details are configured in the client microservice application.properties but gets 404 error.

spring.application.name=limits-service
spring.cloud.config.uri=http://localhost:8888/
spring.profiles.active=dev. 

So how to pass X-Config-Token: s.6S92v3OekCYEAWjp8unbt4ei ?

mac
  • 543
  • 1
  • 6
  • 17

1 Answers1

1

This token can be provided within the client by setting spring.cloud.config.token in bootstrap.yml.

spring:
  cloud:
    config:
      token: YourVaultToken
jAC
  • 5,195
  • 6
  • 40
  • 55
mac
  • 543
  • 1
  • 6
  • 17