From d4ff522afff75b0ddf368b3eada735d7687de6db Mon Sep 17 00:00:00 2001 From: iverly Date: Mon, 27 Nov 2023 14:14:31 +0100 Subject: [PATCH] feat(oathkeeper): add swagger rules for dev Signed-off-by: iverly --- config/oathkeeper/rules/dev.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/config/oathkeeper/rules/dev.yaml b/config/oathkeeper/rules/dev.yaml index a070cab..a5e67d8 100644 --- a/config/oathkeeper/rules/dev.yaml +++ b/config/oathkeeper/rules/dev.yaml @@ -112,3 +112,22 @@ handler: allow mutators: - handler: noop + +- id: "dev:api-swagger:anonymous" + upstream: + preserve_host: true + url: "http://api:3000" + match: + url: "http://api.nx-next-nest-prisma-ory-template.127.0.0.1.sslip.io/swagger/<.*>" + methods: + - GET + - POST + - PUT + - DELETE + - PATCH + authenticators: + - handler: anonymous + authorizer: + handler: allow + mutators: + - handler: noop