-
Notifications
You must be signed in to change notification settings - Fork 32
feat: changed profile identifiers from HTTP URLs to tag URIs (RFC 4151) #223
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
base: main
Are you sure you want to change the base?
Conversation
- PSA profiles now use tag:trustedcomputinggroup.org,2025 authority - CCA profiles now use tag:arm.com,2025 authority - Added comprehensive test coverage for URI validation - Added package documentation with usage examples Signed-off-by: Sukuna0007Abhi <appsonly310@gmail.com>
setrofim
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
Thanks sir @setrofim |
|
Pls review sir @yogeshbdeshpande sir @thomas-fossati |
- Added RFC 4151 tag URI validation to PSA and CCA profile packages - Replaced .String() with .Get() method for eat.Profile API - Updated all test cases to use new tag URI format - Replaced existing HTTP URLs (https://arm.com/psa/iot/2.0.0) with tag URIs - All validation and tests passing Fixes veraison#110 Signed-off-by: Sukuna0007Abhi <appsonly310@gmail.com>
|
Pls review sir @setrofim @yogeshbdeshpande |
| var err error | ||
|
|
||
| // Validate and create Token Profile | ||
| if err = validateTagURI("tag:arm.com,2025:cca-token"); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the prupose of this check? You're validating a static string (ditto for all validateTagURI() calls bellow -- this function can probably be removed).
| var err error | ||
|
|
||
| // Validate and create Token Profile | ||
| if err = validateTagURI("tag:trustedcomputinggroup.org,2025:psa-token"); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As with CCA, this check is pointless for a static string.
Changed profile identifiers from HTTP URLs to tag URIs (RFC 4151)
PSA profiles now use tag:trustedcomputinggroup.org,2025 authority
CCA profiles now use tag:arm.com,2025 authority
Added comprehensive test coverage for URI validation
Added package documentation with usage examples
Fixes #110