feat: be able to edit certificate#3350
Merged
Siumauricio merged 7 commits intoDokploy:canaryfrom Apr 4, 2026
Merged
Conversation
…te' action - Modified the access control settings for the 'certificate' resource to allow 'update' permissions for admin and owner roles. - Updated the certificate router to use the new permission structure for the update mutation.
- Eliminated the `autoRenew` field from the certificate schema, API router, and related components to streamline certificate management. - Updated form handling and validation logic accordingly to reflect the removal of the auto-renew feature.
…unctions - Updated the `extractExpirationDate` and `extractCommonName` functions to return null instead of throwing errors when encountering unexpected structures in the certificate data. This change enhances the robustness of the certificate parsing logic.
- Added a new section to the certificate details view to show associated server information, including the server name and IP address, enhancing the visibility of server-related data for each certificate. - Updated the API to include server data when fetching certificates.
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.
What is this PR about?
Added edit functionality for Traefik certificates. Users can now update certificate details (name, cert data, private key, auto-renew) instead of deleting and recreating. Implemented by adding an
updatemutation to the certificate router and refactoringAddCertificateintoHandleCertificateto support both create and edit modes.Issues related (if applicable)
closes #3325
Screenshots (if applicable)