Unreleased documentation. These pages follow the main branch and can change before the next release. For supported guidance, use v0.48.0.
If you author a Registry Adapter ingestion job, this page lists what each job source accepts, the defaults and bounds it applies, and the refusal codes a read can stop with. The engine is a bounded Rust port of Apache Camel, so a source reads like the Camel component of the same name where this page does not say otherwise. Where the Adapter differs from Camel in a way that changes what you author, this page says so. Operate the Adapter covers running, upgrading, and recovering a job.
A job source is read by a pollEnrich step over a static URI.
The sections that follow describe each source, then the step.
File job source
Section titled “File job source”The file source is a non-recursive, read-only job source.
It supports a flat include glob, an optional doneFileName, readLock values none and
changed, and maxMessagesPerPoll.
It always sorts candidates by filename in ascending order; there is no authored sortBy expression.
readLock defaults to none.
A source must declare how it knows a file is complete.
The declaration is one of these:
- A
doneFileName. readLock: changed.producerAtomicHandover: true, when the producer writes each file elsewhere and renames it into the directory (the SFTP source’scompleted-namedeclaration).
adapterctl job check and startup refuse a source that declares none, because a read could
otherwise take a file the producer is still writing.
readLock: none alone is no declaration.
This differs from Camel, whose file consumer reads with no lock by default.
For changed, readLockTimeoutMilliseconds defaults to 10000, and
readLockCheckIntervalMilliseconds defaults to 1000.
Each bound must remain inside its declared finite range.
maxMessagesPerPoll defaults to 500, where Camel’s value 0 means unbounded.
The job profile applies its own row and byte bounds as well.
The source is always noop in the literal sense that it does not delete, move, rename, mark, or lock
source files.
This differs from Camel’s noop=true consumer behaviour: the Adapter re-reads unchanged bytes and
relies on the job item table to suppress another delivery.
Raw files use namespace-plus-content identity.
Decoded rows use their declared business key.
The fixed source directory, flat names, no-follow open, and symlink checks restrict traversal. The checks do not turn the file client into an atomic operating-system jail. A symlink that escapes the directory refuses the read; it is not skipped.
A doneFileName is a literal or one file:name placeholder.
CSV decoder
Section titled “CSV decoder”You select the CSV decoder on a file or SFTP endpoint, not through a Camel unmarshal step.
Its defaults are a comma delimiter, double-quote quoting enabled, a header record, no comment marker,
no trimming, and UTF-8.
delimiter, quote, and commentMarker each accept one ASCII character.
With headers enabled, rows are maps of strings.
With header: false, rows are arrays of strings.
The decoder performs no type inference, so 007 stays "007".
A short record carries an empty string for the missing trailing field, not JSON null.
A quoted multiline field decodes as one field.
A line that starts with the comment marker is not a record.
The decoder reads UTF-8 only and has no encoding member. A record that is not valid UTF-8 refuses the read as a malformed record, so re-export a Windows-1252 or Latin-1 file as UTF-8.
The source cursor binds the file content digest and byte position.
A malformed CSV record fails the read closed, leaves the cursor unchanged, and is encountered again
after you repair or replace the source file.
The decoder identifies the zero-based record ordinal, including the header.
The pass reports record: {ordinal} beside its closed code and keeps the same location in its
value-free stop reason.
It returns no partial page and does not advance the cursor.
CSV and JSONL require one declared keyPointer selecting a non-empty string business key.
The item identity combines a versioned, length-delimited namespace with that exact key, preserving
leading zeros; it does not include the file digest or position.
Reordering unchanged rows therefore retains their keys, and changing a row with the same key uses the
job’s revised-item rule.
Whole-file prevalidation refuses a duplicate business key before any page escapes, including a
duplicate beyond the current page.
The existing row and field bounds apply during prevalidation.
Changing the identity contract requires you to reconcile prior effects; the store does not silently
adopt a new selector over nonempty legacy state.
JSONL decoder
Section titled “JSONL decoder”The JSON Lines (JSONL) decoder reads one bounded JSON value per line.
Camel has no corresponding data format.
It counts and skips a malformed line and keeps the line ordinal for diagnostics.
The run report carries the count as malformedLines.
A malformed line yields no per-item outcome, so a skipped line never appears in the refusal counts.
It uses a declared business key for item identity, pages at the job row bound, and refuses an
oversized line.
PostgreSQL source
Section titled “PostgreSQL source”The PostgreSQL source accepts one digest-pinned, plain SELECT with a root ORDER BY.
It does not accept dynamic SQL, multiple statements, utility commands, a data-changing common table
expression, or a query with more than 16 positional parameters.
parameterOrder gives each contiguous $1-onward position a reviewed name.
Runtime values bind as text, checked integers, double-precision numbers, or booleans.
The engine pages the statement itself.
It appends OFFSET $n+1 after the reviewed positions and binds the cursor’s offset, zero on the
first page.
A root LIMIT, OFFSET, or FETCH therefore refuses at compile.
Each page is read with that OFFSET, so the database scans every earlier row again and the cost
grows with table size.
On a very large table, point the source at a narrower view, for example one limited to recently
changed rows.
Every page runs in its own read-only, read-committed transaction with a local statement timeout and bounded rows, row bytes, field bytes, and response bytes. Root ordering makes one statement deterministic, but it does not make several offset pages one snapshot. An editable source therefore still needs an immutable snapshot, a monotonic cursor, or a bounded rescan discipline.
Column types
Section titled “Column types”Each result column crosses as one JSON value, by its PostgreSQL type:
text,varchar,char,name: a string.smallint,integer,bigint: an integer.real,double precision: a number; NaN and infinities refuse.boolean: a boolean.numeric: an exact decimal string at the column’s scale, such as"12345.6700"; NaN and infinities refuse.date: a string,YYYY-MM-DD.timestamp: a string, ISO 8601 without an offset, such as2026-11-03T10:15:30.timestamptz: a string, RFC 3339 in UTC, such as2026-11-03T08:15:30.250Z.uuid: a string, lowercase hyphenated.jsonb: a bounded JSON value, including objects and arrays.- SQL
NULLof any type above:null.
Any other type stops the page with adapter.job.postgres-column-type and a record locator that names
the one-based column, never its value; cast that column in the query to a type above.
A NULL key column stops the page with adapter.job.postgres-key-null and the row’s zero-based
ordinal.
A JSONB key column stops the page with adapter.job.postgres-key-type.
Select a stable scalar such as a UUID for the key.
JSONB is a result type only.
The job checks the raw JSONB content against the field limit before parsing, then checks the encoded
field, row, and page sizes.
JSONB numbers follow the strict canonical JSON boundary, including refusal of an inexact plain
integer.
Return exact decimals as numeric columns or decimal strings.
SFTP job source
Section titled “SFTP job source”The SFTP source is read-only and belongs to the job host; the facade does not reach it. The runtime requires these:
- A normalised absolute
baseDirectory. - One pinned OpenSSH host key (
pinnedHostKey), Ed25519 or ECDSA P-256. - A password or private-key credential through secret references.
The SFTP source is the only secure-transfer source. Plain FTP is unsupported, and any exception needs an independently authenticated encrypted channel. FTPS stays out until a named adopter needs it.
The default port is 22.
An optional flat include glob selects candidates.
Hidden names (a leading dot, such as .DS_Store or an rsync temp file) and subdirectories are never
candidates and never fail a read.
maximumListingEntries defaults to 500 and is bounded at 10000.
It bounds the candidates a read can open (names matching include, done files excluded), not every
name in the directory.
Consumed files stay in place, so move them away or narrow include before the matching count
reaches the bound.
The source exposes no readLock option.
Its operation deadline and completion rechecks bound an interrupted read instead.
Exactly one producer completion protocol is required:
completed-namerequiresproducerAtomicHandover: true; the producer closes temporary bytes and atomically renames them into the final candidate name.done-filerequires a literal orfile:namemarker; the producer removes a stale marker before replacement, atomically renames complete bytes into place, and publishes the marker last.
The server must be able to confine the source account to baseDirectory: give the source a dedicated
read-only account whose server-side authorisation does that.
Client pathname, canonical-path, symlink, and recheck logic is defence in depth.
SFTP v3 provides no portable atomic open-beneath operation, so the client does not establish an atomic
SSH jail.
A link or an off-root candidate refuses the read; it is not followed.
The client offers a short modern algorithm set and nothing weaker:
- Key exchange:
curve25519-sha256,ecdh-sha2-nistp256,ecdh-sha2-nistp384. - Ciphers:
aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes128-ctr. - MACs for the CTR ciphers:
hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com. - Host key: the algorithm of the pinned key (Ed25519 or ECDSA P-256).
A server that offers none of a category (one limited to finite-field Diffie-Hellman, CBC ciphers, or
SHA-1 MACs, for example) stops the page with adapter.job.sftp-connection and a message naming
algorithm negotiation, so it is not mistaken for a network fault.
The GCM cipher paths use AWS-LC while the CTR, MAC, key exchange, and signature paths use RustCrypto.
This is not a whole-session Federal Information Processing Standards (FIPS) validation claim.
A wrong host key is refused before the credential is resolved. A same-name replacement is read again, because the item identity is digest-based.
The pollEnrich step
Section titled “The pollEnrich step”The Adapter’s pollEnrich is a job-source read step over a static file:, rabbitmq:, or sftp:
URI.
timeoutMilliseconds is mandatory and bounded from 1 to 10000.
Absent an aggregation strategy, the bounded item page replaces the route body.
The closed aggregation-strategy set may merge the page, but arbitrary processors are not accepted.
Dynamic endpoint expressions, consumerSendTo, and streaming are not supported.
The step is refused in every facade-reachable route.
A job read starts without facade request headers and returns the closed item page body plus its source
metadata, so Camel’s header-preservation behaviour after pollEnrich does not apply.
Refusal codes
Section titled “Refusal codes”A refused read stops the page with a closed code that names what to fix:
adapter.job.read-timeout(any source): check the source’s latency, or raise the step’stimeoutMilliseconds. For a file source withreadLock: changed, the file did not settle in time; raisereadLockTimeoutMilliseconds.adapter.job.read-bound(any source): a file, row, listing, or delivery exceeded a configured bound; raise the bound or split the input.adapter.job.sftp-connection(SFTP): checkhostandport, and that the server accepts connections from this host. When the message names algorithm negotiation, the server offers no key exchange, cipher, MAC, or host-key algorithm from the accepted set (see SFTP job source); enable one on the server.adapter.job.sftp-host-key(SFTP): the server’s key does not matchpinnedHostKey. Verify the key out of band before you update the pin, because a changed key can mean an interception.adapter.job.sftp-credential(SFTP): the credential’s secret reference did not resolve to a valid password or OpenSSH private key.adapter.job.sftp-authentication(SFTP): the server refused theuserand credential; rotate the password or key and confirm the account is enabled.adapter.job.sftp-malformed(SFTP): the listing or file read was incomplete; check the producer’s completion protocol, then rerun.adapter.job.sftp-path(SFTP): place regular files, not links or directories, directly underbaseDirectory.adapter.job.rabbitmq-topology(RabbitMQ): the message names what is missing. Create the durablequeueand the directdeadLetterExchange(withdeadLetterQueuebound bydeadLetterRoutingKey), or setdeclareTopology: trueso the host declares them. A refusal that names neither is a permission failure or, withdeclareTopology: true, queue arguments that differ from the durable dead-letter arguments the host declares.adapter.job.rabbitmq-unavailable(RabbitMQ): checkhost,port,vhost,user, andpasswordRef, and that the broker runs. A rerun after an uncertain settlement is safe.
Cookies on Registry Stack
We use optional cookies to understand how you use the main Registry Stack website and this documentation. If you contact us, we may link this activity to your enquiry. You can change your choice at any time. Read the privacy policy.
Your browser asks sites not to track you, so optional tracking stays off.
We could not use or save that choice. Optional tracking remains off.