hashicorp-vault

Hashicorp Vault - Unrecognized SSL message, plaintext connection? [duplicate]

为君一笑 提交于 2021-01-28 19:44:03
问题 This question already has answers here : Unrecognized SSL message, plaintext connection? Exception (19 answers) Closed 4 years ago . I am trying to setup a java application to connect to Hashicorp's vault and authenticate using the TLS backend (using an SSL Certificate) I am using apache httpcomponents 4.4 as follows: final CloseableHttpClient httpclient = HttpClients.custom().setSSLContext(mySslContext).build(); final CloseableHttpResponse response = httpclient.execute(myRequest) where

HashiCorp Vault No handler for route error despite secrets engine being enabled through the UI

♀尐吖头ヾ 提交于 2021-01-28 12:28:38
问题 Using the non-dev vault server, I went ahead and used “Enable new engine” in the UI for kv version 1 and created a secret. As a test, I am using a token with root permissions to attempt the following and receive the no route error: curl -H "X-Vault-Token: " -X GET https://vaultwebsite.com/v1/secret/kvtest1/test12/test123 {“errors”:[“no handler for route ‘secret/kvtest/anothertest/test’”]} My understanding is that there shouldn’t be the no handler issue as I enabled that secrets engine through

Is it possible to start Vault dev server on 0.0.0.0 instead of 127.0.0.1?

可紊 提交于 2021-01-28 04:43:23
问题 I have a Hashicorp Vault server running on an AWS EC2 instance at 127.0.0.1:8200. In my Security Group's inbound rules, I have TCP 8200 enabled. But, I can't access Vault server from my local machine. I think it's because dev server is only available from inside EC2 instance (because it's running at 120.0.0.1, am I right?). Is it possible to run Vault dev server at 0.0.0.0 instead, so I can access it from Internet? 回答1: Start your Vault server with the following command: vault server -dev

How can one use HashiCorp Vault in Airflow?

折月煮酒 提交于 2021-01-27 04:54:32
问题 I am starting to use Apache Airflow and I am wondering how to effectively make it use secrets and passwords stored in Vault. Unfortunately, search does not return meaningful answers beyond a yet-to-be-implemented hook in Airflow project itself. I can always use Python's hvac module to generically access Vault from PythonOperator but I was wondering if there is any better way or a good practice (e.g. maybe an Airflow plugin I missed). 回答1: Airflow >=1.10.10 supports Secrets Backends and

Caused by: java.lang.IllegalArgumentException: Token (spring.cloud.vault.token) must not be empty - Hashicorp Vault

流过昼夜 提交于 2021-01-21 08:27:51
问题 I'm following Vault Configuration example referring from: https://spring.io/guides/gs/vault-config/. When I am executing the code I am getting below error. Error: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'vaultPropertySourceLocator' defined in class path resource [org/springframework/cloud/vault/config/VaultBootstrapPropertySourceConfiguration.class]: Unsatisfied dependency expressed through method 'vaultPropertySourceLocator' parameter 0

Caused by: java.lang.IllegalArgumentException: Token (spring.cloud.vault.token) must not be empty - Hashicorp Vault

泄露秘密 提交于 2021-01-21 08:25:04
问题 I'm following Vault Configuration example referring from: https://spring.io/guides/gs/vault-config/. When I am executing the code I am getting below error. Error: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'vaultPropertySourceLocator' defined in class path resource [org/springframework/cloud/vault/config/VaultBootstrapPropertySourceConfiguration.class]: Unsatisfied dependency expressed through method 'vaultPropertySourceLocator' parameter 0

Caused by: java.lang.IllegalArgumentException: Token (spring.cloud.vault.token) must not be empty - Hashicorp Vault

放肆的年华 提交于 2021-01-21 08:25:04
问题 I'm following Vault Configuration example referring from: https://spring.io/guides/gs/vault-config/. When I am executing the code I am getting below error. Error: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'vaultPropertySourceLocator' defined in class path resource [org/springframework/cloud/vault/config/VaultBootstrapPropertySourceConfiguration.class]: Unsatisfied dependency expressed through method 'vaultPropertySourceLocator' parameter 0

Caused by: java.lang.IllegalArgumentException: Token (spring.cloud.vault.token) must not be empty - Hashicorp Vault

为君一笑 提交于 2021-01-21 08:21:08
问题 I'm following Vault Configuration example referring from: https://spring.io/guides/gs/vault-config/. When I am executing the code I am getting below error. Error: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'vaultPropertySourceLocator' defined in class path resource [org/springframework/cloud/vault/config/VaultBootstrapPropertySourceConfiguration.class]: Unsatisfied dependency expressed through method 'vaultPropertySourceLocator' parameter 0