-
Notifications
You must be signed in to change notification settings - Fork 757
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
dashboard: Add certificate widget that displays CAs and Certs sorted by expiration date #8105
Conversation
…by expiration date
general question: are we able to open the edit page for a certificate via link yet? |
I saw that in the user manager there is some kind of link that can open the certificates bootgrid with a preapplied filter to only show a single certificate (for the user certificate). Maybe that could be added? But I have to see how it works first. |
…ly, add fa-unlock when cert has expired.
…refresh immediately on config change, increase tick timeout
…d of the bootgrid to display the certificate directly
@fichtner I handled this with a trick that will populate the existing search-field with the common name of the certificate. This leverages existing things without creating too much overhead. If a better solution can be found, I'm all for it, yet this piece of code is universal and can be dropped into any page that needs this functionality. |
might be worth asking @AdSchellevis for an opinion, for me it's more difficult, but in general it would be nice opening the edit page so the save would immediately renew (I found out the hard way that it works this way). |
the "hacky" option of editing a uuid when jumping into the form: core/src/opnsense/mvc/app/views/OPNsense/Firewall/alias.volt Lines 179 to 186 in f4b9017
but if we do want to use this more often, we likely better implement it in the bootgrid for reuse |
…orresponding form
@AdSchellevis I have pushed the current code of what I showed you earlier. If you like it, we could consolidate it to a different spot so it is not duplicated. I would need a pointer where to put it. |
@Monviech maybe keep it in the trust templates for now, if we are reusing the same pattern more often, it might get more clear where it belongs. This does work nice by the way. |
@AdSchellevis Hehe thank you. This kinda fixes this indirectly: Maybe if we want to use it in more widgets we could put it in a different place. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me :)
Nice work 👍 |
Fixes: #7898
Adds a widget that pulls all CA and Certificates from the trust store API and displays them sorted by expiration date.
An additional self populating dropdown allows to configure the plugin, hiding certificates.
The default is displaying all existing certificates.