Skip to content

Unit 4: Token refresh and session binding — continuous identity verification #40

@TeoSlayer

Description

@TeoSlayer

Scope

OIDC/SPIFFE tokens expire. The daemon must refresh tokens and the registry must periodically re-verify. This prevents a revoked identity from maintaining network access via a previously-issued token.

Deliverables

  • Daemon-side token refresh loop (re-fetch from IdP before expiry)
  • Registry-side periodic re-validation (configurable interval, default 1 hour)
  • On re-validation failure: remove node from network, emit webhook, audit event
  • Graceful handling: warn before forced removal, allow re-auth window
  • Session binding: tie network membership to token validity, not just initial join

Files

  • pkg/daemon/daemon.go — token refresh loop
  • pkg/registry/server.go — periodic re-validation
  • tests/ — token expiry and refresh tests

Priority: MEDIUM

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions