Skip to content

Commit

Permalink
adapting server configuration to read eventual modifications of spire…
Browse files Browse the repository at this point in the history
… cli
  • Loading branch information
telliere committed Mar 20, 2024
1 parent b5c42e9 commit 1352e53
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions server/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
get_server_identity_JWT,
validate_client_JWT_SVID,
)
from lib import spire_interactions
from tools.docker_utils import get_build_env_image_digests
from pyspiffe.spiffe_id.spiffe_id import SpiffeId

Expand All @@ -24,6 +25,12 @@
options = parse_arguments()
configuration = parse_configuration(options.config)

if configuration['spire-server'].get('spire-server-bin') :
spire_interactions.spire_server_bin = configuration['spire-server']['spire-server-bin']

if configuration['spire-server'].get('pre-command') :
spire_interactions.pre_command = configuration['spire-server']['pre-command']

# Defining the trust domain (SPIRE Trust Domain)
trust_domain = configuration['spire-server']['trust-domain']

Expand Down

0 comments on commit 1352e53

Please sign in to comment.