Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

116
Visualizações
Hashicorp Vault fetch secrets in browser with certificate authentication in javascript

I have a Hashicorp Vault server deployed with tls enabled to be able to login with a certificate. My certificate is stored in my browser certificate store. I want to request data from the vault in my frontend react app.

Now to be able to request data from the vault with the certificate, I have to call :

POST "https://{vault_domain}/v1/auth/cert/login"

The first time I call the endpoint I get prompted to select the certificate in my browser certificate personal store. And then I get the response with the client_token. Then I use the client_token in the header of all my vault calls to be authorized to call the vault endpoints. For example getting the public key key_name :

fetch("https://{vault_domain}/v1/transit/keys/key_name", {headers: { "X-Vault-Token": {client_token}}}

I find it very annoying to have to call the login endpoint to get the token and use token to make the other calls. Am I doing it right ? Is there an other way to do it ? To be automatically authorized if the certificate is in the store ?

And also is there a way to automatically check if a valid certificate is available and use it without prompting the user ?

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda