Skip to content

Secure runtime observability defaults#10

Merged
sylvesterdamgaard merged 2 commits into
mainfrom
secure-runtime-defaults
Jun 29, 2026
Merged

Secure runtime observability defaults#10
sylvesterdamgaard merged 2 commits into
mainfrom
secure-runtime-defaults

Conversation

@sylvesterdamgaard

Copy link
Copy Markdown
Contributor

What changed

  • Make TCP API, Prometheus metrics, and resource metrics opt-in by default.
  • Keep the existing API/metrics port defaults for configurations that explicitly enable them.
  • Run comprehensive validation during normal config loading so runtime catches the same blocking bounds errors as check-config.
  • Update global settings docs to describe TCP API as disabled by default while local Unix socket management remains available.

Why

The previous defaults opened management/metrics surfaces and started resource sampling unless users explicitly disabled them. That was surprising for production containers and did not match parts of the documentation.

Validation

  • git diff --check
  • go test ./internal/config ./cmd/cbox-init could not be run locally because go is not installed in this environment.

@sylvesterdamgaard sylvesterdamgaard marked this pull request as ready for review June 29, 2026 07:08
@sylvesterdamgaard sylvesterdamgaard merged commit aafaf2a into main Jun 29, 2026
10 of 12 checks passed
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