Repository navigation
NYL-515: Add certificate fields to Credential - #788
Merged
Merged
Conversation
UAS now returns two optional fields on Credential records for Dashboard-generated certificate credentials (connectorcertificate and adminconsentcertificate): certificate_expires_at and thumbprint. Add certificateExpiresAt and thumbprint to the Credential model, and add CONNECTORCERTIFICATE and ADMINCONSENTCERTIFICATE to CredentialType so list/find responses are typed. Create request types are unchanged, since these credentials cannot be created through the API. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #788 +/- ##
=======================================
Coverage 98.69% 98.69%
=======================================
Files 43 43
Lines 1073 1075 +2
Branches 101 101
=======================================
+ Hits 1059 1061 +2
Misses 12 12
Partials 2 2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
googsvg
approved these changes
Nov 24, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Implements NYL-515, the Node part of NYL-511.
UAS now returns two optional fields on Credential records, only when
credential_typeisconnectorcertificateoradminconsentcertificate. Those credentials can only be created from the Dashboard.Credential.certificateExpiresAt?: number: certificate expiry as a Unix timestampCredential.thumbprint?: string: certificate thumbprintCredentialType.CONNECTORCERTIFICATEandCredentialType.ADMINCONSENTCERTIFICATE, so list/find results using them are typedCreate request types are unchanged, because these credential types can't be created through the API. No mapping code was needed: responses already go through
objKeysToCamelCase, socertificate_expires_atarrives ascertificateExpiresAt.Note for the release: Unreleased is planned as 8.5.1. New public fields and enum values may call for a minor bump (8.6.0) instead.
Tests
tsc --noEmitand eslint are clean.🤖 Generated with Claude Code