Skip to content

Show the certificate subject in the certificate list - #4842

Open
arpitjain099 wants to merge 1 commit into
apache:devfrom
arpitjain099:fix/certificate-list-subject-dn
Open

Show the certificate subject in the certificate list#4842
arpitjain099 wants to merge 1 commit into
apache:devfrom
arpitjain099:fix/certificate-list-subject-dn

Conversation

@arpitjain099

Copy link
Copy Markdown

Closes #4841.

certificate-label.component.html rendered certificate.issuerDn, so every certificate signed by the same intermediate or root CA showed the same string and there was no way to tell two servers apart without opening each one.

It now shows subjectDn, and the OPC UA ApplicationUri underneath it, taken from the URI entry of subjectAlternativeNames as you suggested, since that is what an operator actually matches a server on. The DNS badges below are untouched. subjectDn and subjectAlternativeNames are both already on the Certificate model (streampipes-model.ts:721-738), so nothing needed to change on the API side.

One thing outside the strict scope: ngOnInit had a leftover console.log(this.dnsNames) sitting in the lines I was editing, so it is gone too. Happy to put it back if you would rather keep this to the reported change.

On verification, so the claim is not larger than what I did: this is a template and component change and I have not run the UI. I checked the field names against the generated model and ran the repo's own prettier config (3.7.4, ui/.prettierrc.json) over both files, which reports "All matched files use Prettier code style". I have not run ng lint or built the frontend, so CI is the real check there.

The overview list rendered certificate.issuerDn, so every certificate
signed by the same intermediate or root CA looked identical and there was
no way to tell servers apart without opening each one.

Show subjectDn instead, and add the OPC UA ApplicationUri from
subjectAlternativeNames underneath, which is the identifier an operator
matches a server on.

Also drops a leftover console.log of the parsed DNS names from ngOnInit,
which sat in the lines being changed.

Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
@github-actions github-actions Bot added the ui Anything that affects the UI label Aug 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ui Anything that affects the UI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Certificate list shows Issuer instead of Subject

1 participant