Repository navigation
Description
Split out of #549, which asked to move DuckDB onto the credential chain and
turned out to have nothing to move. #549's deliverable was the deletion of the
static S3 service key (PR #791) — it had no consumer. This issue is the feature
that was hiding behind that phrasing, and it is the one that actually makes an
s3:// lake reachable.
The gap
The Rust engine has no object-store path at all: no httpfs/aws load, no
CREATE SECRET, no ER_S3_* reader. .claude/skills/ducklake-lakehouse/SKILL.md
pins this, and
.claude/skills/ducklake-lakehouse/references/attach-and-tenancy.md records it
as a regression from the retired Python implementation rather than a
deliberate omission — that server resolved a secret:// indirection in its own
secrets module, and it was deleted with nothing put in its place. So there is no
design decision to respect here, which is what makes this a feature rather than
a reversal.
Consequence today: a lake is a filesystem path, and in-cluster that is EFS at
/srv/er. The er-dev-runner-pod Pod Identity role already carries the
lake-bucket grants (pod_identity.tf), so the identity side is done and
deliberately ahead of its first use. What is missing is the code that would use
it.
Scope
From attach-and-tenancy.md's own "In flight" list — both bullets, which are
the acceptance criteria:
- An object-store config whose fields are all optional, producing a
CREATE OR REPLACE SECRET, where the absence of an explicit key selects
the credential chain (the pod's own identity in-cluster) rather than a
mode flag choosing it. An explicit key stays, for MinIO and CI, which have
no chain to consult. The absence-selects-chain shape is the point: a mode
flag is a second thing that can disagree with the credential. - A credential filter so nothing credential-shaped is ever persisted
into an org row — an org row is projected into job params and travels
further than process env does.
Then the consequences of it working:
- An
s3://lake opens from Rust, with a test that proves it (the existing
lake tests are all filesystem paths). - The three skill references that currently say "there is no credential-chain
path" are updated — they are correct today and PR feat(infra): delete the static S3 lake key, which had no consumer (#549) #791 left them correct,
so they must move with this change, not before it. -
scripts/ci/tf-static-credentials-check.shrule 2 bans
ER_S3_ACCESS_KEY_ID/ER_S3_SECRET_ACCESS_KEYassignments. If this
feature reintroduces an explicit-key path for MinIO/CI, that rule needs
narrowing to the deployed envs rather than deleting — the gate's comment
says why.
Notes
- Do not reach for
ER_S3_*as the variable names without deciding they are
right: nothing reads them, so they carry no compatibility obligation. The
existingER_LAKE_*set is the live convention, andER_LAKE_CATALOG_SCHEMA
vsER_LAKE_METADATA_SCHEMAis a cautionary tale about naming in this area
(the skill warns that reasoning from those names alone gets it backwards). DesignDoc.md§S6 still specifies the Python-eraER_S3_*block and a
lake/ducklake.pysubstitution helper. Treat it as the intent, not the
interface.- The release flag here is inherited from Retire the S3 service access key in favour of the credential chain #549 and worth re-deciding: the
engine runs on EFS today, so this may not gate the MVP. Retag if not.
Activity
athvin commentedon Nov 8, 2026
Claimed — working in the draft PR linked above. Closing that PR releases the claim.
feat(lake): the object-store credential path — s3:// lakes open from …
test(lake): read back through register_lake_table, not a lake.main li…
test(server): the credential filter gets its own pg file (#792)
chore(skills): regen the ER_TEST_PG_DSN file count (#792)
fix(server): the credential filter covers dataset env merges too (#792)
feat(lake): the object-store credential path — open an s3:// lake (#792…