Skip to content

Commit

Permalink
Pass auth token GATEWAY_SECRET through
Browse files Browse the repository at this point in the history
  • Loading branch information
cybermaggedon committed Dec 2, 2024
1 parent c3fbee4 commit 07580a7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions templates/components/trustgraph.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ local prompt = import "prompt-template.jsonnet";

create:: function(engine)

local envSecrets = engine.envSecrets("gateway-secret")
.with_env_var("GATEWAY_SECRET", "gateway-secret");

local port = $["api-gateway-port"];

local container =
Expand All @@ -29,6 +32,7 @@ local prompt = import "prompt-template.jsonnet";
"--port",
std.toString(port),
])
.with_env_var_secrets(envSecrets)
.with_limits("0.5", "256M")
.with_reservations("0.1", "256M")
.with_port(8000, 8000, "metrics")
Expand All @@ -44,6 +48,7 @@ local prompt = import "prompt-template.jsonnet";
.with_port(port, port, "api");

engine.resources([
envSecrets,
containerSet,
service,
])
Expand Down

0 comments on commit 07580a7

Please sign in to comment.