Skip to content
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

OnExit hooks #6128

Merged
merged 2 commits into from
Mar 1, 2024
Merged

OnExit hooks #6128

merged 2 commits into from
Mar 1, 2024

Conversation

mholt
Copy link
Member

@mholt mholt commented Feb 26, 2024

A sponsor found these useful; in particular, the process-global OnExit hooks.

There are also context-scoped OnExit hooks which are cleaned up automatically every config unload (and thus need to be registered every config load, which is part of the module lifecycle anyway).

@mholt mholt added this to the v2.8.0 milestone Feb 26, 2024
@mholt mholt merged commit 46c5db9 into master Mar 1, 2024
25 checks passed
@mholt mholt deleted the onexit branch March 1, 2024 16:57
@francislavoie francislavoie added the feature ⚙️ New feature or request label Mar 1, 2024
armadi1809 pushed a commit to armadi1809/caddy that referenced this pull request Mar 4, 2024
* core: OnExit callbacks

* core: Process-global OnExit callbacks
mholt added a commit that referenced this pull request Mar 5, 2024
…luggable (#6050)

* Made trusted leaf certificates pluggable into the tls.client_auth.leaf
module

* Added leaf loaders modules: file, folder, pem aand storage

* Cleaned implementation of leaf cert loader modules

* Added tests for leaf certs file and folder loaders

* cmd: fix the output of the `Usage` section (#6138)

* core: OnExit hooks (#6128)

* core: OnExit callbacks

* core: Process-global OnExit callbacks

* ci: bump golangci/golangci-lint-action from 3 to 4 (#6141)

Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 3 to 4.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](golangci/golangci-lint-action@v3...v4)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Added more leaf certificate loaders tests and cleaned up code

* Modified leaf cert loaders json field names and cleaned up storage loader comment

* Update modules/caddytls/leaffileloader.go

* Update LeafStorageLoader certificates field name

* Upgraded  protobuf version

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Mohammed Al Sahaf <[email protected]>
Co-authored-by: Matt Holt <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
mholt added a commit that referenced this pull request Apr 11, 2024
* core: OnExit callbacks

* core: Process-global OnExit callbacks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature ⚙️ New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants