Skip to content

Commit

Permalink
Feat: Make generate Oathkeeper rules
Browse files Browse the repository at this point in the history
  • Loading branch information
TimVosch committed May 6, 2024
1 parent ec408ac commit ef7ced9
Show file tree
Hide file tree
Showing 6 changed files with 2,620 additions and 7 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,8 @@ golib: golib-clean
admin:
echo '{"schema_id":"default", "traits": {"email":"[email protected]"}}' | http post 127.0.0.1:4434/admin/identities | jq .id | \
xargs -I uid echo '{"identity_id":"uid"}' | http post 127.0.0.1:4434/admin/recovery/code

oathkeeper:
-@mkdir -p $(CURDIR)/tools/oathkeeper
@docker run --rm --init -v $(CURDIR):/project redocly/cli bundle /project/tools/openapi/api.yaml > $(CURDIR)/tools/oathkeeper/bundled_openapi.yaml
@openkeeper generate --config $(CURDIR)/tools/oathkeeper/openkeeper.toml > $(CURDIR)/tools/oathkeeper/generated_rules.json
Loading

0 comments on commit ef7ced9

Please sign in to comment.