Repository navigation
pgokf 0.5.0
pgokf 0.5.0
A companion release: the Confluence Cloud ingestion companion, an enforced
--tls for every companion, and a supply-chain advisory fix. The catalog
is unchanged - no SQL object or data differs from 0.4.0 - so the
receipt-only pgokf--0.4.0--0.5.0.sql edge carries an installed 0.4.0
catalog to 0.5.0 through an ordinary ALTER EXTENSION pgokf UPDATE, and
the committed pgokf--0.5.0.sql install script is the 0.4.0 one
regenerated under the new version.
Added
pgokf-confluence, a Confluence Cloud ingestion companion. One run
reads every current page visible to one token in one selected space,
converts the complete space to OKF Markdown (pages/<page-id>.md, so
renames keep concept identity; links between imported pages become
relative links and graph edges), and - only with--apply- replaces a
dedicated content bundle in one transaction through
register_bundle_content_with_context. Without--applyit is a read-only
preview that never connects to PostgreSQL and can export the converted
bundle for review. Safety model: the token comes only from a file or
CONFLUENCE_API_TOKEN, never an argument; the crawl inventories the space
before and after reading bodies and refuses an empty, changing, partial or
over-limit snapshot; conversion is bounded per page (input bytes, depth,
nodes, table cells, rendered size); a durable, locked checkpoint binds runs
to one source, bundle, tenant and database endpoint, refuses foreign or
externally modified bundles, and turns page removals into an explicit,
reviewed--allow-deletions; the per-bundle advisory lock spans the crawl
and the transaction. The snapshot being committed is recorded in a
.pendingcheckpoint just before COMMIT and promoted after it, so a run
that dies in between is settled against the catalog by the next one even
when pages changed meanwhile. Untrusted storage cannot produce live
Markdown: code text stays inside its code span, headings and link labels
stay on one line, and frontmatter escapes the characters YAML forbids. A
whole-snapshot byte budget (--max-snapshot-bytes) keeps one import within
a single PostgreSQL message, and a scoped token's cloud ID is verified
against the site's public tenant record; the source identity is the site
and space alone. Each import records producer provenance
(producerpgokf-confluence, the space asorigin, a manifest hash, and
a source generation over page versions) in the change-event outbox and a
new bundle's freshness row. It follows the shared companion conventions
(OKF_PG_URL,OKF_BUNDLE_NAME,OKF_TENANT,OKF_PG_TLS; empty means
unset). Shared-audience only: Confluence page restrictions are not
reproduced. The companions image now ships the binary, the companions smoke
test runs it, CI runs its catalog workflow against PostgreSQL 18, and
docs/confluence-integration.md plus
deploy/confluence/cover individual setup and a scheduled Azure Container
Apps Job.
Security
--tls(OKF_PG_TLS) can no longer fall back to plaintext. Every
companion (pgokf-ingest,pgokf-embed,pgokf-mcp, andpgokf-web's
connection pool) chose a TLS connector under--tlsbut kept the connection
string'ssslmode. Underprefer- the default when nosslmodeis given -
a server that declined TLS received a plaintext startup message and
authentication exchange; underdisableTLS was never requested. The new
pgokf_pgconn::connection_configraises a weakersslmodetorequire
whenever TLS is forced, and every connection and pool is built from it, so a
declining server is refused before any startup data is sent. Connections
without--tlsare unchanged.rustix1.1.6 for RUSTSEC-2026-0486 (extended-attribute buffers marked
initialized when empty). Only the release verifier and test tooling link
rustix; no shipped extension or companion binary does. The lockfile
changes that one entry, socargo deny checkpasses again.