Skip to content

Conversation

@JC1738
Copy link
Owner

@JC1738 JC1738 commented Jan 26, 2026

DuckDB v1.2.0 CLI displays all function parameters in plain text, exposing credentials in terminal output and history. This change adds environment variable support for secure credential configuration.

Changes:

  • config_function.go: Add DUCKARROW_PASSWORD and DUCKARROW_USERNAME environment variable fallback when parameters are empty strings
  • README.md: Add Password Security section documenting env var usage
  • tests/env_var_test.sql: Add comprehensive test coverage
  • .gitignore: Add AGENTS.md to ignore agent documentation
  • internal/flight/pool_test.go: Formatting cleanup (go fmt)

Priority order: Function parameter > Environment variable > Empty string

Usage:
export DUCKARROW_PASSWORD='secret' duckdb -c "SELECT duckarrow_configure('grpc://...', 'user', '', true);"

Backward compatible: Direct parameter passing continues to work unchanged.

DuckDB v1.2.0 CLI displays all function parameters in plain text,
exposing credentials in terminal output and history. This change adds
environment variable support for secure credential configuration.

Changes:
- config_function.go: Add DUCKARROW_PASSWORD and DUCKARROW_USERNAME
  environment variable fallback when parameters are empty strings
- README.md: Add Password Security section documenting env var usage
- tests/env_var_test.sql: Add comprehensive test coverage
- .gitignore: Add AGENTS.md to ignore agent documentation
- internal/flight/pool_test.go: Formatting cleanup (go fmt)

Priority order: Function parameter > Environment variable > Empty string

Usage:
  export DUCKARROW_PASSWORD='secret'
  duckdb -c "SELECT duckarrow_configure('grpc://...', 'user', '', true);"

Backward compatible: Direct parameter passing continues to work unchanged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants