mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-06 00:22:42 -05:00
[PR #2523] [CLOSED] fix: clean up ACME certs when resources are deleted #7813
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fosrl/pangolin/pull/2523
Author: @shreyaspapi
Created: 2/23/2026
Status: ❌ Closed
Base:
main← Head:fix/2382-cleanup-certs-on-resource-deletion📝 Commits (2)
a404b0dfix: clean up ACME certs when resources are deleted9f31532fix: extract pure acme logic into acmeData.ts so tests import real code📊 Changes
5 files changed (+453 additions, -39 deletions)
View changed files
📝
server/lib/readConfigFile.ts(+4 -0)➕
server/lib/traefik/acmeCleanup.test.ts(+323 -0)➕
server/lib/traefik/acmeCleanup.ts(+52 -0)➕
server/lib/traefik/acmeData.ts(+53 -0)📝
server/routers/resource/deleteResource.ts(+21 -39)📄 Description
Community Contribution License Agreement
By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.
Description
Fixes #2382
What's wrong
When you delete a resource, Traefik keeps its certificate in
acme.jsonand keeps renewing it forever. ThedeleteResourcehandler only removes the DB row — it never touches the ACME storage.What this does
acme.jsonso Traefik stops renewing itacme_json_pathoption (defaults to/app/config/letsencrypt/acme.json)How to test?
acme.json🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.