Skip to content

Conversation

@Sukuna0007Abhi
Copy link
Contributor

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

- 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>
@Sukuna0007Abhi Sukuna0007Abhi changed the title Changed profile identifiers from HTTP URLs to tag URIs (RFC 4151) feat: changed profile identifiers from HTTP URLs to tag URIs (RFC 4151) Sep 24, 2025
Copy link
Contributor

@setrofim setrofim left a comment

Choose a reason for hiding this comment

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

LGTM

@Sukuna0007Abhi
Copy link
Contributor Author

Sukuna0007Abhi commented Oct 1, 2025

Thanks sir @setrofim

@Sukuna0007Abhi
Copy link
Contributor Author

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>
@Sukuna0007Abhi
Copy link
Contributor Author

Pls review sir @setrofim @yogeshbdeshpande

var err error

// Validate and create Token Profile
if err = validateTagURI("tag:arm.com,2025:cca-token"); err != nil {
Copy link
Contributor

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 {
Copy link
Contributor

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.

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.

Use tag URIs rather than http for profile identifiers

2 participants