feat(openvpn-tunnel): update certs duration and add certs regeneration functionality #679
+746
−190
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.
This pull request introduces new features and usability improvements to the OpenVPN tunnel management UI, including two new modals for certificate regeneration and tunnel details, as well as enhancements to existing components. The changes also extend the tunnel data model to support new fields and improve button visibility and labeling for a more consistent user experience.
New modals and feature integration:
Added
RegenerateCertsModal.vueand integrated it intoTunnelManager.vueto allow users to regenerate certificates for tunnels, with error handling and feedback.Added
TunnelInfoModal.vueand integrated it intoTunnelManager.vueto display detailed information about a selected tunnel, including new fields like certificate expiry, bytes sent/received, and connection status.Tunnel data model extension:
ServerTunnelandClientTunneltypes inTunnelManager.vueto include optional fields:cert_expiry_ts,bytes_received,bytes_sent, andsince, enabling richer tunnel information displayUI and usability improvements:
Changed button kinds for adding tunnels and importing configurations from secondary to primary for better visibility in
TunnelManager.vueAdded helper text for tunnel name input in
CreateOrEditTunnelDrawer.vueand a cancel label for the delete modal inDeleteTunnelModal.vueto improve form clarity and consistencyCopyright updates:
These changes collectively improve the tunnel management experience by adding new capabilities, enhancing the UI, and ensuring the codebase remains up-to-date.
Refs: NethServer/nethsecurity#1481