* 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
The library handles some edge cases we didn't yet.
The GuardedStream was also updated to ignore error listeners
already attached to the stream (since pump adds internal listeners).
In case the Accept header was empty and the store returned an internal/quads
resource, our mechanism to prevent internal data from being returned
was ignored.