Skip to content

feat: be able to edit certificate#3350

Merged
Siumauricio merged 7 commits intoDokploy:canaryfrom
Bima42:feat/3325-add-button-to-edit-certificates
Apr 4, 2026
Merged

feat: be able to edit certificate#3350
Siumauricio merged 7 commits intoDokploy:canaryfrom
Bima42:feat/3325-add-button-to-edit-certificates

Conversation

@Bima42
Copy link
Copy Markdown
Contributor

@Bima42 Bima42 commented Dec 26, 2025

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 update mutation to the certificate router and refactoring AddCertificate into HandleCertificate to support both create and edit modes.

Issues related (if applicable)

closes #3325

Screenshots (if applicable)

Capture d’écran 2025-12-26 à 13 56 25 Capture d’écran 2025-12-26 à 13 56 30 Capture d’écran 2025-12-26 à 13 56 39 Capture d’écran 2025-12-26 à 14 00 26

@Bima42 Bima42 requested a review from Siumauricio as a code owner December 26, 2025 13:03
autofix-ci bot and others added 3 commits December 26, 2025 13:03
…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.
@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Apr 4, 2026
- 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.
@Siumauricio Siumauricio merged commit 987cb41 into Dokploy:canary Apr 4, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a button to edit saved certificates

2 participants