Compare commits

..

39 commits

Author SHA1 Message Date
Matt Brubeck
92093a84ab Update dependencies 2026-02-12 07:36:13 -08:00
dependabot[bot]
26482e38c0 chore(deps): bump env_logger from 0.11.8 to 0.11.9
Bumps [env_logger](https://github.com/rust-cli/env_logger) from 0.11.8 to 0.11.9.
- [Release notes](https://github.com/rust-cli/env_logger/releases)
- [Changelog](https://github.com/rust-cli/env_logger/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rust-cli/env_logger/compare/v0.11.8...v0.11.9)

---
updated-dependencies:
- dependency-name: env_logger
  dependency-version: 0.11.9
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-12 07:35:33 -08:00
Matt Brubeck
22b6dd50af Update dependencies 2026-01-20 09:39:59 -08:00
dependabot[bot]
11c569b4ec chore(deps): bump rcgen from 0.14.6 to 0.14.7
Bumps [rcgen](https://github.com/rustls/rcgen) from 0.14.6 to 0.14.7.
- [Release notes](https://github.com/rustls/rcgen/releases)
- [Commits](https://github.com/rustls/rcgen/compare/v0.14.6...v0.14.7)

---
updated-dependencies:
- dependency-name: rcgen
  dependency-version: 0.14.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-20 09:39:35 -08:00
Matt Brubeck
067e220145 Version 3.3.20 2026-01-06 11:21:22 -08:00
Matt Brubeck
7a5ef98ea8 Update dependencies 2026-01-06 11:20:43 -08:00
dependabot[bot]
b142891abe chore(deps): bump url from 2.5.7 to 2.5.8
Bumps [url](https://github.com/servo/rust-url) from 2.5.7 to 2.5.8.
- [Release notes](https://github.com/servo/rust-url/releases)
- [Commits](https://github.com/servo/rust-url/compare/v2.5.7...v2.5.8)

---
updated-dependencies:
- dependency-name: url
  dependency-version: 2.5.8
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-06 10:05:12 -08:00
Matt Brubeck
e758138c58 Update dependencies 2026-01-05 11:43:34 -08:00
dependabot[bot]
1807524209 chore(deps): bump tokio from 1.48.0 to 1.49.0
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.48.0 to 1.49.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.48.0...tokio-1.49.0)

---
updated-dependencies:
- dependency-name: tokio
  dependency-version: 1.49.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-05 11:43:03 -08:00
dependabot[bot]
9daefcd3c4 chore(deps): bump rcgen from 0.14.5 to 0.14.6
Bumps [rcgen](https://github.com/rustls/rcgen) from 0.14.5 to 0.14.6.
- [Release notes](https://github.com/rustls/rcgen/releases)
- [Commits](https://github.com/rustls/rcgen/compare/v0.14.5...v0.14.6)

---
updated-dependencies:
- dependency-name: rcgen
  dependency-version: 0.14.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-15 11:00:56 -08:00
dependabot[bot]
dee79f819c chore(deps): bump log from 0.4.28 to 0.4.29
Bumps [log](https://github.com/rust-lang/log) from 0.4.28 to 0.4.29.
- [Release notes](https://github.com/rust-lang/log/releases)
- [Changelog](https://github.com/rust-lang/log/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/log/compare/0.4.28...0.4.29)

---
updated-dependencies:
- dependency-name: log
  dependency-version: 0.4.29
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-03 08:44:37 -08:00
dependabot[bot]
c385a11999 chore(deps): bump actions/checkout from 5 to 6
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-21 18:51:36 -08:00
Matt Brubeck
ef39d78f08 Simplify code for cert file paths 2025-11-16 13:23:27 -08:00
Matt Brubeck
b0d30df91a Update dependencies 2025-11-16 13:09:38 -08:00
Matt Brubeck
d8481a2b0f Update dependencies 2025-11-05 19:42:55 -08:00
Matt Brubeck
5cdfb3dc4b Update dependencies 2025-10-18 11:51:20 -07:00
Matt Brubeck
90dcaff231 Update dependencies 2025-10-15 12:15:59 -07:00
dependabot[bot]
1091812e13 chore(deps): bump tokio from 1.47.1 to 1.48.0
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.47.1 to 1.48.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.47.1...tokio-1.48.0)

---
updated-dependencies:
- dependency-name: tokio
  dependency-version: 1.48.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-15 12:10:30 -07:00
dependabot[bot]
8a6de275ca chore(deps): bump tokio-rustls from 0.26.3 to 0.26.4
Bumps [tokio-rustls](https://github.com/rustls/tokio-rustls) from 0.26.3 to 0.26.4.
- [Release notes](https://github.com/rustls/tokio-rustls/releases)
- [Commits](https://github.com/rustls/tokio-rustls/compare/v/0.26.3...v/0.26.4)

---
updated-dependencies:
- dependency-name: tokio-rustls
  dependency-version: 0.26.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-29 09:56:12 -07:00
dependabot[bot]
1e84541bbb chore(deps): bump rcgen from 0.14.4 to 0.14.5
Bumps [rcgen](https://github.com/rustls/rcgen) from 0.14.4 to 0.14.5.
- [Release notes](https://github.com/rustls/rcgen/releases)
- [Commits](https://github.com/rustls/rcgen/compare/v0.14.4...v0.14.5)

---
updated-dependencies:
- dependency-name: rcgen
  dependency-version: 0.14.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-25 08:16:27 -07:00
Matt Brubeck
47410867a5 Version 3.3.19 2025-09-18 14:25:07 -07:00
Matt Brubeck
3bc7471f7b Update dependencies 2025-09-18 14:21:41 -07:00
dependabot[bot]
d9776361af chore(deps): bump tokio-rustls from 0.26.2 to 0.26.3
Bumps [tokio-rustls](https://github.com/rustls/tokio-rustls) from 0.26.2 to 0.26.3.
- [Release notes](https://github.com/rustls/tokio-rustls/releases)
- [Commits](https://github.com/rustls/tokio-rustls/compare/v/0.26.2...v/0.26.3)

---
updated-dependencies:
- dependency-name: tokio-rustls
  dependency-version: 0.26.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-18 09:46:13 -07:00
Matt Brubeck
ac59c0e268 Update dependencies 2025-09-14 16:51:32 -07:00
dependabot[bot]
2114ff8736 chore(deps): bump rcgen from 0.14.3 to 0.14.4
Bumps [rcgen](https://github.com/rustls/rcgen) from 0.14.3 to 0.14.4.
- [Release notes](https://github.com/rustls/rcgen/releases)
- [Commits](https://github.com/rustls/rcgen/commits)

---
updated-dependencies:
- dependency-name: rcgen
  dependency-version: 0.14.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-10 10:12:27 -07:00
Johann150
e781609383
update changelog 2025-09-05 20:56:42 +02:00
Johann150
37ac74f21d
document commands for converting PEM to DER 2025-09-05 20:51:34 +02:00
dependabot[bot]
73eb53de4c chore(deps): bump log from 0.4.27 to 0.4.28
Bumps [log](https://github.com/rust-lang/log) from 0.4.27 to 0.4.28.
- [Release notes](https://github.com/rust-lang/log/releases)
- [Changelog](https://github.com/rust-lang/log/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/log/compare/0.4.27...0.4.28)

---
updated-dependencies:
- dependency-name: log
  dependency-version: 0.4.28
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-04 08:18:33 -07:00
Matt Brubeck
5c84a90093 Update dependencies 2025-09-03 11:21:57 -07:00
Matt Brubeck
cb6b815b82 Disable unicode feature of getopts 2025-09-03 10:22:48 -07:00
dependabot[bot]
dfc4c4fd7b chore(deps): bump getopts from 0.2.23 to 0.2.24
Bumps [getopts](https://github.com/rust-lang/getopts) from 0.2.23 to 0.2.24.
- [Release notes](https://github.com/rust-lang/getopts/releases)
- [Changelog](https://github.com/rust-lang/getopts/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/getopts/compare/v0.2.23...v0.2.24)

---
updated-dependencies:
- dependency-name: getopts
  dependency-version: 0.2.24
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-03 09:32:50 -07:00
Matt Brubeck
96b5431fa0 Update dependencies 2025-08-21 12:04:42 -07:00
Matt Brubeck
1893b3ad7a Update url and related crates 2025-08-21 12:03:27 -07:00
dependabot[bot]
4173a12702 chore(deps): bump percent-encoding from 2.3.1 to 2.3.2
Bumps [percent-encoding](https://github.com/servo/rust-url) from 2.3.1 to 2.3.2.
- [Release notes](https://github.com/servo/rust-url/releases)
- [Commits](https://github.com/servo/rust-url/commits)

---
updated-dependencies:
- dependency-name: percent-encoding
  dependency-version: 2.3.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-21 12:00:53 -07:00
dependabot[bot]
815bd517cc chore(deps): bump url from 2.5.4 to 2.5.5
Bumps [url](https://github.com/servo/rust-url) from 2.5.4 to 2.5.5.
- [Release notes](https://github.com/servo/rust-url/releases)
- [Commits](https://github.com/servo/rust-url/compare/v2.5.4...v2.5.5)

---
updated-dependencies:
- dependency-name: url
  dependency-version: 2.5.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-21 12:00:38 -07:00
Matt Brubeck
13ad2f363e Use if-let chains 2025-08-21 09:28:45 -07:00
dependabot[bot]
cdc72e4f2d chore(deps): bump actions/checkout from 4 to 5
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-12 13:55:22 -07:00
Matt Brubeck
8cc245996b Update dependencies 2025-08-11 11:33:56 -07:00
dependabot[bot]
16cb171b06 chore(deps): bump glob from 0.3.2 to 0.3.3
Bumps [glob](https://github.com/rust-lang/glob) from 0.3.2 to 0.3.3.
- [Release notes](https://github.com/rust-lang/glob/releases)
- [Changelog](https://github.com/rust-lang/glob/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/glob/compare/v0.3.2...v0.3.3)

---
updated-dependencies:
- dependency-name: glob
  dependency-version: 0.3.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-11 11:32:31 -07:00
8 changed files with 586 additions and 336 deletions

View file

@ -10,7 +10,7 @@ jobs:
cargo-audit: cargo-audit:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v6
- uses: actions-rs/audit-check@v1 - uses: actions-rs/audit-check@v1
# Don't run on dependabot PRs or forks # Don't run on dependabot PRs or forks
# https://github.com/actions-rs/clippy-check/issues/2#issuecomment-807852653 # https://github.com/actions-rs/clippy-check/issues/2#issuecomment-807852653

View file

@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
needs: create_release needs: create_release
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v6
- name: build - name: build
run: bash .github/workflows/release.sh run: bash .github/workflows/release.sh
- name: upload release assets linux - name: upload release assets linux
@ -32,7 +32,7 @@ jobs:
runs-on: windows-latest runs-on: windows-latest
needs: create_release needs: create_release
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v6
- name: Build - name: Build
run: cargo build --verbose --release run: cargo build --verbose --release
- name: strip names - name: strip names
@ -50,7 +50,7 @@ jobs:
runs-on: macos-latest runs-on: macos-latest
needs: create_release needs: create_release
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v6
- name: install toolchain - name: install toolchain
run: rustup target add aarch64-apple-darwin run: rustup target add aarch64-apple-darwin
- name: Build x86_64 - name: Build x86_64
@ -79,7 +79,7 @@ jobs:
packages: write packages: write
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v6
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Log into GHCR - name: Log into GHCR

View file

@ -12,7 +12,7 @@ jobs:
clippy: clippy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v6
- name: Run clippy action to produce annotations - name: Run clippy action to produce annotations
# Don't run on dependabot PRs # Don't run on dependabot PRs
# https://github.com/actions-rs/clippy-check/issues/2#issuecomment-807852653 # https://github.com/actions-rs/clippy-check/issues/2#issuecomment-807852653
@ -30,7 +30,7 @@ jobs:
formatting: formatting:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v6
- name: Formatting - name: Formatting
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with:
@ -39,7 +39,7 @@ jobs:
tests: tests:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v6
- uses: actions-rs/cargo@v1 - uses: actions-rs/cargo@v1
with: with:
command: test command: test

View file

@ -5,18 +5,66 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
Updates to dependencies are not considered notable changes for the purpose of this changelog.
This may lead to no listed changes for a version.
## [Unreleased] ## [Unreleased]
## [3.3.19] - 2025-09-18
### Fixed
* Update dependencies.
* Document commands for converting PEM to DER.
## [3.3.18] - 2025-08-05
## [3.3.17] - 2025-06-27
## [3.3.16] - 2025-05-06
### Changed
* Build release artifacts with Ubuntu 22.04, because Ubuntu 20.04 is no longer supported
* pre-built binaries may no longer run on Linux distributions older than Ubuntu 22.04 (glibc 2.35)
* users with older glibc versions will need to build from source
## [3.3.15] - 2025-05-06
## [3.3.14] - 2025-03-24
## [3.3.13] - 2025-02-24
Thank you to @luineth for contributing to this release.
### Added
* aarch64 support for Docker image (#376)
## [3.3.12] - 2025-02-18
## [3.3.11] - 2024-11-29
Thank you to @geraldwuhoo and @jphastings for contributing to this release.
### Added
* Automatically publish docker images to GHCR (#366)
### Fixed
* Refactor Dockerfile for multi-stage build (#144)
## [3.3.10] - 2024-11-04
## [3.3.9] - 2024-09-10
## [3.3.8] - 2024-07-24
## [3.3.7] - 2024-04-01
## [3.3.6] - 2024-03-22
## [3.3.5] - 2024-03-15
### Fixed
* updated and simplified dependencies
* fix syntax of license field in Cargo manifest
## [3.3.4] - 2024-01-16
### Fixed
* cleaned up documentation
## [3.3.3] - 2023-12-27 ## [3.3.3] - 2023-12-27
### Fixed ### Fixed
* fixed release automation * fixed release automation
## [3.3.2] - 2023-12-27 ## [3.3.2] - 2023-12-27
### Fixed
* updated dependencies
## [3.3.1] - 2023-08-05 ## [3.3.1] - 2023-08-05
Thank you to Jan Stępień and @michaelnordmeyer for contributing to this release. Thank you to Jan Stępień and @michaelnordmeyer for contributing to this release.
@ -31,7 +79,6 @@ Thank you to @equalsraf, @michaelnordmeyer and @wanderer1988 for contributing to
* listening on unix sockets (#244) * listening on unix sockets (#244)
### Fixed ### Fixed
* updated dependencies
* misstyped email address in section on how to report security vulnerabilities (#239) * misstyped email address in section on how to report security vulnerabilities (#239)
* wrong language code in README (#189) * wrong language code in README (#189)
@ -41,14 +88,12 @@ Thank you to @06kellyjac, @albertlarsan68 and @kahays for contributing to this r
### Fixed ### Fixed
* removed port collisions in tests, for the last time (#143) * removed port collisions in tests, for the last time (#143)
* fixed Dockerfile startup command (#169) * fixed Dockerfile startup command (#169)
* upated dependencies
## [3.2.3] - 2022-02-04 ## [3.2.3] - 2022-02-04
Thank you to T. Spivey for contributing to this release. Thank you to T. Spivey for contributing to this release.
### Fixed ### Fixed
* improper IRIs are handled instead of crashing (bug reported via email) * improper IRIs are handled instead of crashing (bug reported via email)
* updated dependencies
## [3.2.2] - 2022-01-25 ## [3.2.2] - 2022-01-25
Thank you to @Suzie97 for contributing to this release. Thank you to @Suzie97 for contributing to this release.
@ -56,16 +101,12 @@ Thank you to @Suzie97 for contributing to this release.
### Added ### Added
* CI build for `aarch64-apple-darwin` target (#137) * CI build for `aarch64-apple-darwin` target (#137)
### Fixed
* updated dependencies
## [3.2.1] - 2021-12-02 ## [3.2.1] - 2021-12-02
Thank you to @MatthiasPortzel for contributing to this release. Thank you to @MatthiasPortzel for contributing to this release.
### Fixed ### Fixed
* host name comparisons are now case insensitive (#115) * host name comparisons are now case insensitive (#115)
* made automatic certificate configuration more prominent in the README * made automatic certificate configuration more prominent in the README
* updated dependencies
## [3.2.0] - 2021-11-15 ## [3.2.0] - 2021-11-15
Thank you to @balazsbtond and @joseph-marques for contributing to this release. Thank you to @balazsbtond and @joseph-marques for contributing to this release.
@ -74,7 +115,6 @@ Thank you to @balazsbtond and @joseph-marques for contributing to this release.
* you can add header text to a directory listing. See the updated readme for details. (#98) * you can add header text to a directory listing. See the updated readme for details. (#98)
### Fixed ### Fixed
* updated dependencies
* error pages also send close_notify (#100) * error pages also send close_notify (#100)
## [3.1.3] - 2021-10-25 ## [3.1.3] - 2021-10-25
@ -103,7 +143,6 @@ Thank you to @jgarte and @alvaro-cuesta for contributing to this release.
### Fixed ### Fixed
* actually bind to multiple IP addresses. Despite the documentation saying so, * actually bind to multiple IP addresses. Despite the documentation saying so,
Agate would only bind to the first address that did not result in an error. (#63) Agate would only bind to the first address that did not result in an error. (#63)
* updated dependencies
## [3.1.0] - 2021-06-08 ## [3.1.0] - 2021-06-08
Thank you to Matthew Ingwersen and Oliver Simmons (@GoodClover) for contributing to this release. Thank you to Matthew Ingwersen and Oliver Simmons (@GoodClover) for contributing to this release.
@ -133,7 +172,6 @@ Thank you to @06kellyjac, @cpnfeeny, @lifelike, @skittlesvampir and @steko for c
The previous handling could be exploited as a DoS attack vector. (#59) The previous handling could be exploited as a DoS attack vector. (#59)
* Two tests were running on the same port, causing them to fail nondeterministically. (#51) * Two tests were running on the same port, causing them to fail nondeterministically. (#51)
* Rephrased the changelog for 3.0.0 on continuing to use older certificates. (#55) * Rephrased the changelog for 3.0.0 on continuing to use older certificates. (#55)
* Updated dependencies.
## [3.0.2] - 2021-04-08 ## [3.0.2] - 2021-04-08
Thank you to @kvibber, @lifelike and @pasdechance for contributing to this release. Thank you to @kvibber, @lifelike and @pasdechance for contributing to this release.
@ -196,7 +234,6 @@ Thank you to @littleli and @06kellyjac for contributing to this release.
* The GitHub workflow has been fixed so Windows binaries are compressed correctly (#36). * The GitHub workflow has been fixed so Windows binaries are compressed correctly (#36).
* Split out install steps to allow for more options in the future. * Split out install steps to allow for more options in the future.
* Add install notes for nix/NixOS to the README (#38). * Add install notes for nix/NixOS to the README (#38).
* Updated dependencies.
## [2.5.2] - 2021-02-12 ## [2.5.2] - 2021-02-12
@ -293,9 +330,6 @@ Thank you to @Johann150 and @KilianKemps for contributing to this release.
### Added ### Added
* Optional directory listings (#8, #9). * Optional directory listings (#8, #9).
### Fixed
* Updated dependencies.
## [2.0.0] - 2020-12-23 ## [2.0.0] - 2020-12-23
Thank you to @bortzmeyer, @KillianKemps, and @Ylhp for contributing to this release. Thank you to @bortzmeyer, @KillianKemps, and @Ylhp for contributing to this release.
@ -326,7 +360,6 @@ Thank you @Johann150, @jonhiggs and @tronje for contributing to this release!
* verify hostname and port in request URL (#4). * verify hostname and port in request URL (#4).
* improved logging (#2, #3). * improved logging (#2, #3).
* Don't redirect to "/" when the path is empty (#5). * Don't redirect to "/" when the path is empty (#5).
* Update dependencies.
## [1.2.2] - 2020-09-21 ## [1.2.2] - 2020-09-21
Thank you to @m040601 for contributing to this release. Thank you to @m040601 for contributing to this release.
@ -336,13 +369,11 @@ Thank you to @m040601 for contributing to this release.
* Built both x86_64 and ARM binaries. These binaries are built for Linux operating systems with glibc 2.28 or later, such as Debian 10 ("buster") or newer, Ubuntu 18.10 or newer, and Raspberry Pi OS 2019-06-20 or newer (#1). * Built both x86_64 and ARM binaries. These binaries are built for Linux operating systems with glibc 2.28 or later, such as Debian 10 ("buster") or newer, Ubuntu 18.10 or newer, and Raspberry Pi OS 2019-06-20 or newer (#1).
### Fixed ### Fixed
* Update dependencies.
* Minor internal code cleanup. * Minor internal code cleanup.
## [1.2.1] - 2020-06-20 ## [1.2.1] - 2020-06-20
### Fixed ### Fixed
* Reduce memory usage when serving large files. * Reduce memory usage when serving large files.
* Update dependencies.
## [1.2.0] - 2020-06-10 ## [1.2.0] - 2020-06-10
### Changed ### Changed
@ -351,7 +382,6 @@ Thank you to @m040601 for contributing to this release.
### Fixed ### Fixed
* Handling for requests that exceed 1KB. * Handling for requests that exceed 1KB.
* Reduce memory allocations and speed up request parsing. * Reduce memory allocations and speed up request parsing.
* Update dependencies.
## [1.1.0] - 2020-05-22 ## [1.1.0] - 2020-05-22
### Added ### Added
@ -364,7 +394,24 @@ Thank you to @m040601 for contributing to this release.
## [1.0.0] - 2020-05-21 ## [1.0.0] - 2020-05-21
[Unreleased]: https://github.com/mbrubeck/agate/compare/v3.3.1...HEAD [Unreleased]: https://github.com/mbrubeck/agate/compare/v3.3.18...HEAD
[3.3.18]: https://github.com/mbrubeck/agate/compare/v3.3.17...v3.3.18
[3.3.17]: https://github.com/mbrubeck/agate/compare/v3.3.16...v3.3.17
[3.3.16]: https://github.com/mbrubeck/agate/compare/v3.3.15...v3.3.16
[3.3.15]: https://github.com/mbrubeck/agate/compare/v3.3.14...v3.3.15
[3.3.14]: https://github.com/mbrubeck/agate/compare/v3.3.13...v3.3.14
[3.3.13]: https://github.com/mbrubeck/agate/compare/v3.3.12...v3.3.13
[3.3.12]: https://github.com/mbrubeck/agate/compare/v3.3.11...v3.3.12
[3.3.11]: https://github.com/mbrubeck/agate/compare/v3.3.10...v3.3.11
[3.3.10]: https://github.com/mbrubeck/agate/compare/v3.3.9...v3.3.10
[3.3.9]: https://github.com/mbrubeck/agate/compare/v3.3.8...v3.3.9
[3.3.8]: https://github.com/mbrubeck/agate/compare/v3.3.7...v3.3.8
[3.3.7]: https://github.com/mbrubeck/agate/compare/v3.3.6...v3.3.7
[3.3.6]: https://github.com/mbrubeck/agate/compare/v3.3.5...v3.3.6
[3.3.5]: https://github.com/mbrubeck/agate/compare/v3.3.4...v3.3.5
[3.3.4]: https://github.com/mbrubeck/agate/compare/v3.3.3...v3.3.4
[3.3.3]: https://github.com/mbrubeck/agate/compare/v3.3.2...v3.3.3
[3.3.2]: https://github.com/mbrubeck/agate/compare/v3.3.1...v3.3.2
[3.3.1]: https://github.com/mbrubeck/agate/compare/v3.3.0...v3.3.1 [3.3.1]: https://github.com/mbrubeck/agate/compare/v3.3.0...v3.3.1
[3.3.0]: https://github.com/mbrubeck/agate/compare/v3.2.4...v3.3.0 [3.3.0]: https://github.com/mbrubeck/agate/compare/v3.2.4...v3.3.0
[3.2.4]: https://github.com/mbrubeck/agate/compare/v3.2.3...v3.2.4 [3.2.4]: https://github.com/mbrubeck/agate/compare/v3.2.3...v3.2.4

664
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -1,6 +1,6 @@
[package] [package]
name = "agate" name = "agate"
version = "3.3.18" version = "3.3.20"
authors = ["Matt Brubeck <mbrubeck@limpet.net>", "Johann150 <johann+agate@qwertqwefsday.eu>"] authors = ["Matt Brubeck <mbrubeck@limpet.net>", "Johann150 <johann+agate@qwertqwefsday.eu>"]
description = "Very simple server for the Gemini hypertext protocol" description = "Very simple server for the Gemini hypertext protocol"
keywords = ["server", "gemini", "hypertext", "internet", "protocol"] keywords = ["server", "gemini", "hypertext", "internet", "protocol"]
@ -15,15 +15,15 @@ exclude = ["/tools", "/.github", "/Cross.toml", "/content", "/CODE_OF_CONDUCT.md
configparser = "3.0" configparser = "3.0"
env_logger = { version = "0.11", default-features = false, features = ["auto-color", "humantime"] } env_logger = { version = "0.11", default-features = false, features = ["auto-color", "humantime"] }
futures-util = "0.3" futures-util = "0.3"
getopts = "0.2.23" getopts = { version = "0.2.24", default-features = false }
glob = "0.3" glob = "0.3"
log = "0.4" log = "0.4"
mime_guess = "2.0" mime_guess = "2.0"
percent-encoding = "2.3" percent-encoding = "2.3"
rcgen = { version = "0.14.3", default-features = false, features = ["ring"] } rcgen = { version = "0.14.7", default-features = false, features = ["ring"] }
tokio-rustls = { version = "0.26.2", default-features = false, features = ["logging", "ring", "tls12"] } tokio-rustls = { version = "0.26.4", default-features = false, features = ["logging", "ring", "tls12"] }
tokio = { version = "1.47", features = ["fs", "io-util", "net", "rt-multi-thread", "sync"] } tokio = { version = "1.49", features = ["fs", "io-util", "net", "rt-multi-thread", "sync"] }
url = "2.5.4" url = "2.5.8"
[dev-dependencies] [dev-dependencies]
trotter = "1.0" trotter = "1.0"

View file

@ -195,6 +195,13 @@ Using a directory named just `.` causes undefined behaviour as this would have t
The files for a certificate/key pair have to be named `cert.der` and `key.der` respectively. The certificate has to be a X.509 certificate in a DER format file and has to include a subject alt name of the domain name. The private key has to be in DER format and must be either an RSA, ECDSA or Ed25519 key. The files for a certificate/key pair have to be named `cert.der` and `key.der` respectively. The certificate has to be a X.509 certificate in a DER format file and has to include a subject alt name of the domain name. The private key has to be in DER format and must be either an RSA, ECDSA or Ed25519 key.
If you have an existing certificate/key pair in PEM format, you can use these commands to convert them to the DER format:
```shell
openssl x509 -inform pem -in cert.pem -outform der -out cert.der
openssl rsa -inform pem -in privkey.pem -outform der -out key.der
```
## Logging ## Logging
All requests via TCP sockets will be logged using this format: All requests via TCP sockets will be logged using this format:

View file

@ -290,8 +290,9 @@ fn args() -> Result<Args> {
let hostname = Host::parse(&s)?; let hostname = Host::parse(&s)?;
// check if we have a certificate for that domain // check if we have a certificate for that domain
if let Host::Domain(ref domain) = hostname { if let Host::Domain(ref domain) = hostname
if !matches!(certs, Some(ref certs) if certs.has_domain(domain)) { && !matches!(certs, Some(ref certs) if certs.has_domain(domain))
{
log::info!("No certificate or key found for {s:?}, generating them."); log::info!("No certificate or key found for {s:?}, generating them.");
let mut cert_params = CertificateParams::new(vec![domain.clone()])?; let mut cert_params = CertificateParams::new(vec![domain.clone()])?;
@ -312,17 +313,15 @@ fn args() -> Result<Args> {
let cert = cert_params.self_signed(&key_pair)?; let cert = cert_params.self_signed(&key_pair)?;
// make sure the certificate directory exists // make sure the certificate directory exists
fs::create_dir(certs_path.join(domain))?; let cert_dir = certs_path.join(domain);
fs::create_dir(&cert_dir)?;
// write certificate data to disk // write certificate data to disk
let mut cert_file = File::create(certs_path.join(format!( let mut cert_file = File::create(cert_dir.join(certificates::CERT_FILE_NAME))?;
"{}/{}",
domain,
certificates::CERT_FILE_NAME
)))?;
cert_file.write_all(cert.der())?; cert_file.write_all(cert.der())?;
// write key data to disk // write key data to disk
let key_file_path = let key_file_path = cert_dir.join(certificates::KEY_FILE_NAME);
certs_path.join(format!("{}/{}", domain, certificates::KEY_FILE_NAME));
let mut key_file = File::create(&key_file_path)?; let mut key_file = File::create(&key_file_path)?;
#[cfg(unix)] #[cfg(unix)]
{ {
@ -339,7 +338,6 @@ fn args() -> Result<Args> {
reload_certs = true; reload_certs = true;
} }
}
hostnames.push(hostname); hostnames.push(hostname);
} }
@ -594,15 +592,15 @@ where
} }
// correct port // correct port
if let Some(expected_port) = self.local_port_check { if let Some(expected_port) = self.local_port_check
if let Some(port) = url.port() { && let Some(port) = url.port()
{
// Validate that the port in the URL is the same as for the stream this request // Validate that the port in the URL is the same as for the stream this request
// came in on. // came in on.
if port != expected_port { if port != expected_port {
return Err((PROXY_REQUEST_REFUSED, "Proxy request refused")); return Err((PROXY_REQUEST_REFUSED, "Proxy request refused"));
} }
} }
}
Ok(url) Ok(url)
} }
@ -659,8 +657,9 @@ where
} }
} }
if let Ok(metadata) = tokio::fs::metadata(&path).await { if let Ok(metadata) = tokio::fs::metadata(&path).await
if metadata.is_dir() { && metadata.is_dir()
{
if url.path().ends_with('/') || url.path().is_empty() { if url.path().ends_with('/') || url.path().is_empty() {
// if the path ends with a slash or the path is empty, the links will work the same // if the path ends with a slash or the path is empty, the links will work the same
// without a redirect // without a redirect
@ -678,7 +677,6 @@ where
return self.send_header(REDIRECT_PERMANENT, url.as_str()).await; return self.send_header(REDIRECT_PERMANENT, url.as_str()).await;
} }
} }
}
let data = self.metadata.lock().await.get(&path); let data = self.metadata.lock().await.get(&path);