Skip to content

[spm] Introduce UDS/EXT aliases for certificate key labels #236

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 21, 2025

Conversation

moidx
Copy link
Collaborator

@moidx moidx commented Jun 21, 2025

This change introduces shorter, more stable aliases for certificate key labels used in the provisioning process. The aliases "UDS" (Unique Device Secret) and "EXT" (Extension) are now used by client applications.

The SPM service is responsible for mapping these aliases to the underlying key labels ("SigningKey/Dice/v0" and "SigningKey/Ext/v0"). This provides a layer of abstraction, making the client-side implementation cleaner and less coupled to the internal naming scheme.

Key changes:

  • spm: Translates "UDS" and "EXT" labels to their full counterparts during key retrieval and certificate endorsement. It now gracefully handles missing certificates by returning an empty subject key.
  • ate: The client library now accepts the key label directly from the caller instead of hardcoding a mapping.
  • pa/loadtest, ate/test_programs/ft: Updated to use the new "UDS" and "EXT" aliases.

This change introduces shorter, more stable aliases for certificate key
labels used in the provisioning process. The aliases "UDS" (Unique
Device Secret) and "EXT" (External) are now used by client
applications.

The SPM service is responsible for mapping these aliases to the
underlying key labels ("SigningKey/Dice/v0" and "SigningKey/Ext/v0").
This provides a layer of abstraction, making the client-side
implementation cleaner and less coupled to the internal naming scheme.

Key changes:
- `spm`: Translates "UDS" and "EXT" labels to their full counterparts
  during key retrieval and certificate endorsement. It now gracefully
  handles missing certificates by returning an empty subject key.
- `ate`: The client library now accepts the key label directly from the
  caller instead of hardcoding a mapping.
- `pa/loadtest`, `ate/test_programs/ft`: Updated to use the new "UDS"
  and "EXT" aliases.

Signed-off-by: Miguel Osorio <[email protected]>
@moidx moidx requested a review from timothytrippel June 21, 2025 06:36
@timothytrippel
Copy link
Collaborator

CC: @oshratza

@moidx moidx closed this Jun 21, 2025
@moidx moidx reopened this Jun 21, 2025
@moidx moidx merged commit 24f56e8 into lowRISC:main Jun 21, 2025
7 of 8 checks passed
@moidx moidx deleted the update-cert-naming branch June 21, 2025 07:12
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