Commits on Source (49)
-
Travis Ralston authored
-
Travis Ralston authored
* Add option to redirect even when media is in the cache * Ensure we still use the cache when redirection isn't possible
-
Travis Ralston authored
-
Travis Ralston authored
* Fix 0x0 errors on non-dimensional thumbnails * Remove unused animated return * changelog
-
turt2live authored
-
dependabot[bot] authored
Bumps google.golang.org/protobuf from 1.32.0 to 1.33.0. --- updated-dependencies: - dependency-name: google.golang.org/protobuf dependency-type: indirect ... Signed-off-by:
dependabot[bot] <support@github.com> Co-authored-by:
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
turt2live authored
-
turt2live authored
-
Travis Ralston authored
-
turt2live authored
-
Travis Ralston authored
`m.origin <> ANY(array[]:text[])` doesn't seem to work (or matches zero records). We need to check if the array is empty using `cardinality`. In testing, `array_length` didn't work, and since we're only ever using a one dimensional array, cardinality is fine. Fixes https://github.com/t2bot/matrix-media-repo/issues/564
-
dependabot[bot] authored
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 25.0.4+incompatible to 25.0.5+incompatible. - [Release notes](https://github.com/docker/docker/releases) - [Commits](https://github.com/docker/docker/compare/v25.0.4...v25.0.5 ) --- updated-dependencies: - dependency-name: github.com/docker/docker dependency-type: indirect ... Signed-off-by:
dependabot[bot] <support@github.com> Co-authored-by:
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
Travis Ralston authored
* Support `HEAD` on `/download`, per MSC4120 https://github.com/matrix-org/matrix-spec-proposals/pull/4120 * Changelog
-
dependabot[bot] authored
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.22.0 to 0.23.0. - [Commits](https://github.com/golang/net/compare/v0.22.0...v0.23.0 ) --- updated-dependencies: - dependency-name: golang.org/x/net dependency-type: direct:production ... Signed-off-by:
dependabot[bot] <support@github.com> Co-authored-by:
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
turt2live authored
-
turt2live authored
-
Travis Ralston authored
-
Travis Ralston authored
* Use consistent thumbnail extensions for common media types * changelog
-
Travis Ralston authored
-
Travis Ralston authored
-
Martin Weinelt authored
* Fix directory permissions in import_to_synapse The directory permissions 0655 map to rw-r-x-rx, which excludes the owner from accessing created directories, which the creation of directories in the media store. * changelog --------- Co-authored-by:
Martin Weinelt <hexa@helix.lossy.network> Co-authored-by:
Travis Ralston <travis@t2bot.io>
-
Travis Ralston authored
* Ensure thumbnail readers are cleaned up/read upon error * Changelog
-
Travis Ralston authored
* Use a leaky bucket algorithm to limit download requests * changelog
-
dependabot[bot] authored
Bumps [golang.org/x/image](https://github.com/golang/image) from 0.15.0 to 0.18.0. - [Commits](https://github.com/golang/image/compare/v0.15.0...v0.18.0 ) --- updated-dependencies: - dependency-name: golang.org/x/image dependency-type: direct:production ... Signed-off-by:
dependabot[bot] <support@github.com> Co-authored-by:
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
Travis Ralston authored
* Add support for MSC3916 * Add changelog * Add tests for preview_url and config authenticated endpoints * Add placeholder tests for downloads and thumbnails * Test X-Matrix auth header stuff * Validate signing keys more correctly * Add early documentation for what this setup will look like * Fix imports * Update tests * Add resolvematrix.dev tests * Fix URL preview test * Support receiving `/versions` and enabling MSC3916 support * Remove placeholder docs * Make outbound federation requests using MSC3916 * Validate X-Matrix destination correctly * Factor out signing key generation * Allow overriding the auth header in tests * Print signing key path when printing domains * Configure test MMR instances with a signing key * Allow lazy ServeFile implementations * Add federation download test * Re-add merge conflicts in changelog * Support http-only federation for tests * Strip Go-added URI segments * Fix test shutdown * Remove unused test * Enable failing tests * Ensure signing keys exist inside container * Fix signing key alignment between dependencies * Ensure signing key information is carried into the config object * Generally treat homeserver config a bite more safely * Support and use new 3916v2 federation download URL * Fix signing key permissions? * Fix routing * Update redirect-supporting behaviour * Support redirects * Finish tests * Mark test function as deprecated to discourage use * Avoid testcontainers tests from overwriting the config concurrently. * host.docker.internal doesn't exist on linux * Temporarily disable upload tests * Support federation thumbnails again * Fix tests for auth header * Switch to stable endpoints * Maybe use the correct stable endpoint too * Revert "Temporarily disable upload tests" This reverts commit e21fa0135b8fa880af7bbb7690e147a12946c28e. * Try fixing tests * Hardcode `host.docker.internal` again * Fix redirect behaviour on federation * Move endpoints to correct package * Maybe remove the dev code
-
turt2live authored
-
turt2live authored
-
Travis Ralston authored
-
Travis Ralston authored
-
Travis Ralston authored
-
Travis Ralston authored
* Ignore empty lines in Synapse signing keys * changelog
-
turt2live authored
-
turt2live authored
-
Travis Ralston authored
-
Travis Ralston authored
-
Travis Ralston authored
* Log errors from remotes * Serialize the content * Try nil content * Process `content` more safely
-
turt2live authored
-
Travis Ralston authored
-
Travis Ralston authored
-
Travis Ralston authored
-
Travis Ralston authored
-
Travis Ralston authored
-
Travis Ralston authored
-
Travis Ralston authored
-
Travis Ralston authored
* Support freezing media on the unauthenticated endpoints * changelog
-
turt2live authored
-
Travis Ralston authored
-
Travis Ralston authored
Showing
- .github/workflows/main.yml 1 addition, 1 deletion.github/workflows/main.yml
- CHANGELOG.md 50 additions, 3 deletionsCHANGELOG.md
- api/_apimeta/auth.go 13 additions, 0 deletionsapi/_apimeta/auth.go
- api/_auth_cache/auth_cache.go 1 addition, 1 deletionapi/_auth_cache/auth_cache.go
- api/_routers/97-require-server-auth.go 45 additions, 0 deletionsapi/_routers/97-require-server-auth.go
- api/_routers/98-use-rcontext.go 24 additions, 18 deletionsapi/_routers/98-use-rcontext.go
- api/custom/federation.go 4 additions, 1 deletionapi/custom/federation.go
- api/custom/purge.go 3 additions, 3 deletionsapi/custom/purge.go
- api/r0/download.go 34 additions, 9 deletionsapi/r0/download.go
- api/r0/thumbnail.go 25 additions, 8 deletionsapi/r0/thumbnail.go
- api/r0/versions.go 36 additions, 0 deletionsapi/r0/versions.go
- api/routes.go 22 additions, 6 deletionsapi/routes.go
- api/v1/download.go 63 additions, 0 deletionsapi/v1/download.go
- api/v1/thumbnail.go 63 additions, 0 deletionsapi/v1/thumbnail.go
- api/webserver.go 3 additions, 14 deletionsapi/webserver.go
- archival/entity_export.go 1 addition, 0 deletionsarchival/entity_export.go
- assets/providers.json 225 additions, 11 deletionsassets/providers.json
- cmd/homeserver_offline_exporters/import_to_synapse/main.go 8 additions, 2 deletionscmd/homeserver_offline_exporters/import_to_synapse/main.go
- cmd/utilities/generate_signing_key/main.go 1 addition, 37 deletionscmd/utilities/generate_signing_key/main.go
- cmd/workers/media_repo/reloads.go 36 additions, 0 deletionscmd/workers/media_repo/reloads.go
api/_routers/97-require-server-auth.go
0 → 100644
api/r0/versions.go
0 → 100644
api/v1/download.go
0 → 100644
api/v1/thumbnail.go
0 → 100644