Skip to content

feat(boundary): generate session ID at startup#194

Closed
SasSwart wants to merge 1 commit intomainfrom
sas/session-id-at-startup
Closed

feat(boundary): generate session ID at startup#194
SasSwart wants to merge 1 commit intomainfrom
sas/session-id-at-startup

Conversation

@SasSwart
Copy link
Copy Markdown
Contributor

@SasSwart SasSwart commented Apr 30, 2026

PR Map

  1. 👉🏼 feat(boundary): generate session ID at startup #194 (closed — merged into feat(audit): session ID generation, sequence counter, and BoundaryLog wiring #196)
  2. feat(audit): add per-session sequence counter #195 (closed — merged into feat(audit): session ID generation, sequence counter, and BoundaryLog wiring #196)
  3. feat(audit): session ID generation, sequence counter, and BoundaryLog wiring #196
  4. feat(config): session correlation header injection configuration #197
  5. feat(proxy): inject session ID and sequence number headers on matching requests #198

Adds a SessionID field to config.AppConfig and generates a UUIDv4 at the
top of Run in run_linux.go. The ID is logged once at startup. No consumers
yet.

This is the first step of the session correlation RFC: every boundary
invocation gets a stable identity that future work will attach to audit events
and communicate to Bridge.

Changes

  • config/config.go: Add SessionID string to AppConfig.
  • run/run_linux.go: Generate UUID and log it before dispatching to the
    jail-specific runner.
  • go.mod: Promote github.com/google/uuid from indirect to direct
    dependency.

The stub (run_stub.go) is unchanged; it returns an error immediately on
non-Linux platforms, so there is no session to start.

Generated by Coder Agents

Add SessionID field to config.AppConfig and generate a UUIDv4 in Run
(run_linux.go) at process startup. The session ID is logged once and
will be used by future work to group all audit events from a single
boundary invocation into a session.

No consumers yet; this is the first step of the session correlation
RFC.
Copy link
Copy Markdown
Contributor Author

Closing in favour of #196, which now includes this work.

@SasSwart SasSwart closed this Apr 30, 2026
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