Skip to content

core: bump tower-http from 0.6.11 to 0.7.0 - #23307

Merged
rissson merged 1 commit into
mainfrom
dependabot/cargo/tower-http-0.7.0
Jun 23, 2026
Merged

rissson merged 1 commit into
mainfrom
dependabot/cargo/tower-http-0.7.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jun 23, 2026

Copy link
Copy Markdown
Contributor

Bumps tower-http from 0.6.11 to 0.7.0.

Release notes

Sourced from tower-http's releases.

tower-http-0.7.0

Changes since 0.6.11

Added

  • csrf: add cross-site request forgery (CSRF) protection middleware, porting the cross-origin protection scheme introduced in Go 1.25 (#699)

    use tower::ServiceBuilder;
    use tower_http::csrf::CsrfLayer;
    // Rejects cross-origin state-changing requests using Sec-Fetch-Site,
    // an Origin allow-list, and an Origin/Host fallback. No per-request
    // token state required.
    let layer = CsrfLayer::new().add_trusted_origin("https://example.com")?;
    let service = ServiceBuilder::new().layer(layer).service_fn(handler);

  • timeout: add DeadlineBody for non-resetting body timeouts, applied via the new RequestBodyDeadlineLayer and ResponseBodyDeadlineLayer (#688)

    Unlike TimeoutBody, which resets its deadline on every frame, DeadlineBody caps the total time of a body transfer. A slow client trickling one byte at a time never trips an idle timeout but will trip a deadline.

    use std::time::Duration;
    use tower::ServiceBuilder;
    use tower_http::timeout::RequestBodyDeadlineLayer;
    // Abort the request body transfer after 30s total, regardless of how
    // frequently data arrives.
    let service = ServiceBuilder::new()
    .layer(RequestBodyDeadlineLayer::new(Duration::from_secs(30)))
    .service_fn(handler);

  • fs: add strong ETag support to ServeDir, including If-Match and If-None-Match precondition handling per RFC 9110. 304 Not Modified responses now carry the ETag and Last-Modified validators (#691)

  • fs: add a Backend trait to make ServeDir work with non-filesystem sources (e.g. embedded assets or object storage). The default TokioBackend preserves existing behavior. Use ServeDir::with_backend() to plug in custom implementations (#684)

    use tower_http::services::fs::ServeDir;
    // MyBackend implements tower_http::services::fs::Backend.
    // The default ServeDir::new() continues to use TokioBackend (local FS).
    let service = ServeDir::with_backend("assets", MyBackend::new());

  • fs: add html_as_default_extension option to ServeDir, appending .html when the request path has no extension (#519)

  • fs: add redirect_path_prefix option to ServeDir, prepending a prefix on trailing-slash redirects so the service can be mounted under a sub-path (#486)

  • validate-request: add ValidateRequestHeaderLayer::has_header_value() to reject requests when a header does not have an expected value (#360)

  • body: UnsyncBoxBody::new() constructor and From<ServeFileSystemResponseBody> conversion to avoid double-boxing when combining ServeDir responses with other body types (#537)

  • limit: implement Default for limit::ResponseBody when the wrapped body also implements Default (#679)

Changed

... (truncated)

Commits
  • b194fcf v0.7.0
  • af828a6 feat(follow_redirect)!: preserve request extensions across redirects (#706)
  • 8cb8d99 feat(ValidateRequestHeaderLayer): add has_header("...").with_value("...") fun...
  • 3b56d2d feat!: Add configurable Backend trait for ServeDir, bump MSRV 1.65 (#684)
  • 8508716 Add redirect_path_prefix option (#486)
  • 56327b2 Add Windows drive-prefix path regression test (#705)
  • 54c6db8 feat(compression)!: upgrade SizeAbove threshold from u16 to u64 (#704)
  • 68cd6d8 Add DeadlineBody for non-resetting body timeouts (#688)
  • fa8a98c feat(fs): add strong ETag support to ServeDir (#691)
  • 36d2205 fix: Make SetMultiple*Header Clone for !Clone http bodies (#703)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [tower-http](https://github.com/tower-rs/tower-http) from 0.6.11 to 0.7.0.
- [Release notes](https://github.com/tower-rs/tower-http/releases)
- [Commits](tower-rs/tower-http@tower-http-0.6.11...tower-http-0.7.0)

---
updated-dependencies:
- dependency-name: tower-http
  dependency-version: 0.7.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Jun 23, 2026
@dependabot
dependabot Bot requested a review from a team as a code owner June 23, 2026 04:11
@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Jun 23, 2026
@codecov

codecov Bot commented Jun 23, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.22%. Comparing base (0bd9f8e) to head (ec8eeef).
⚠️ Report is 13 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #23307      +/-   ##
==========================================
- Coverage   93.27%   93.22%   -0.06%     
==========================================
  Files        1036     1036              
  Lines       60421    60421              
  Branches      400      400              
==========================================
- Hits        56359    56325      -34     
- Misses       4062     4096      +34     
Flag Coverage Δ
conformance 36.41% <ø> (+<0.01%) ⬆️
e2e 41.65% <ø> (+<0.01%) ⬆️
integration 32.38% <ø> (-0.49%) ⬇️
rust 0.00% <ø> (ø)
unit 92.21% <ø> (-0.01%) ⬇️
unit-migrate 92.23% <ø> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@netlify

netlify Bot commented Jun 23, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit ec8eeef
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6a3a077ffc3dcf00081fbea9
😎 Deploy Preview https://deploy-preview-23307--authentik-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@rissson
rissson enabled auto-merge (squash) June 23, 2026 13:15
@rissson
rissson merged commit 9c7c345 into main Jun 23, 2026
160 of 162 checks passed
@rissson
rissson deleted the dependabot/cargo/tower-http-0.7.0 branch June 23, 2026 13:42
kensternberg-authentik added a commit that referenced this pull request Jun 24, 2026
* main: (21 commits)
  tests: add security regression tests for OAuth JWT-bearer and flow session handling (#23190)
  website/integrations: Jellyfin: cleanup (#23293)
  website/integrations: Zipline: cleanup (#23274)
  website/integrations: update rabbitmq scopes (#23314)
  core: bump rustls from 0.23.40 to 0.23.41 (#23305)
  website/integrations: Emby: cleanup (#23296)
  core: bump tower-http from 0.6.11 to 0.7.0 (#23307)
  core: bump pytest from 9.1.0 to 9.1.1 (#23303)
  core: bump github.com/go-openapi/runtime from 0.32.3 to 0.32.4 (#23298)
  core: bump goauthentik/fips-python from `cbec346` to `a0f882f` in /lifecycle/container (#23302)
  core: bump pytest-github-actions-annotate-failures from 0.4.1 to 0.4.2 (#23304)
  ci: bump int128/docker-manifest-create-action from 2.23.0 to 2.24.0 (#23306)
  ci: bump taiki-e/install-action from 2.82.0 to 2.82.1 in /.github/actions/setup (#23308)
  website/integrations: Immich: cleanup (#23295)
  website/integrations: FreshRSS: cleanup (#23294)
  website/docs: remove colons from release notes (#23311)
  website/integrations: Chronograf: cleanup (#23275)
  website/integrations: Miniflux: cleanup (#23290)
  website/integrations: Wallos: cleanup (#23276)
  website/integrations: Beszel: cleanup (#23277)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant