spring-cloud / spring-cloud-vault

Configuration Integration with HashiCorp Vault
http://cloud.spring.io/spring-cloud-vault/
Apache License 2.0
274 stars 152 forks source link

Getting no response #228

Closed jeusdi closed 6 years ago

jeusdi commented 6 years ago

I've create this secret backend:

$ vault kv get configserver/tdev-wssc-configserver
====== Data ======
Key         Value
---         -----
password    fakepassword
username    fakeuser

And,

$ vault kv get configserver/application           
====== Data ======
Key         Value
---         -----
password    fakepassword
username    fakeuser

Also, I've been able to configure and kick off a config server with vault backend:

server.port: 8888

security.user.name: root
security.user.password: s3cr3t

spring:
  application:
    name: tdev-wssc-configserver

  profiles:
    active: vault

  cloud:
    vault:
      enabled: true
      host: ${vault_server_host:localhost}
      port: ${vault_server_port:8200}
      scheme: ${vault_server_scheme:https}
      connection-timeout: 5000
      read-timeout: 15000
      fail-fast: true
      config:
        order: -10
      ssl:
        trust-store: file:keystore.jks
        trust-store-password: secret

      authentication: TOKEN
      token: 0658089f-4327-6476-64c3-279a08cea50e

      generic:
        enabled: true
        backend: ${vault_generic_backend:configserver}
        # profile-separator: '/'
        default-context: ${vault_generic_default_context:application}

    # explicitly disable the config client, otherwise we run into a timeout on startup
    config:
      enabled: false

So, after that:

$ curl http://root:s3cr3t@localhost:8888/configserver/tdev-wssc-configserver

Nevertheless, I'm getting no response.

Also I've tried with:

$ curl http://root:s3cr3t@localhost:8888/tdev-wssc-configserver/default
$ curl http://root:s3cr3t@localhost:8888/secret/tdev-wssc-configserver/default
mp911de commented 6 years ago

Looks as if you're using the versioned Vault backend. Please use spring.cloud.vault.kv (see documentation) instead of spring.cloud.vault.generic.

mp911de commented 6 years ago

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.