SIENTIAPDE-1005

Redis auth
This commit is contained in:
vitor-aignosi
2025-05-19 10:08:45 -03:00
parent df8a0fc706
commit 9b715ea8c9
3 changed files with 19 additions and 6 deletions

View File

@@ -40,7 +40,9 @@ class Activities(Postgres, Redis, Kafka, Gates):
host=redis_config['host'],
port=redis_config['port'],
logger=logger,
notification_handler=notification_handler
notification_handler=notification_handler,
username=redis_config['username'],
password=redis_config['password']
)
# Initialize Kafka

View File

@@ -24,7 +24,9 @@ def test___init__(mock_gates_init, mock_kafka_init, mock_redis_init, mock_postgr
redis_config = {
'host': 'localhost',
'port': 6379
'port': 6379,
'username': 'redis',
'password': 'redis'
}
kafka_config = {
@@ -67,6 +69,8 @@ def test___init__(mock_gates_init, mock_kafka_init, mock_redis_init, mock_postgr
ANY,
host=redis_config['host'],
port=redis_config['port'],
username=redis_config['username'],
password=redis_config['password'],
logger=logger,
notification_handler=notification_handler
)
@@ -104,7 +108,9 @@ def test_prepare_activity(_mock_kafka_init,
redis_config = {
'host': 'localhost',
'port': 6379
'port': 6379,
'username': 'redis',
'password': 'redis'
}
kafka_config = {

View File

@@ -11,7 +11,7 @@ image:
# This sets the pull policy for images.
pullPolicy: Always
# Overrides the image tag whose default is the chart appVersion.
tag: "0.0.1"
tag: "0.0.2"
# This is for the secrets for pulling an image from a private repository more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
imagePullSecrets:
@@ -175,9 +175,14 @@ env:
ssh:
enabled: true
secretName: git-ssh-key-temp
secretName: git-ssh-key-sientia-scouter-worker
sshPath: /mnt/.ssh
knownHostsPath: /mnt/known_hosts
# kubectl create secret docker-registry docker-hub-secret --namespace sientia --docker-server=http://aignosi.azurecr.io --docker-username=aignosi --docker-password=5I5zpQ6sRaHqX1hD3dr+2mo647yO3FRc359/wu6gsP+ACRDRz5mp
# helm upgrade --install sientia-dataops-scouter sientia/sientia-module -n sientia --create-namespace -f ./values.yaml
# helm upgrade --install sientia-scouter-worker sientia/sientia-module -n sientia --create-namespace -f ./values.yaml --version 0.1.0-uat
# kubectl create secret generic git-ssh-key-sientia-scouter-worker \
# --namespace sientia \
# --from-file=ssh-privatekey=git_key \
# --type=kubernetes.io/ssh-auth