* feat: make methods in CliRunner public
* change: rename CliRunner to AppRunner
* fix: process being passed incorrectly to runCli
* feat: expose AppRunner.run for easily serving from JS apps
* change: only make run methods on AppRunner public
* feat: redis based locking mechanism
* fix: adapted to review and wrote unit tests
* fix: adapted to review(Woutermont)
* fix: adapted to review and expanded tests
* test: redlock integration tests
* test: corrected file name
* test: tests should run on CI now
* test: improved tests and minor changes according to review
* fix: forgot describeIf docker
* test: adapted to review
* test: Mock all redis dependencies
Co-authored-by: Joachim Van Herwegen <joachimvh@gmail.com>
* Fallback to X-Forwarded-* headers
This uses the first value from X-Forwarded-Host and
X-Forwarded-Proto if they're present and the standard Forwarded
header is not.
* Update parseForwarded to handle X-Forwarded-*
This updates the signature for parseForwarded to take in the headers
and handle the logic of falling back to X-Forwarded-* headers.
* Update src/util/HeaderUtil.ts
Co-authored-by: Ruben Verborgh <ruben@verborgh.org>
* Inline parseXForwarded helper
Additionally fixes a typo, updates a unit test, and removes a
typing that is no longer necessary.
* Tweak handling of X-Forwarded value checking and assignment
* Fix: terminology & consistency suggestions from review
Co-authored-by: Ruben Verborgh <ruben@verborgh.org>
Co-authored-by: Ruben Verborgh <ruben@verborgh.org>
Co-authored-by: Wouter Termont <woutermont@gmail.com>
* bug: error when unknown parameters are passed to the main executable
* bug: error on unknown paramters and adapted to review
* fix: test wont pass in ci
* Update src/init/CliRunner.ts
Co-authored-by: Ruben Verborgh <ruben@verborgh.org>
* fix: adapted to review
* fix: made CliRunner.run async
Co-authored-by: Arne Vandoorslaer <arne@digita.ai>
Co-authored-by: Ruben Verborgh <ruben@verborgh.org>
* feat: added cloneRepresentation function to ResourceUtil
* fix: adapted to review
* fix: adapted to review
Co-authored-by: Arne Vandoorslaer <arne@digita.ai>
* bug: correctly handle slug in POST request
* bug: disallow slashes in slug + modified tests
* fix: fixed tests to work with PUT instead of POST+slug
* fix: fixed tests failing in ci
* fix: adapted to reviews
* fix: adapted to review