Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offline access control #7

Closed
Vonng opened this issue Feb 18, 2021 · 1 comment
Closed

Offline access control #7

Vonng opened this issue Feb 18, 2021 · 1 comment
Assignees
Labels
ENHANCEMENT New feature or request
Milestone

Comments

@Vonng
Copy link
Owner

Vonng commented Feb 18, 2021

Scenario

In real world production environment, It is common requirements that running some ETL process / Interactive Queries / SAGA on OLTP databases.

It is highly recommended to run that shit on dedicate instance (which may named offline) to avoid undesired side-effect on entire cluster.

Thus, we need a mechanism to MARK a specific instance for that purpose. and a new default role to MARK users with that sort of needs.

Proposal

We may introduce a new default role dbrole_offline which have same privilege as dbrole_readonly but is not a member of dbrole_readonly. It will be granted to ETL/SAGA/Interactive users.

And members of dbrole_offline will only be allowed by hba on instances with pg_role = offline or variable pg_offline_query = true.

@Vonng Vonng added the ENHANCEMENT New feature or request label Feb 18, 2021
@Vonng Vonng self-assigned this Feb 18, 2021
@Vonng Vonng added this to the v0.6 milestone Feb 18, 2021
@Vonng
Copy link
Owner Author

Vonng commented Feb 19, 2021

Resolved by 0683622

@Vonng Vonng closed this as completed Feb 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ENHANCEMENT New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant