carlos / platform Public

docs-livekit-guide-fixes

Fixes the LiveKit guide (docs/site/live-streams-bring-your-own-livekit.md) and the matching carlos store credential lines in docs/site/cli.md, from Paul's live test on dev on 2026-11-26 ("Fix the guide").

What changes

  1. Recording before write credentials are on. A new subsection, "Until write credentials are on". No CLI command gives you a credential to hand LiveKit: carlos store status shows only the key ID, and the secret is sealed. Instead, the app's server builds LiveKit's S3Upload from its own environment (CARLOS_STORE_ACCESS_KEY, CARLOS_STORE_SECRET_KEY, CARLOS_STORE_REGION, CARLOS_STORE_BUCKET, from objstore.EnvNames with DefaultEnvPrefix; --env-prefix changes them). The section has a short Go sample, storeUpload(). It says plainly that LiveKit then holds a credential for the whole store, which is the app's decision, that rotate --finish during a recording breaks the upload, and that write credentials replace this once they're on. The opening of "Recording into your store" and the privacy section are qualified to match.
  2. Both refusal codes. write_credentials_not_configured means the deployment hasn't turned write credentials on; dev answers this today. write_credentials_not_released means the switch is on but the release is phase 1. Both are 503 (internal/console/apistorecredentials.go, writeCredentialsGates), and the v0.43.8 changelog entry says the same.
  3. CLI version. carlos store credential needs CLI v0.43.8 or later; an older CLI prints the carlos store usage. Commit 2cadcb43 is first in tag v0.43.8, store.go at v0.43.8 dispatches credential, and the published v0.43.8 release carries CLI binaries.
  4. manifest_location. On a normal recording it points to the <egress_id>.json manifest LiveKit writes beside the file in the app's own store. Apps can ignore or delete it. With backup storage used, it points to a manifest at LiveKit.

The parts the test confirmed are unchanged: file naming, Filename as the store key, no egress setting, the region with no tags, MP4 conversion, the StartEgress samples and the webhook handler.

Testing and review

  • The new sample compiles (go vet, go build, gofmt-clean) against server-sdk-go v2.20.1 and protocol v1.54.1 in a scratch module, together with a startRecording that uses it.
  • go test ./internal/docsite/ ./internal/changelog/ ./internal/updatewords/ passes.
  • Luna copy pass: brief docs/superpowers/notes/LUNA-DOCS-BRIEF-live-byo-livekit-2.md, result LUNA-DOCS-RESULT-live-byo-livekit-2.md. Rows 1-3, 5, 7 and 8 were applied verbatim (row 3 after its code name). Rows 4 and 6, endpoint support in the sample, were not applied. The page requires media conversion, and the console refuses to run media conversion while CARLOS_STORE_ENDPOINT is set (cmd/console/media.go), so these apps never get an endpoint.

🤖 Generated with Claude Code

Commits 4
Discussions 0 0 open
Tasks 0/0 done

Discussions

  • No discussions on this branch yet.

Tasks

  • No tasks yet.

Activity