summaryrefslogtreecommitdiff
path: root/run-debug
diff options
context:
space:
mode:
Diffstat (limited to 'run-debug')
-rwxr-xr-xrun-debug20
1 files changed, 20 insertions, 0 deletions
diff --git a/run-debug b/run-debug
new file mode 100755
index 0000000..fdd1ce8
--- /dev/null
+++ b/run-debug
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+set -eu
+
+scopes="
+uapi_projects_get
+"
+
+./generate-rsa-key t.key
+./create-token t.key issuer audience "$scopes" > t.token
+cat <<EOF > t.yaml
+log:
+- filename: t.log
+token-issuer: issuer
+token-audience: audience
+token-public-key: $(cat t.key.pub)
+statedir: t.state
+EOF
+
+ICK_CONTROLLER_CONFIG=t.yaml python3 ick_controller.py