Trinity Pointard
29910f2829
remove stabilized feature
3 years ago
Trinity Pointard
89ecb38026
allow exceptions that don't change http verbe
3 years ago
Trinity Pointard
4a72ea2ec7
Use constant time comparison for slice
Thanks @ProgVal for the tip
4 years ago
Trinity Pointard
2f4644f9fb
Use constants instead of raw int and run Clippy
4 years ago
Trinity Pointard
9eb7b3f98b
Remove dependencies to unmatained crats
Remove dependency csrf 0.3 as unmatained and can't compile on arm8
Add ring to do required cryptography
Remove dependency to rand as ring provid CPRNG
4 years ago
Trinity Pointard
717fad53cf
Allow post request for clients without session
4 years ago
dependabot[bot]
c64bad6470
Update rand requirement from ~0.5.2 to ~0.6.1
Updates the requirements on [rand](https://github.com/rust-random/rand ) to permit the latest version.
- [Release notes](https://github.com/rust-random/rand/releases )
- [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-random/rand/commits/0.6.1 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
4 years ago
Trinity Pointard
46a3a3bd48
Don't insert token when method is GET
Don't insert token when method is unspecified or different from POST
Run cargo clippy
4 years ago
fdb-hiroshima
e6ead8051c
Merge pull request #4 from fdb-hiroshima/plume
bump rocket version
4 years ago
Trinity Pointard
37c71dc7f7
Upgrade to rocket 0.4.0-rc.1
4 years ago
Trinity Pointard
5a95b8b98c
Add tests on csrf_proxy
Add a macro must_finish, and use it in csrf_proxy's tests, to allow
detection of infinite loop in parser
4 years ago
Trinity Pointard
2805ce5dba
Add benchmarks
4 years ago
Trinity Pointard
bb97ed018d
Minimise cookie creation
Create new cookies only when loading html content
4 years ago
Trinity Pointard
b326a9893a
Do a better management of cookies
Don't store a cookie for each different path visited
Don't add csrf cookies if there is no session
Remove csrf cookie if session get dropped
4 years ago
Trinity Pointard
5d23ba4c6c
Fix #3
4 years ago
Trinity Pointard
90a4aeca83
Fix possible assertion error on slice copy
4 years ago
Trinity Pointard
c852e554ea
Fix possible index out of range
4 years ago
fdb-hiroshima
6fc55d26f9
Merge pull request #1 from lthms/latest-rocket-4.0
Update to a more recent version of rocket and to nightly-2018-07-17
4 years ago
Thomas Letan
06e14f8349
Update to a more recent version of rocket and to nightly-2018-07-17
4 years ago
Trinity Pointard
2a1aa1e48d
Run cargo fmt
4 years ago
Trinity Pointard
15242489c4
Add test for CsrfFairing
Add dependancies required for tests
Fix encoding issue with some url encoders
4 years ago
Trinity Pointard
771b514a5a
Run cargo fmt
4 years ago
Trinity Pointard
1fe6947822
Remove some unreachable code
4 years ago
Trinity Pointard
483f3e91f3
Finish adding test to path.rs
4 years ago
Trinity Pointard
001773cacc
Add test and fix issues they revealed
Add test for truncated html
Fix issue where parser would loop on some invalid html
4 years ago
Trinity Pointard
f3ec5bd6dc
Run cargo fmt
4 years ago
Trinity Pointard
e16eb40fd9
Add test and fix issues they revealed
Add some tests
Fix issue when a buffer end at the wrong place, and prevent token from
being inserted
Correct comments and indentation
4 years ago
Trinity Pointard
896fcaf14b
Add support for multipart form
4 years ago
Trinity Pointard
0fbacab1bc
Add tests and fix parsing error
Add test for CsrfProxy
Fix errors new tests highlighted
4 years ago
Trinity Pointard
5309b7634a
Full rewrite of csrf_proxy
Full rewrite of csrf_proxy to make it more reliable
4 years ago
Trinity Pointard
91c5773d9f
Merge branch 'master' into plume
4 years ago
Trinity Pointard
ecf137c512
add test for MultiDyn segments of path
4 years ago
Trinity Pointard
8bd1ebcbbb
disable cargo clippy on Travis as it fail more often than none
4 years ago
Trinity Pointard
fe0c864f73
Add test for dynamic path and support for multi-segment dynamic part
4 years ago
Trinity Pointard
f6e9c29311
base plume branch on the same rocket as Plume-org/Plume
4 years ago
Trinity Pointard
452c390665
base master on rocket 0.3 (released)
4 years ago
Trinity Pointard
e39e3e8ca1
add test for static path
4 years ago
Trinity Pointard
baed6a2bbf
add first tests to try codecov.io
4 years ago
Trinity Pointard
c7eff190e0
make doc test work
4 years ago
Trinity Pointard
445fc537ef
add travis integration
4 years ago
Trinity Pointard
e6e967cc91
split lib.rs into smaller files
4 years ago
Trinity Pointard
13ca47ef73
Fix a bug on CsrfProxy
Fix a bug where CsrfProxy would read data that was already present in
read buffer, where it should consider it uninitialized
Reported by @gled-rs on Plume-org/Plume#96
4 years ago
Trinity Pointard
871b9ef2d6
Make code more idiomatic
Remove all clippy warnings to make code more idiomatic
4 years ago
Trinity Pointard
c1e75e49db
Fix links in documentation
4 years ago
Trinity Pointard
0a403f4825
Add comments
4 years ago
Trinity Pointard
acce8261c9
Add documentation and some functions on builder
4 years ago
Trinity Pointard
50947b8715
run cargo fmt
4 years ago
Trinity Pointard
80687a64a8
Fix issue with cookie creation
Fix issue where CsrfToken was setting cookieswas setting cookies properly, but pseudo-proxying would not
4 years ago
Trinity Pointard
bbabb7b19d
Initial commit
add a fairing for automatic verification and tag insertion
4 years ago