test
parent
c5ddbf4c9c
commit
8c2a00e869
|
|
@ -1,12 +1,12 @@
|
|||
import os
|
||||
from os import getenv
|
||||
import hvac
|
||||
|
||||
def connect_hvac():
|
||||
client = hvac.Client(
|
||||
url='https://vlt.dataekb.ru:8222',
|
||||
token=os.environ.get('VAULT_TOKEN'),
|
||||
token= getenv('VAULT_TOKEN'),
|
||||
)
|
||||
print(f"Token exists: {bool(os.getenv('VAULT_TOKEN'))}")
|
||||
print(f"Token exists: {bool(getenv('VAULT_TOKEN'))}")
|
||||
print(f"Authenticated: {client.is_authenticated()}")
|
||||
|
||||
read_response = client.secrets.kv.v2.read_secret_version(path='oracledb', mount_point='kv')
|
||||
|
|
|
|||
|
|
@ -6,4 +6,4 @@ services:
|
|||
container_name: parse_saby
|
||||
build: .
|
||||
env_file:
|
||||
- .venv
|
||||
- .env
|
||||
Loading…
Reference in New Issue