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

Serialization of trust path results in extra nested trust path on every serialize #681

Open
Morthy opened this issue Jan 22, 2025 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@Morthy
Copy link

Morthy commented Jan 22, 2025

Version(s) affected

5.1.1

Description

When a PublicKeyCredentialSource is serialized the trust path gets nested into an additional layer every time serialization occurs.

How to reproduce

  1. Have a PublicKeyCredentialSource with trust path with a certificate
  2. Serialize it
  3. Observe that after every serialize, the trustPath has an extra level of nesting

"trustPath": {"x5c": {"x5c": {"x5c": {"x5c": ["-----BEGIN CERTIFICATE-----

This doesn't stop anything from working, but we ended up with keys saved with so many nesting levels that we reached the max nesting level in the database.

Possible Solution

No response

Additional Context

No response

@Spomky Spomky self-assigned this Jan 22, 2025
@Spomky Spomky added the bug Something isn't working label Jan 22, 2025
@Spomky Spomky added this to the 5.1.2 milestone Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants