Compare commits
7 Commits
ef02b23111
...
aef1f4e482
| Author | SHA1 | Date |
|---|---|---|
|
|
aef1f4e482 | |
|
|
00a840a3fe | |
|
|
26e5accd25 | |
|
|
46839187bc | |
|
|
91add1edd4 | |
|
|
fa72b16fc1 | |
|
|
8112bc2385 |
|
|
@ -2,7 +2,7 @@ pipeline {
|
|||
agent { label 'agent_smith' }
|
||||
|
||||
stages {
|
||||
stage('recreate > build > reun container') {
|
||||
stage('recreate > build > run container') {
|
||||
steps {
|
||||
sh "docker-compose up -d --force-recreate --build parse_saby"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@ class SimpleDB:
|
|||
def __init__(self):
|
||||
self._create_db_pool_from_vault()
|
||||
self.pool
|
||||
#init_oracle_client() Если работает нужно убрать!
|
||||
|
||||
def _handle_vault_exception(self, e: Exception, message: str):
|
||||
"""
|
||||
|
|
@ -44,6 +43,11 @@ class SimpleDB:
|
|||
)
|
||||
except Exception as e:
|
||||
self._handle_vault_exception(e, "Ошибка при создание покдлючения c Vault")
|
||||
|
||||
# Проверка авторизации в Vault
|
||||
if not client.is_authenticated():
|
||||
raise Exception("Vault authentication failed")
|
||||
|
||||
try:
|
||||
# Чтение секретов из Vault
|
||||
secret_read_response = client.secrets.kv.v2.read_secret_version(
|
||||
|
|
|
|||
Loading…
Reference in New Issue