Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add env var to control which group new data sources are assigned to #7697

Copy link
Copy link
@shunki-fujita

Description

@shunki-fujita
Issue body actions

Summary

New data sources are always added to the default group automatically.
This violates the principle of least privilege, as all users belong to the default group and immediately gain access to every new data source.

This issue was raised in #5015 and #5735, and a reviewer suggested controlling the behavior with an environment variable (#5735 review comment):

Let's control this with an environment variable so that the existing behaviour is still the default, but admins can modify it.

Proposal

Add a new environment variable REDASH_DATASOURCE_AUTO_ASSIGN_GROUP to control which group new data sources are assigned to.

Value Behavior
default Add to default group (current behavior)
admin Add to admin group only
none Do not add to any group

The default value would be default to preserve backward compatibility.

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.