Repository navigation
Accept DocuMentor's development Postgres without TLS where switched on - #8
Merged
Merged
Conversation
OPENCODE_DATABASE_PLAINTEXT_HOST=documentor-dev-agentstate lets that one host connect with sslmode=disable, as DocuMentor's own agent-state config does. The host is fixed in code; the setting only switches the exception on, so no value downgrades another host or relaxes a URL's own mode. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
This PR doesn't fully meet our contributing guidelines and PR template. What needs to be fixed:
Please edit this PR description to address the above within 72 hours, or it will be automatically closed. If you believe this was flagged incorrectly, please let a maintainer know. |
|
Hey! Your PR title Please update it to start with one of:
Where See CONTRIBUTING.md for details. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
OPENCODE_DATABASE_URLmust name a loopback host or carrysslmode=verify-full. DocuMentor's development Postgres (documentor-dev-agentstateon a dev host's Docker network) is plaintext by design and holds development data only; DocuMentor's own agent-state config accepts exactly that host whenDOCUMENTOR_AGENTSTATE_PLAINTEXT_HOSTswitches the exception on. This fork had no matching exception, so every opencode process a dev server spawned exited while initialising:This adds the same rule:
OPENCODE_DATABASE_PLAINTEXT_HOST=documentor-dev-agentstatelets that one host connect when the URL itself sayssslmode=disable. The host is fixed in code, so the setting cannot name another host, and it never relaxes a URL that asks for any other mode.packages/core/src/database/target.ts: the exception.packages/core/test/pg/target.test.ts: refused without the switch; with it, refused for any other host, a missingsslmodeorsslmode=require.documentor/FORK.md: the setting.DocuMentor passes the setting to opencode only where its own exception already applies (follow-up in TheFabFab/KPG, the example-project branch).
🤖 Generated with Claude Code