Skip to content

Commit

Permalink
add prod config
Browse files Browse the repository at this point in the history
  • Loading branch information
patrislav committed Mar 6, 2024
1 parent e33b359 commit 1e562fd
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
CONFIG ?= $(TOP)/etc/waas-auth.conf
ENV ?= prod

TOP := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
SHELL = bash -o pipefail
Expand Down Expand Up @@ -56,7 +57,7 @@ test-clean:

eif: ensure-version clean
mkdir -p bin
docker build --platform linux/amd64 --build-arg VERSION=$(VERSION) --build-arg ENV_ARG=next -t waas-authenticator-builder .
docker build --platform linux/amd64 --build-arg VERSION=$(VERSION) --build-arg ENV_ARG=$(ENV) -t waas-authenticator-builder .
docker run --platform linux/amd64 -v $(TOP)/bin:/out waas-authenticator-builder waas-auth.$(VERSION)

ensure-version:
Expand Down
35 changes: 35 additions & 0 deletions etc/waas-auth.prod.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
region = "ca-central-1"

[service]
mode = "prod"
vsock = true
use_nsm = true
enclave_port = 5000
proxy_port = 8000
debug_profiler = false

[telemetry]
allow_any = true

[admin]
public_key = '''-----BEGIN RSA PUBLIC KEY-----
MIIBCgKCAQEAuHXPk+w9FDqjwV38kmFNX98fIZODIHXSq7NgA2MYn0cYSknbQbpr
XAsektesnntVdhtIPNfcbUstIF2F6mApDmsr5OMNuueXB8EbeUddq8I5T9gkQeG6
+N8o4G/x4p5gtnRsyU8kkzM5IGdCLVM5YPAvG75KTMNmu4dVBzd/2+o3pesqqZz+
jDhKxKPDjU9rGe0TI+ZQ4+2HnjgXd3/yfprsDjYgK97/0mQDkoDrgX5g3dgBjoZJ
5IOx36a+eDQhXFrudYSAZcFecEt57JlDUGO2Tu/UnMn02irceVYiLXcCuNXTwfPK
ckSKHMbVkKMJMdp+jsMSfgkQGZhy+FPaMQIDAQAB
-----END RSA PUBLIC KEY-----'''

[endpoints]
metadata_server = "http://169.254.169.254"
waas_api_server = "https://api.sequence.app"

[database]
tenants_table = "prod_tenants"
accounts_table = "prod_accounts"
sessions_table = "prod_sessions"

[kms]
tenant_keys = ["arn:aws:kms:ca-central-1:471112509263:key/d31f2bc7-cc61-4053-a014-dd3848611cd5"]
default_session_keys = ["arn:aws:kms:ca-central-1:471112509263:key/d31f2bc7-cc61-4053-a014-dd3848611cd5"]

0 comments on commit 1e562fd

Please sign in to comment.