Skip to content

fix(coserv): expiry + config refactor#420

Merged
setrofim merged 1 commit into
mainfrom
setrofim/coserv-expiry
May 28, 2026
Merged

fix(coserv): expiry + config refactor#420
setrofim merged 1 commit into
mainfrom
setrofim/coserv-expiry

Conversation

@setrofim
Copy link
Copy Markdown
Collaborator

  • Update to v0.2.1 of corim-store that implements MaxExpiry, which is used when CoRIMs do not specify validity, and serves as a maximum limit on expiry when they do.
  • In order allow configuration of MaxExpiry, refactor how configuration for CoSERV is handled inside VTS:
    • Create CoservContext which contains configuration for CoSERVService prior to its creation, and also contains the signer (which is not part of the service, but is related to it).
    • Configuration for the context is taken from "coserv" section of config files (the same as the front-end: all coserv-related configuration is now in the same place in the config tree). Configuration for the signer is moved to "signer" sub-section under it.
  • FallbackAuthority for the service is now configured based on the signer's public key, rather than being hard-coded to a nonsense value.

@setrofim setrofim requested a review from thomas-fossati May 27, 2026 15:09
- Update to v0.2.1 of corim-store that implements MaxExpiry, which is
  used when CoRIMs do not specify validity, and serves as a maximum
  limit on expiry when they do.
- In order allow configuration of MaxExpiry, refactor how configuration
  for CoSERV is handled inside VTS:
  - Create CoservContext which contains configuration for CoSERVService
    prior to its creation, and also contains the signer (which is not
    part of the service, but is related to it).
  - Configuration for the context is taken from "coserv" section of
    config files (the same as the front-end: all coserv-related
    configuration is now in the same place in the config tree).
    Configuration for the signer is moved to "signer" sub-section under
    it.
- FallbackAuthority for the service is now configured based on the
  signer's public key, rather than being hard-coded to a nonsense value.

Signed-off-by: Sergei Trofimov <sergei.trofimov@arm.com>
@setrofim setrofim force-pushed the setrofim/coserv-expiry branch from 72a4226 to 7148c5b Compare May 27, 2026 15:10
Comment thread vts/coserv/context.go
Copy link
Copy Markdown
Contributor

@thomas-fossati thomas-fossati left a comment

Choose a reason for hiding this comment

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

LGTM, but I don’t get why we need to reimplement the time.Duration parsing logics.

Copy link
Copy Markdown
Contributor

@thomas-fossati thomas-fossati left a comment

Choose a reason for hiding this comment

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

While I am not entirely convinced that the reimplementation of the Duration parser is warranted, as the improvement in readability does not seem sufficient to justify the duplication of core library code, I can live with that.

@setrofim setrofim merged commit b573610 into main May 28, 2026
9 checks passed
@setrofim setrofim deleted the setrofim/coserv-expiry branch May 28, 2026 09:18
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