initial commit

This commit is contained in:
Shamil Nunhuck
2025-11-08 10:18:19 +00:00
commit 920a79b2e9
25 changed files with 1523 additions and 0 deletions

19
Makefile Normal file
View File

@@ -0,0 +1,19 @@
APP?=saml-oidc-broker
PKG?=shamilnunhuck/saml-oidc-bridge
CONFIG?=example.config.yaml
KEY_ID?=k-$(shell date +%Y-%m)
build:
GO111MODULE=on CGO_ENABLED=0 go build -o bin/$(APP) ./cmd/broker
run:
CONFIG_PATH=$(CONFIG) bin/$(APP)
rotate-key:
bin/$(APP) cert -config $(CONFIG) -id $(KEY_ID) -algo rsa3072 -days 825 -cn id.example.com -org "YourOrg" -k8s-secret-out build/$(KEY_ID).secret.yaml
@echo "Wrote build/$(KEY_ID).secret.yaml"
docker:
docker build --platform linux/amd64 -t shamilnunhuck/$(APP):dev .
.PHONY: build run rotate-key docker