Code Monkey home page Code Monkey logo

conduit-cookie's People

Contributors

alexcrichton avatar carols10cents avatar johntitor avatar jtgeibel avatar ordian avatar renovate-bot avatar renovate[bot] avatar sgrif avatar steveklabnik avatar turbo87 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

conduit-cookie's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Other Branches

These updates are pending. To force PRs open, click the checkbox below.

  • Lock file maintenance

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Ignored or Blocked

These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.

Detected dependencies

cargo
Cargo.toml
  • base64 0.13
  • conduit 0.10.0
  • conduit-middleware 0.10.0
  • cookie 0.16.0
  • conduit-test 0.10.0
github-actions
.github/workflows/ci.yml
  • actions/checkout v3
  • Swatinem/rust-cache v2.0.0
  • actions/checkout v3
  • Swatinem/rust-cache v2.0.0
  • actions/checkout v3
  • Swatinem/rust-cache v2.0.0
  • actions/checkout v3
  • Swatinem/rust-cache v2.0.0

  • Check this box to trigger a request for Renovate to run again on this repository

Add expiration as part of signed data and enforce it

In #14, @jtgeibel added a Max-Age to the Set-Cookie header, so browsers will expire a cookie if it isn't refreshed within 90 days. However, if an attacker captures a copy of a cookie, it's still valid indefinitely. It would be useful to embed an expiration date in the signed cookie so that the server knows to reject a cookie that should have been expired by now. This would limit the impact of a compromised account.

Only set cookies in the response if the session data has changed

This will help resolve an issue observed in production crates.io. My proposal is to change session() to return a shared reference, and add a session_mut() providing mutable access. Calling session_mut() will set a a possibly_modified: bool flag. If no call to session_mut() has been made, then the session has not been modified and it is not necessary to add the Set-Cookie header to the response.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.