Skip to content

Use AIKIDO_TOKEN as secret key #29

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions aikido_firewall/background_process/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
and listen for data sent by our sources and sinks
"""

import secrets
from aikido_firewall.helpers.token import get_token_from_env
from aikido_firewall.helpers.logging import logger
from aikido_firewall.background_process.comms import (
AikidoIPCCommunications,
Expand All @@ -20,7 +20,7 @@ def start_background_process():
"""

# Generate a secret key :
generated_key_bytes = secrets.token_bytes(32)
secret_key_bytes = str.encode(str(get_token_from_env()))

comms = AikidoIPCCommunications(IPC_ADDRESS, generated_key_bytes)
comms = AikidoIPCCommunications(IPC_ADDRESS, secret_key_bytes)
comms.start_aikido_listener()
Loading