cube-js / cube-js/cube

Scope keyword in Security Context is overriden

Open
#8,995 5 comments 0 reactions 1 assignee Claimed by @igorlukanin View on GitHub
cube cloud
Dominant language
Rust
Stars
20.8k
Forks
2.1k
Avg merge
1d 2h
Merged PRs (30d)
181

Description

**Describe the bug**
When I use the `scope` keyword with some valyes within the Security Context, it is overridden with the value `['sql-runner', 'sql-runner-permissions:select,with,explain,analyze,show,check,describe,get,help']`

**To Reproduce**
Steps to reproduce the behavior:
1. Go on the Playground
2. open the Security Context and set `{ "scope": "test" }`
3. display the content of the Security Context through the code (for example with a `raise Exception`). You should get `'scope': ['sql-runner', 'sql-runner-permissions:select,with,explain,analyze,show,check,describe,get,help']` (with some other values)

**Expected behavior**
I should get `'scope': ['test']` or possibly `'scope': ['test', 'sql-runner', 'sql-runner-permissions:select,with,explain,analyze,show,check,describe,get,help']` if the other values are mandatory

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.