Skip to content

[hsm] Add show cli option to print asset attributes #234

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 20, 2025

Conversation

moidx
Copy link
Collaborator

@moidx moidx commented Jun 20, 2025

This commit introduces a --show command-line option to the config/token_init.sh script. This feature provides operators with a mechanism to audit the attributes of cryptographic assets generated or imported into both the Offline and SPM HSMs.

The main changes are:

  • Refactored config/token_init.sh to improve maintainability by modularizing actions into separate functions and using a case statement for control flow.
  • Updated docs/hsm.md with a new "Auditing HSM State" section, providing detailed instructions and examples for operators on how to use the --show flag to verify key attributes.
  • Modified util/containers/deploy_test_k8_pod.sh to include calls to the new audit commands, demonstrating their usage and verifying the token initialization process in the test environment.

This commit introduces a `--show` command-line option to the
`config/token_init.sh` script. This feature provides operators with a mechanism
to audit the attributes of cryptographic assets generated or imported into both
the Offline and SPM HSMs.

The main changes are:
- Refactored `config/token_init.sh` to improve maintainability by modularizing
  actions into separate functions and using a `case` statement for control flow.
- Updated `docs/hsm.md` with a new "Auditing HSM State" section, providing
  detailed instructions and examples for operators on how to use the `--show`
  flag to verify key attributes.
- Modified `util/containers/deploy_test_k8_pod.sh` to include calls to the new
  audit commands, demonstrating their usage and verifying the token
  initialization process in the test environment.

Signed-off-by: Miguel Osorio <[email protected]>
@moidx moidx requested a review from timothytrippel June 20, 2025 01:40
@moidx moidx merged commit b3db7fd into lowRISC:main Jun 20, 2025
4 checks passed
@moidx moidx deleted the hsm-object-show branch June 20, 2025 04:13
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