Skip to content

fix: Correct pg_sslrootcert inline PEM claim and min_idle pool behavior#1665

Merged
lukekim merged 1 commit into
trunkfrom
fix/postgres-sslrootcert-and-min-idle
May 6, 2026
Merged

fix: Correct pg_sslrootcert inline PEM claim and min_idle pool behavior#1665
lukekim merged 1 commit into
trunkfrom
fix/postgres-sslrootcert-and-min-idle

Conversation

@claudespice
Copy link
Copy Markdown
Collaborator

Summary

  • Remove inline PEM claim from pg_sslrootcert: The parameter description in both data connector and data accelerator docs claimed that values starting with -----BEGIN are treated as inline PEM content. This was never implemented — the runtime code (postgrespool.rs) treats the value strictly as a file path via std::path::Path::new(...).exists(), and the replication path stores it as PathBuf::from(...). The claim was introduced by PR #10578 which only updated the ParameterSpec description text without adding the corresponding parsing logic.

  • Fix min_idle validation behavior for data connector: The data connector deployment guide stated that pg_connection_pool_min_idle > connection_pool_size is "rejected as configuration errors at startup." This is only true for the Postgres accelerator (which uses deadpool). The data connector uses bb8, which silently caps min_idle at max_size. Updated the description and troubleshooting table to reflect the actual silent-cap behavior.

Files changed

File Change
website/docs/components/data-connectors/postgres/index.md Remove inline PEM claim from pg_sslrootcert description
website/docs/components/data-connectors/postgres/deployment.md Remove inline PEM reference in TLS section; fix min_idle validation claim; update troubleshooting row
website/docs/components/data-accelerators/postgres/index.md Remove inline PEM claim from pg_sslrootcert description
website/docs/components/data-accelerators/postgres/deployment.md Remove inline PEM reference from pg_sslrootcert table cell

No versioned docs required changes — the inline PEM claim exists only in vNext, and no versioned deployment.md exists for the Postgres connector.

Test plan

  • Verify pg_sslrootcert descriptions no longer mention inline PEM content
  • Verify data connector deployment guide describes the silent-cap behavior for min_idle
  • Verify accelerator deployment guide still correctly states startup rejection for min vs size mismatch
  • Confirm no broken links or rendering issues

…behavior

Remove the undocumented inline PEM content claim from pg_sslrootcert
descriptions across both the data connector and data accelerator docs.
The runtime code treats the value as a file path only — the inline PEM
detection logic was never implemented.

Also correct the data connector's min_idle vs pool size documentation:
the bb8 connection pool silently caps min_idle at max_size rather than
rejecting the configuration at startup (the startup rejection only
applies to the accelerator's deadpool pool).
@claudespice claudespice added bug Something isn't working area/docs labels May 6, 2026
@claudespice claudespice self-assigned this May 6, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 6, 2026

✅ Pull with Spice Passed

Passing checks:

  • ✅ Title meets minimum length requirement (10 characters)
  • ✅ Has at least one of the required labels: area/blog, area/docs, area/cookbook, dependencies
  • ✅ No banned labels detected
  • ✅ Has at least one assignee: claudespice

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 6, 2026

🔍 Pull with Spice Failed

Passing checks:

  • ✅ Title meets minimum length requirement (10 characters)
  • ✅ Has at least one of the required labels: area/blog, area/docs, area/cookbook, dependencies
  • ✅ No banned labels detected

Failed checks:

  • ❌ At least one assignee is required for this pull request.

Please address these issues and update your pull request.

@lukekim lukekim enabled auto-merge (rebase) May 6, 2026 16:45
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 6, 2026

🚀 deployed to https://5702a762.spiceai-org-website.pages.dev

@lukekim lukekim merged commit a5916c2 into trunk May 6, 2026
6 of 9 checks passed
@lukekim lukekim deleted the fix/postgres-sslrootcert-and-min-idle branch May 6, 2026 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/docs bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants