Add GitHub Action to test PIN flag upgrade from v1.3.0 to v2.0.0 #155
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add GitHub Action to test PIN flag upgrade from v1.3.0 to v2.0.0
Summary
This PR adds a GitHub Action workflow that tests for a PIN flag upgrade bug discovered in wolfPKCS11. When upgrading from v1.3.0 to v2.0.0, tokens with PINs set may not have the
WP11_TOKEN_FLAG_USER_PIN_SETflag set in the new version, causing authentication failures.The workflow:
Important: This test is EXPECTED to fail on current master because the bug exists and hasn't been fixed yet. The test serves to reproduce the issue so a fix can be developed and validated.
Unlike PR #154, this workflow is simplified (no TPM) to focus specifically on the file-based storage PIN flag issue.
Review & Testing Checklist for Human
0x00000102(CKR_USER_PIN_NOT_INITIALIZED) and displays the "BUG DETECTED" messageverify_pin_1.3.0.candverify_pin_2.0.0.ccompile successfully with the relative include pathsWOLFPKCS11_TOKEN_PATHenvironment variable properly propagates across workflow steps so v2.0.0 finds the v1.3.0 tokenTest Plan
Notes
WOLFPKCS11_TOKEN_PATHenvironment variable to ensure both versions access the same token storageLink to Devin run: https://app.devin.ai/sessions/899f11a4b0ab46cc835b55b8b785904a
Requested by: andrew@wolfssl.com (andrew@wolfssl.com)