hasura / hasura/graphql-engine

console: API->Security page shows permission error upon page refresh

Open
#8,485 1 comment 0 reactions 0 assignees View on GitHub
c/console estimate/S k/bug support/needs-action
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

### Version Information

Server Version: v2.6.1

### Environment

Cloud/EE

### What is the expected behaviour?
Security page should load when the user have correct permission, now it loads only when the user go through the api tab and clicking on the security button. when the user refresh or reload the page it shows permission error.

### Keywords

API Security Tab Permission

### What is the current behaviour?
security tab is not loading when directly accessed through URL

### How to reproduce the issue?

1. go to API -> Security on a cloud project
2. refresh the page

### Screenshots or Screencast

![image](https://user-images.githubusercontent.com/8408875/168029204-af1797c3-1bf5-4924-8eaf-e89dc6cbeb2c.png)

### Please provide any traces or logs that could help here.

### Any possible solutions?

fix the routing and permission check logic

### Can you identify the location in the source code where the problem exists?

### If the bug is confirmed, would you be willing to submit a PR?

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue by opening the API → Security page in a cloud project and refreshing its URL directly. Trace the page's routing and permission check, then verify that a user with the correct permission can load the page both through the API tab and after a refresh without a permission error.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
authorization, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.