Skip to content

Explain why ca-certificates is required in the example Dockerfile#1622

Draft
aryeila wants to merge 1 commit into
mainfrom
chana/docs-1454-ca-certificates-comment
Draft

Explain why ca-certificates is required in the example Dockerfile#1622
aryeila wants to merge 1 commit into
mainfrom
chana/docs-1454-ca-certificates-comment

Conversation

@aryeila
Copy link
Copy Markdown

@aryeila aryeila commented May 27, 2026

Overview

Rewrite the in-Dockerfile ca-certificates comment in examples/src/Dockerfile-example to explain why the line is load-bearing. No functional change.

@livekit/rtc-node ships a native Rust core that reads the system trust store via rustls-tls-native-roots, not Node's bundled CA roots. node:22-slim doesn't ship /etc/ssl/certs/ca-certificates.crt, so without ca-certificates installed, Room.connect() fails with the misleading failed to retrieve region info error. The previous comment ("enables TLS/SSL for securely fetching dependencies") implied this was generic Docker hygiene that could be trimmed.

End-to-end Docker repro confirms the failure mode (slim Node without ca-certificates reproduces the exact error string from livekit/agents-js#932) and the fix.

Context

Filed against DOCS-1454.

Related PRs

The same comment rewrite is applied across the docs partial and sibling repos so they stay aligned:

The previous comment ("enables TLS/SSL for securely fetching dependencies")
implied this is generic Docker hygiene. That framing is misleading:
@livekit/rtc-node ships a native Rust core that reads the system trust store
via rustls-tls-native-roots, not Node's bundled CA roots. node:22-slim
doesn't ship /etc/ssl/certs/ca-certificates.crt, so without ca-certificates
Room.connect() fails with the misleading "failed to retrieve region info"
error.

Rewrite the comment to name the cause so a developer trimming the image
knows the line is load-bearing. No functional change.
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 27, 2026

⚠️ No Changeset found

Latest commit: 3e03d84

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant