Helmut K. C. Tessarek
4774de6652
refactor(server): use more specific HTTP status codes ( #262 )
...
* refactor(server): use more specific http status codes
* fix: clippy error - oops missed that one
* test(fixtures): add check for status code
2024-03-11 14:00:45 +01:00
Helmut K. C. Tessarek
4987cfe5e5
fix(upload): error on upload with the same filename ( #258 )
2024-03-08 14:47:13 +01:00
Orhun Parmaksız
c60a614258
chore(ci): switch to cargo-llvm-cov for code coverage ( #260 )
2024-03-08 14:17:42 +01:00
Helmut K. C. Tessarek
fa5105deab
test(upload): update the hash of the example file ( #254 )
...
changed at source
2024-03-06 05:57:59 +01:00
Jake Howard
dae00c42b5
feat(server): do path joins more safely ( #247 )
...
* Do path joins more safely
* Improve path cleaning and tests
* Lower-case error message
Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
* Correct handle potential errors in `get_path`
* Use `expect` in tests, rather than `unwrap`
* Correctly handle invalid upload path without panic
* Correctly handle filesystem create errors
* Use result rather than option to allow easier error handling
---------
Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2024-03-06 05:55:59 +01:00
Orhun Parmaksız
12f0e8f3a7
chore(server): gracefully exit when there is no config file found
2024-03-01 22:17:17 +03:00
Helmut K. C. Tessarek
db971e6434
feat(server): allow to override filename when using random_url ( #233 )
...
* feat(server): allow to override filename when using random_url
* docs(README): remove line from features
* refactor(header): make const private
2024-02-12 13:06:12 +01:00
Helmut K. C. Tessarek
8e6393c6f4
fix(server): return the correct file on multiple files with same name ( #234 )
...
* fix(server): file not found, even though on server and not expired
* test: rename test
2024-02-09 21:38:33 +01:00
Helmut K. C. Tessarek
e06c18279e
ci(shuttle): fix deployment ( #236 )
...
* ci(shuttle): fix deployment
* chore: add dummy file to trigger pipeline
* chore: remove dummy file to trigger pipeline
* ci(shuttle): remove dorny/paths-filter
2024-02-06 18:31:46 +01:00
Helmut K. C. Tessarek
48a3626c7d
fix(server): improve logging for deleted file ( #235 )
2024-01-31 21:25:04 +01:00
dependabot[bot]
8de2450931
chore(deps): bump serde from 1.0.195 to 1.0.196 ( #232 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.195 to 1.0.196.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.195...v1.0.196 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-29 15:04:10 +01:00
dependabot[bot]
2003abe8bd
chore(deps): bump dorny/paths-filter from 2 to 3 ( #231 )
...
Bumps [dorny/paths-filter](https://github.com/dorny/paths-filter ) from 2 to 3.
- [Release notes](https://github.com/dorny/paths-filter/releases )
- [Changelog](https://github.com/dorny/paths-filter/blob/master/CHANGELOG.md )
- [Commits](https://github.com/dorny/paths-filter/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: dorny/paths-filter
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-25 16:57:35 +01:00
dependabot[bot]
4703b26194
chore(deps): bump byte-unit from 5.1.3 to 5.1.4 ( #229 )
...
Bumps [byte-unit](https://github.com/magiclen/byte-unit ) from 5.1.3 to 5.1.4.
- [Commits](https://github.com/magiclen/byte-unit/compare/v5.1.3...v5.1.4 )
---
updated-dependencies:
- dependency-name: byte-unit
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-24 13:48:07 +01:00
dependabot[bot]
e383b6f426
chore(deps): bump regex from 1.10.2 to 1.10.3 ( #227 )
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.10.2 to 1.10.3.
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/1.10.2...1.10.3 )
---
updated-dependencies:
- dependency-name: regex
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-22 16:11:30 +01:00
dependabot[bot]
fa7304a5d0
chore(deps): bump actions/cache from 3 to 4 ( #226 )
...
Bumps [actions/cache](https://github.com/actions/cache ) from 3 to 4.
- [Release notes](https://github.com/actions/cache/releases )
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md )
- [Commits](https://github.com/actions/cache/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-18 16:59:37 +01:00
dependabot[bot]
90c0477edb
chore(deps): bump serde from 1.0.194 to 1.0.195 ( #221 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.194 to 1.0.195.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.194...v1.0.195 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-08 12:35:54 +01:00
dependabot[bot]
7f8428c75d
chore(deps): bump byte-unit from 5.1.2 to 5.1.3 ( #220 )
...
Bumps [byte-unit](https://github.com/magiclen/byte-unit ) from 5.1.2 to 5.1.3.
- [Commits](https://github.com/magiclen/byte-unit/compare/v5.1.2...v5.1.3 )
---
updated-dependencies:
- dependency-name: byte-unit
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-08 12:35:35 +01:00
dependabot[bot]
25a013266c
chore(deps): bump serde from 1.0.193 to 1.0.194 ( #219 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.193 to 1.0.194.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.193...v1.0.194 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-02 12:41:04 +01:00
Orhun Parmaksız
274bbd3307
fix(lints): apply clippy suggestions
2023-12-31 14:06:46 +03:00
dependabot[bot]
c9ba166865
chore(deps): bump awc from 3.2.0 to 3.3.0 ( #215 )
...
Bumps [awc](https://github.com/actix/actix-web ) from 3.2.0 to 3.3.0.
- [Release notes](https://github.com/actix/actix-web/releases )
- [Changelog](https://github.com/actix/actix-web/blob/master/CHANGES.md )
- [Commits](https://github.com/actix/actix-web/compare/awc-v3.2.0...awc-v3.3.0 )
---
updated-dependencies:
- dependency-name: awc
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-25 15:23:17 +01:00
dependabot[bot]
4af7970f48
chore(deps): bump futures-util from 0.3.29 to 0.3.30 ( #214 )
...
Bumps [futures-util](https://github.com/rust-lang/futures-rs ) from 0.3.29 to 0.3.30.
- [Release notes](https://github.com/rust-lang/futures-rs/releases )
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.29...0.3.30 )
---
updated-dependencies:
- dependency-name: futures-util
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-25 15:18:58 +01:00
dependabot[bot]
87a0ba21ed
chore(deps): bump actix-web from 4.4.0 to 4.4.1 ( #213 )
...
Bumps [actix-web](https://github.com/actix/actix-web ) from 4.4.0 to 4.4.1.
- [Release notes](https://github.com/actix/actix-web/releases )
- [Changelog](https://github.com/actix/actix-web/blob/master/CHANGES.md )
- [Commits](https://github.com/actix/actix-web/compare/web-v4.4.0...web-v4.4.1 )
---
updated-dependencies:
- dependency-name: actix-web
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-25 15:18:34 +01:00
Orhun Parmaksız
c8dd41549d
chore(release): prepare for v0.14.4
2023-12-20 22:52:27 +03:00
Helmut K. C. Tessarek
ec9b55f3e2
fix(auth): remove excessive warning and typo ( #210 )
2023-12-20 18:47:51 +01:00
dependabot[bot]
f905648866
chore(deps): bump tokio from 1.35.0 to 1.35.1 ( #208 )
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.35.0 to 1.35.1.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.35.0...tokio-1.35.1 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-20 12:57:53 +01:00
dependabot[bot]
cf21df8a7c
chore(deps): bump byte-unit from 5.0.4 to 5.1.2 ( #207 )
...
Bumps [byte-unit](https://github.com/magiclen/byte-unit ) from 5.0.4 to 5.1.2.
- [Commits](https://github.com/magiclen/byte-unit/compare/v5.0.4...v5.1.2 )
---
updated-dependencies:
- dependency-name: byte-unit
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-18 13:46:56 +01:00
dependabot[bot]
a806af9a41
chore(deps): bump byte-unit from 5.0.3 to 5.0.4 ( #206 )
...
Bumps [byte-unit](https://github.com/magiclen/byte-unit ) from 5.0.3 to 5.0.4.
- [Commits](https://github.com/magiclen/byte-unit/compare/v5.0.3...v5.0.4 )
---
updated-dependencies:
- dependency-name: byte-unit
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-15 15:35:55 +01:00
Orhun Parmaksız
f3962485df
chore(deps): bump shuttle dependencies
2023-12-13 20:40:50 +03:00
Orhun Parmaksız
d6e1968191
chore(changelog): update entries for v0.14.3
2023-12-12 21:31:26 +03:00
Orhun Parmaksız
e34f747761
chore(release): prepare for v0.14.3
2023-12-12 21:30:08 +03:00
Artem Medvedev
e21f99ac4a
refactor(server)!: cleanup authorization boilerplate ( #199 )
...
* refactor!: use `actix-web-grants` to protect endpoints
* fix: filter out blank strings
* doc: add documentation for a function
* fix: don't return body for not exposed endpoints
* test: add fixtures
* test: fix naming
* test: remove extra step in teardown
2023-12-12 19:21:29 +01:00
Artem Medvedev
b74e9ceeaf
docs(readme): explain behavior of unset `auth_tokens` and `delete_tokens` ( #202 )
...
* doc(readme): explain behavior of unset `auth_tokens` & `delete_tokens`
Just a clarification on how this works in the case of uninstalled tokens, for greater clarity and security
* docs(readme): update styling
* docs(readme): update grammar
---------
Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2023-12-11 19:19:18 +01:00
Artem Medvedev
c5c9c6d233
chore(fixtures): run fixtures on `macos` & `ubuntu` ( #201 )
...
* ci(fixtures): run fixtures on `macos` & `ubuntu`
In order to check the fixtures works on both OS
* fix: install coreutils for macos
* doc: add mention coreutils on `macOS`
* ci: fix
* ci: fix
* refactor(fixture): rename matrix.os.version to matrix.os.runner
---------
Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2023-12-11 19:16:25 +01:00
dependabot[bot]
d7c67e0350
chore(deps): bump tokio from 1.34.0 to 1.35.0 ( #203 )
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.34.0 to 1.35.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.34.0...tokio-1.35.0 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-11 13:46:46 +01:00
Artem Medvedev
adbd67a182
test(fixtures): support `fixtures` on `macOS` ( #200 )
...
* test: support fixtures for macOS
* chore: clarify the comment
Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
---------
Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2023-12-10 16:04:28 +01:00
Orhun Parmaksız
3e34206884
chore(deps): bump shuttle dependencies to 0.35.0
2023-12-09 22:41:20 +03:00
dependabot[bot]
1e9a3b4a71
chore(deps): bump ring from 0.17.6 to 0.17.7 ( #196 )
...
Bumps [ring](https://github.com/briansmith/ring ) from 0.17.6 to 0.17.7.
- [Commits](https://github.com/briansmith/ring/commits )
---
updated-dependencies:
- dependency-name: ring
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-06 19:07:16 +01:00
Orhun Parmaksız
d4b02eca91
fix(shuttle): fix Shuttle entrypoint
2023-12-05 15:22:10 +03:00
Orhun Parmaksız
0f377fc44c
chore(release): prepare for v0.14.2
2023-12-05 15:21:06 +03:00
Orhun Parmaksız
62948abdc0
docs(release): add release instructions
2023-12-05 15:17:55 +03:00
Orhun Parmaksız
bb33f437ba
chore(deps): upgrade transitive dependencies
2023-12-05 15:14:08 +03:00
Orhun Parmaksız
ef08b9e838
refactor(tracing): use macros from tracing crate
2023-12-05 15:12:48 +03:00
dependabot[bot]
a291307bec
chore(deps): bump byte-unit from 4.0.19 to 5.0.3 ( #192 )
...
* chore(deps): bump byte-unit from 4.0.19 to 5.0.3
Bumps [byte-unit](https://github.com/magiclen/byte-unit ) from 4.0.19 to 5.0.3.
- [Commits](https://github.com/magiclen/byte-unit/compare/v4.0.19...v5.0.3 )
---
updated-dependencies:
- dependency-name: byte-unit
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
* fix(deps): update codebase accordingly to the new version of byte-unit
* fix(fixtures): use more precise byte comparison
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2023-12-05 13:08:22 +01:00
Orhun Parmaksız
3c3a4b58ac
chore(example): add auth token handling to HTML form example ( #183 )
2023-12-03 21:37:00 +03:00
Orhun Parmaksız
fd75750a43
chore(deps): bump shuttle dependencies to 0.34.1
2023-11-30 00:47:36 +03:00
Orhun Parmaksız
339963f2bd
refactor(ci): fix multiline if statement
2023-11-30 00:46:54 +03:00
Orhun Parmaksız
ed9f6aa586
chore(shuttle): deploy when Shuttle dependency is updated
2023-11-30 00:44:47 +03:00
dependabot[bot]
7c9f443943
chore(deps): bump ring from 0.17.5 to 0.17.6 ( #195 )
...
Bumps [ring](https://github.com/briansmith/ring ) from 0.17.5 to 0.17.6.
- [Commits](https://github.com/briansmith/ring/commits )
---
updated-dependencies:
- dependency-name: ring
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-29 22:36:59 +01:00
dependabot[bot]
50fad6e333
chore(deps): bump lazy-regex from 3.0.2 to 3.1.0 ( #182 )
...
Bumps [lazy-regex](https://github.com/Canop/lazy-regex ) from 3.0.2 to 3.1.0.
- [Changelog](https://github.com/Canop/lazy-regex/blob/main/CHANGELOG.md )
- [Commits](https://github.com/Canop/lazy-regex/commits )
---
updated-dependencies:
- dependency-name: lazy-regex
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-24 23:05:34 +01:00
dependabot[bot]
cc6815d783
chore(deps): bump config from 0.13.3 to 0.13.4 ( #188 )
...
Bumps [config](https://github.com/mehcode/config-rs ) from 0.13.3 to 0.13.4.
- [Changelog](https://github.com/mehcode/config-rs/blob/v0.13.4/CHANGELOG.md )
- [Commits](https://github.com/mehcode/config-rs/compare/0.13.3...v0.13.4 )
---
updated-dependencies:
- dependency-name: config
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-24 23:05:17 +01:00