Skip to content
This repository was archived by the owner on Nov 7, 2023. It is now read-only.
This repository was archived by the owner on Nov 7, 2023. It is now read-only.

Error 500 on Azure AKS #39

Description

@valeriocapponi

Hello,

I have vault 1.11.2 running on a Kubernetes cluster in azure. I have successfully deployed and registered the plugin. However when I try to use it I have this error:

Error writing data to gen/password: Error making API request.

URL: PUT https://(the public url):8200/v1/gen/password
Code: 500. Errors:

* 1 error occurred:
        * internal error

And In the logs on the active node I can see:

2022-08-18T15:54:28.206Z [ERROR] secrets.secrets-gen.secrets-gen_fed2857e.secrets-gen.vault-secrets-gen: plugin tls init: error="error during token unwrap request: Put \"https://10.*.*.105:8200/v1/sys/wrapping/unwrap\": x509: certificate is valid for 127.0.0.1, (the public url), not 10.*.*.105" timestamp=2022-08-18T15:54:28.206Z
2022-08-18T15:54:28.207Z [ERROR] rollback: error rolling back: path=gen/
  error=
  | Unrecognized remote plugin message: 
  | 
  | This usually means that the plugin is either invalid or simply
  | needs to be recompiled to support the latest protocol.
  
2022-08-18T15:54:28.207Z [INFO]  secrets.secrets-gen.secrets-gen_fed2857e.secrets-gen: plugin process exited: path=/usr/local/libexec/vault/vault-secrets-gen pid=28581

It basically looks like for the unwrap is using the internal POD ip address instead of the public one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions