2121 DB : ' {{ or .DB "mongo44" }}'
2222 CACHE : ' {{ or .CACHE "redis6" }}'
2323 VARIATION : ' {{or .VARIATION "murmur64" }}'
24- confs_dir : ' ./{{ .FLAVOUR }}'
24+ confs_dir : " ./{{ .FLAVOUR }}"
2525 env_file : local-{{.DB}}.env
2626 cmds :
2727 - |
4141 DB : ' {{ or .DB "mongo7" }}'
4242 CACHE : ' {{ or .CACHE "redis6" }}'
4343 VARIATION : ' {{or .VARIATION "murmur64" }}'
44- confs_dir : ' ./{{ .FLAVOUR }}'
44+ confs_dir : " ./{{ .FLAVOUR }}"
4545 env_file : upgrade.env
4646 cmds :
4747 - |
@@ -53,15 +53,14 @@ tasks:
5353 docker compose -p auto -f pro-ha.yml -f deps_pro-ha.yml -f ${DB}.yml -f ${CACHE}.yml --env-file master.env --profile slave-datacenter up --quiet-pull -d --build
5454 fi
5555
56-
5756 clean :
5857 desc : Tears down all local infrastructure including networking
5958 env :
6059 FLAVOUR : ' {{ or .FLAVOUR "pro" }}'
6160 DB : ' {{ or .DB "mongo44" }}'
6261 CACHE : ' {{ or .CACHE "redis6" }}'
6362 VARIATION : ' {{or .VARIATION "murmur64" }}'
64- confs_dir : ' ./{{ .FLAVOUR }}'
63+ confs_dir : " ./{{ .FLAVOUR }}"
6564 env_file : local-{{.DB}}.env
6665 cmds :
6766 - docker compose -p auto -f ${FLAVOUR}.yml -f deps_${FLAVOUR}.yml -f ${DB}.yml -f ${CACHE}.yml --env-file master.env --env-file master.env --profile all down --remove-orphans
@@ -72,12 +71,31 @@ tasks:
7271 Deploys pytest container that runs against local infrastructure using docker compose manifest
7372 - For mdcb you may want to use the ARGS "--ci -m "mdcb""
7473 - For non mdcb deployments something like "-m "not local and not mdcb""
75- cmds :
74+ cmds :
7675 - |
7776 docker run --rm --network auto_default --env-file ./pytest.env \
7877 754489498669.dkr.ecr.eu-central-1.amazonaws.com/tyk-automated-tests:master \
7978 pytest -c pytest_ci.ini {{.CLI_ARGS}}
8079
80+ seed-vault :
81+ desc : Seeds Vault with placeholder OAuth mTLS secrets required for local gateway startup
82+ cmds :
83+ - |
84+ echo "Waiting for Vault to be ready..."
85+ until curl -s http://localhost:8200/v1/sys/health | grep -q '"initialized":true'; do
86+ sleep 2
87+ done
88+ echo "Seeding Vault with placeholder OAuth mTLS secrets..."
89+ curl -s -X POST http://localhost:8200/v1/secret/data/oauth/cert_file \
90+ -H "X-Vault-Token: root" \
91+ -H "Content-Type: application/json" \
92+ -d '{"data": {"cert_file": "placeholder", "value": "placeholder"}}'
93+ curl -s -X POST http://localhost:8200/v1/secret/data/oauth/key_file \
94+ -H "X-Vault-Token: root" \
95+ -H "Content-Type: application/json" \
96+ -d '{"data": {"key_file": "placeholder", "value": "placeholder"}}'
97+ echo "Vault seeded successfully. You can now start your local gateway."
98+
8199 healthcheck :
82100 desc : Usefull healthchecks to ensure services are up and running
83101 cmds :
0 commit comments