You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "paleolimbot (via GitHub)" <gi...@apache.org> on 2023/05/25 01:45:52 UTC

[GitHub] [arrow-adbc] paleolimbot opened a new pull request, #708: fix(r): Don't save database/connection/statement options at the R level

paleolimbot opened a new pull request, #708:
URL: https://github.com/apache/arrow-adbc/pull/708

   I think initially I thought this would be useful for printing, but it turns out it's distressingly easy to print out/leak/expose secret credentials with the default print method:
   
   ``` r
   library(adbcdrivermanager)
   
   uri <- Sys.getenv("ADBC_SNOWFLAKE_TEST_URI")
   adbc_database_init(adbcsnowflake::adbcsnowflake(), uri = uri)
   #> <adbcsnowflake_database> <pointer: 0x14f65c350> List of 2
   #>  $ driver :<adbcsnowflake_driver_snowflake> List of 1
   #>   ..$ driver_init_func:Class 'adbc_driver_init_func' <externalptr> 
   #>  $ options:List of 1
   #>   ..$ uri: chr "paleolimbot:ADBC44test@wt78143.ca-central-1.aws/SNOWFLAKE_SAMPLE_DATA/TPCH_SF1?role=ACCOUNTADMIN"
   ```
   
   This PR nixes that whole system: if it's helpful to expose something it can be exposed by individual drivers. After this PR:
   
   ``` r
   library(adbcdrivermanager)
   
   uri <- Sys.getenv("ADBC_SNOWFLAKE_TEST_URI")
   adbc_database_init(adbcsnowflake::adbcsnowflake(), uri = uri)
   #> <adbcsnowflake_database> <pointer: 0x15365d570> List of 1
   #>  $ driver:<adbcsnowflake_driver_snowflake> List of 1
   #>   ..$ driver_init_func:Class 'adbc_driver_init_func' <externalptr>
   ```
   
   <sup>Created on 2023-05-24 with [reprex v2.0.2](https://reprex.tidyverse.org)</sup>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-adbc] paleolimbot merged pull request #708: fix(r): Don't save database/connection/statement options at the R level

Posted by "paleolimbot (via GitHub)" <gi...@apache.org>.
paleolimbot merged PR #708:
URL: https://github.com/apache/arrow-adbc/pull/708


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org