Skip to content
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

Refactor SAN handling, add permanentIdentifier to the SAN attributes #6

Merged
merged 11 commits into from
Nov 5, 2024

Conversation

rolandgroen
Copy link
Collaborator

Replaced the single otherName SAN type detection with a more flexible approach that supports multiple SAN types and policies. Updated the respective functions and tests to accommodate this change, ensuring backward compatibility and improved error handling.

Replaced the single `otherName` SAN type detection with a more flexible approach that supports multiple SAN types and policies. Updated the respective functions and tests to accommodate this change, ensuring backward compatibility and improved error handling.
This function searches for a matching policyType and sanTypeName in a slice of OtherNameValue structs. It returns the corresponding value if found, or an error if no match is found.
@rolandgroen rolandgroen changed the title Refactor SAN handling and parsing logic Refactor SAN handling, add permanentIdentifier to the SAN attributes Oct 28, 2024
@rolandgroen rolandgroen marked this pull request as ready for review October 28, 2024 11:26
rolandgroen and others added 9 commits October 28, 2024 12:35
Updated `BuildSelfSignedCertChain` and `SigningCertTemplate` to accept and process a permanent identifier value. This includes modifications to test cases and utilities to validate the new permanent identifier within certificate chains.
* main:
  Remove unused dependencies from go.mod and go.sum
  Add new dependencies to go.mod and go.sum
* main:
  Refactor constant name SAN_TYPE_OTHER_NAME to SanTypeOtherName

# Conflicts:
#	x509_cert/x509_utils.go
#	x509_cert/x509_utils_test.go
* main:
  Vc fields update (#8)

# Conflicts:
#	uzi_vc_issuer/ura_issuer.go
Removed the redundant serialNumber parameter from the `uraCredential` function to streamline its usage. Adjusted the function internals accordingly to handle the credentials more effectively, ensuring the subject's DID and other name values are managed in a consolidated manner.
Bumps [github.com/alecthomas/kong](https://github.com/alecthomas/kong) from 1.2.1 to 1.3.0.
- [Commits](alecthomas/kong@v1.2.1...v1.3.0)

---
updated-dependencies:
- dependency-name: github.com/alecthomas/kong
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [github.com/lestrrat-go/jwx/v2](https://github.com/lestrrat-go/jwx) from 2.1.1 to 2.1.2.
- [Release notes](https://github.com/lestrrat-go/jwx/releases)
- [Changelog](https://github.com/lestrrat-go/jwx/blob/develop/v3/Changes)
- [Commits](lestrrat-go/jwx@v2.1.1...v2.1.2)

---
updated-dependencies:
- dependency-name: github.com/lestrrat-go/jwx/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@stevenvegt stevenvegt merged commit 3a4d054 into main Nov 5, 2024
3 checks passed
@stevenvegt stevenvegt deleted the permanent_identifier branch November 5, 2024 09:04
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