feat(boundary): generate session ID at startup#194
Closed
Conversation
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.
This was referenced Apr 30, 2026
Contributor
Author
|
Closing in favour of #196, which now includes this work. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Map
Adds a
SessionIDfield toconfig.AppConfigand generates a UUIDv4 at thetop of
Runinrun_linux.go. The ID is logged once at startup. No consumersyet.
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: AddSessionID stringtoAppConfig.run/run_linux.go: Generate UUID and log it before dispatching to thejail-specific runner.
go.mod: Promotegithub.com/google/uuidfrom indirect to directdependency.
The stub (
run_stub.go) is unchanged; it returns an error immediately onnon-Linux platforms, so there is no session to start.