-
Notifications
You must be signed in to change notification settings - Fork 0
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
Priv #13
base: main
Are you sure you want to change the base?
Conversation
…t, using roxyglobals now
…ileges and row level policies in one fxn; add passwd table setup in a new man file
… - & add structure to pkgdown config
- add new as_priv s3 class - rework how to make privileges - add auto execute sql code with code from jqr - import more rlang fxns
- example code for passwd table turned into a fxn to do one liner for table setup - use one liner setup in privileges and row policy fxn docs - rework rls_run to fetch con from query input if con not passed, also separate file -
…er for drop oplicies
…more egs fully work
…ith db connection fxn
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey I'm finally picking this back up. I have more of this to review but let's start with this.
#> 1 0 /root 111-222-3333 xxx Admin /bin/dash 0 admin | ||
#> 2 1 /home/bob 123-456-7890 xxx Bob /bin/zsh 1 bob | ||
#> 3 1 /home/alice 098-765-4321 xxx Alice /bin/zsh 2 alice | ||
rls_run(policy1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you remove or rename rls_run()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, now getting my head back into this it's rls_perform()
.
DBI::dbConnect(RPostgres::Postgres(), ...) | ||
}, error = function(...) { | ||
vars <- "try setting env vars: PGHOST, PGPORT, PGUSER, PGDATABASE" | ||
testthat::skip(glue("Test database not available. {vars}")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to add PGPASSWORD
to this list.
#' rls_tbl(con, "passwd") %>% | ||
#' grant(update, select, cols = c("real_name", "home_phone")) %>% | ||
#' to(jane) | ||
#' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How can I see the results of grant
in action? My instinct was rls_column_privileges
but it returns an empty. Also who is jane
in this context? Do I have to create jane as a user or something first?
Description
Related Issue
Example
Testing