Skip to content

Commit

Permalink
add metronome role and clean up unused roles/users (#659)
Browse files Browse the repository at this point in the history
  • Loading branch information
pnadolny13 authored Jul 6, 2023
1 parent 668917e commit d136698
Showing 1 changed file with 24 additions and 129 deletions.
153 changes: 24 additions & 129 deletions data/utilities/permifrost/roles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ databases:

# User / Testing

- asteers_prep:
shared: no
- asteers_prod:
shared: no

- brooklyn_data_co_raw:
shared: no

Expand All @@ -31,13 +26,6 @@ databases:
- cicd_prod:
shared: no

- pnadolny_raw:
shared: no
- pnadolny_prep:
shared: no
- pnadolny_prod:
shared: no

- ryan_miranda_raw:
shared: no

Expand All @@ -51,11 +39,6 @@ databases:
- staging_prod:
shared: no

- tmurphy_prep:
shared: no
- tmurphy_prod:
shared: no

- userdev_raw:
# Common working space, schemas created by users
shared: no
Expand Down Expand Up @@ -305,47 +288,11 @@ roles:
# ==========================================

# Adding new users:
# 1. Copy-paste below `asteers` entry as a template for the new user. Exclude user environment unless needed.
# 1. Copy-paste below `pnadolny` entry as a template for the new user. Exclude user environment unless needed.
# 2. Alpha sort the new user amongst other user names.
# 3. Users are named by first-initial-last-name ("jsmith" for "John Smith").
# 4. Be sure to also add the new DB names at the top of the file.

- asteers:
member_of:
- developer
owns:
databases:
- asteers_prep
- asteers_prod
schemas:
- asteers_prep.*
- asteers_prod.*
tables:
- asteers_prep.*.*
- asteers_prod.*.*
privileges:
databases:
read:
- asteers_prep
- asteers_prod
write:
- asteers_prep
- asteers_prod
schemas:
read:
- asteers_prep.*
- asteers_prod.*
write:
- asteers_prep.*
- asteers_prod.*
tables:
read:
- asteers_prep.*.*
- asteers_prod.*.*
write:
- asteers_prep.*.*
- asteers_prod.*.*

- brooklyn_data_co:
warehouses:
- brooklyn_data_co
Expand Down Expand Up @@ -414,50 +361,29 @@ roles:
- cicd_prep.*.*
- cicd_prod.*.*

- pnadolny:
member_of:
- developer
owns:
databases:
- pnadolny_prep
- pnadolny_prod
- pnadolny_raw
schemas:
- pnadolny_prep.*
- pnadolny_prod.*
- pnadolny_raw.*
tables:
- pnadolny_prep.*.*
- pnadolny_prod.*.*
- pnadolny_raw.*.*
- metronome:
warehouses:
- loader
privileges:
databases:
read:
- pnadolny_prep
- pnadolny_prod
- pnadolny_raw
- raw
write:
- pnadolny_prep
- pnadolny_prod
- pnadolny_raw
- raw
schemas:
read:
- pnadolny_prep.*
- pnadolny_prod.*
- pnadolny_raw.*
- raw.metronome_integration
write:
- pnadolny_prep.*
- pnadolny_prod.*
- pnadolny_raw.*
- raw.metronome_integration
tables:
read:
- pnadolny_prep.*.*
- pnadolny_prod.*.*
- pnadolny_raw.*.*
- raw.metronome_integration.*
write:
- pnadolny_prep.*.*
- pnadolny_prod.*.*
- pnadolny_raw.*.*
- raw.metronome_integration.*

- pnadolny:
member_of:
- developer

# System user role for Staging
- staging:
Expand Down Expand Up @@ -509,6 +435,10 @@ roles:
member_of:
- developer

- tmurphy:
member_of:
- developer

- rbaum:
member_of: []

Expand Down Expand Up @@ -552,41 +482,6 @@ roles:
write:
- ryan_miranda_raw.*.*

- tmurphy:
member_of:
- developer
owns:
databases:
- tmurphy_prep
- tmurphy_prod
schemas:
- tmurphy_prep.*
- tmurphy_prod.*
tables:
- tmurphy_prep.*.*
- tmurphy_prod.*.*
privileges:
databases:
read:
- tmurphy_prep
- tmurphy_prod
write:
- tmurphy_prep
- tmurphy_prod
schemas:
read:
- tmurphy_prep.*
- tmurphy_prod.*
write:
- tmurphy_prep.*
- tmurphy_prod.*
tables:
read:
- tmurphy_prep.*.*
- tmurphy_prod.*.*
write:
- tmurphy_prep.*.*
- tmurphy_prod.*.*

# ==========================================
# Users (Data Team and Service Accounts)
Expand All @@ -602,6 +497,11 @@ users:
member_of:
- meltano

- metronome:
can_login: yes
member_of:
- metronome

- permission_bot:
can_login: yes
member_of:
Expand Down Expand Up @@ -632,7 +532,7 @@ users:
- tmurphy:
can_login: yes
member_of:
- tmurphy # TODO - migrate to generic 'developer' role?
- tmurphy
- accountadmin
- securityadmin
- useradmin
Expand All @@ -643,11 +543,6 @@ users:
# Users (non-elevated)
# ==========================================

- asteers:
can_login: yes
member_of:
- asteers

- brooklyn_data_co:
can_login: yes
member_of:
Expand Down

0 comments on commit d136698

Please sign in to comment.