main
Лев 2025-08-25 16:08:16 +05:00
parent c5ddbf4c9c
commit 8c2a00e869
2 changed files with 4 additions and 4 deletions

View File

@ -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')

View File

@ -6,4 +6,4 @@ services:
container_name: parse_saby
build: .
env_file:
- .venv
- .env