Skip to content

feat: publish inventory-owner hardware metrics and Device metadata - #266

Merged
scotwells merged 1 commit into
mainfrom
t3/investigate-thread-progress
Dec 1, 2026
Merged

scotwells merged 1 commit into
mainfrom
t3/investigate-thread-progress

Conversation

@scotwells

Copy link
Copy Markdown
Contributor

Summary

  • Add narrow Fleet fan/temperature publisher with direct inventory authority reads, safe two-family/seven-label output, source timestamps and fail-closed validation.
  • Add independent optional Fleet-owned ResourceMetricsPolicy for Device metadata; no sensor samples in resource status or metadata join dependency.
  • Add authenticated tests, release workflow and Dockerfile; document ownership, qualification, and residual observation/output and name-based history limitations.

Validation

  • Focused publisher, projection, hardware, CLI and metadata race tests pass on this head.
  • Prior repeated race tests, vet and native/static linux amd64/arm64 builds passed.
  • Documentation links, actionlint and whitespace checks pass.

Rollout and review

Not deployed. Staging uses a separately reviewed account-only infrastructure stage, then actual-UID certificate/permission qualification, immutable image/config, ingestion and federation.
User approved dedicated Project-wide Device GET (full objects/all namespaces) only; no list/watch/write, other Project access, broad IAM redesign or UID-pinned customer query grants.
Independent adversarial review will sign off the exact PR head before requesting Evan (ecv). No merge before required reviews/checks. Live customer data and isolation remain acceptance gates.

@scotwells scotwells left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AI adversarial review signoff for exact head a2f1831 against main 807b490: no blocking findings. This is an agent review COMMENT, not human approval.

Reviewed authenticated uncached Project/Device authority reads and incarnation checks; TLS endpoint binding, redirect rejection and credential separation; protected source mapping and explicit output allowlists; original timestamps, diagnostic coherence, missingness, failure/session reset behavior; the separate image/release workflow (including removal of secrets: inherit); and the optional independent metadata policy/reader package. Inspected actual resource-metrics source at 79dfc204b62f924d96760105af391895af937ebe: the documented Project-name attributes and absence of automatic Project UID match the runtime.

Independently reran go test -count=1 -race for internal/devicehardwarepublisher, internal/devicehardwaremetrics, internal/hardwaremetrics, cmd/fleet-device-hardware-publisher, and config/components/resource-metrics: all passed. Documentation link validation and diff whitespace checks passed; worktree remains clean.

The explicitly accepted final-read/output race and Project-name historical authorization limitations remain documented residuals, not new blockers. This code signoff does not establish live certificate/least-privilege authorization, protected physical/source qualification, ingestion/federation behavior, or customer query isolation; those remain the documented rollout acceptance gates. No live mutation, merge, or human reviewer request performed. GitHub checks at final read: 3 passed, 5 pending, none failed; no unresolved review threads.

@scotwells
scotwells requested a review from ecv December 1, 2026 01:21
@scotwells
scotwells marked this pull request as ready for review December 1, 2026 01:21
@scotwells
scotwells requested a review from a team as a code owner December 1, 2026 01:21
@scotwells
scotwells merged commit 11bd60e into main Dec 1, 2026
10 checks passed
@scotwells
scotwells deleted the t3/investigate-thread-progress branch December 1, 2026 01:31
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.

2 participants