From dd958889b524d0e9c7fdbe4848342bde84a51cd0 Mon Sep 17 00:00:00 2001 From: Angelo Castro Gamboa <51149817+AngeloCG97@users.noreply.github.com> Date: Mon, 28 Nov 2022 16:22:40 -0600 Subject: [PATCH] feat(hasura): added permissions to getRatesStats action (#997) * fix(enviroment): change env value * fix(hasura): add permissions tables * fix(comments): fix comments section * fix(hyperion): fix codefactor issues * fix(hyperion): fix codefactor issues * fix(hasura): delete migration restriction * fix(hyperion): fix updater flows * feat(hapi): created eosrate stats api endpoint * fix(hapi): fix codefactor error * fix(webapp): added validation on bp profile page * feat(hasura): added permissions to getRatesStats action --- .env.example | 2 +- hasura/metadata/actions.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index 19551ab0..2b0468c2 100644 --- a/.env.example +++ b/.env.example @@ -29,7 +29,7 @@ HAPI_HASURA_URL=http://hasura:8080/v1/graphql HAPI_HASURA_ADMIN_SECRET=myadminsecretkey # HASURA HASURA_GRAPHQL_DATABASE_URL=postgres://user:password@eosrate_postgres:5432/eosrate -HASURA_GRAPHQL_ADMIN_SECRET=hasurasecret +HASURA_GRAPHQL_ADMIN_SECRET=myadminsecretkey HASURA_GRAPHQL_UNAUTHORIZED_ROLE=anonymous HASURA_GRAPHQL_ACTION_BASE_URL=http://hapi:9090 # WEBAPP diff --git a/hasura/metadata/actions.yaml b/hasura/metadata/actions.yaml index 6ea1e1d7..f3ea8328 100644 --- a/hasura/metadata/actions.yaml +++ b/hasura/metadata/actions.yaml @@ -4,6 +4,8 @@ actions: kind: synchronous handler: '{{HASURA_GRAPHQL_ACTION_BASE_URL}}/get-rates-stats' forward_client_headers: true + permissions: + - role: anonymous - name: rateProducer definition: kind: synchronous