Umputun
307e69e5c1
Bump dependencies
...
- chroma/v2: v2.20.0 → v2.21.1
- go-pkgz/auth/v2: v2.1.0 → v2.1.1
- go-pkgz/rest: v1.20.4 → v1.20.6
- golang.org/x/* packages to latest
Also exclude "meaningless package names" revive warning in linter config.
2025-12-24 01:48:14 -06:00
Dmitry Verkhoturov and Umputun
d5b07d7670
Fix WriteHeader + RenderJSON causing wrong Content-Type header
...
Replace WriteHeader() + RenderJSON() pattern with EncodeJSON() which
properly sets Content-Type header before writing status code. The
previous pattern caused Content-Type to default to text/plain instead
of application/json, breaking frontend JSON parsing.
Fixes #1979
2025-12-16 13:01:19 -06:00
Dmitry Verkhoturov and Umputun
bc612ddf81
Remove redundant frame ancestors log from middleware
...
The log message was printed on every request when allowed ancestors
were configured, creating unnecessary noise in the logs.
2025-12-04 11:15:06 -06:00
Dmitry Verkhoturov and Umputun
658bf307b1
Add mailto: to CSP frame-src directive
...
Allow mailto links on the deleteme page to work without being blocked
by Content Security Policy.
2025-12-04 11:13:50 -06:00
d01b738741
Implement function to prune string keeping HTML closing tags ( #1870 )
...
* Implement function to prune string keeping HTML closing tags
Fixes #1587
* change const name
remove unneeded comment
* move pruneHTML to separated file
* move const back to telegram.go
* Add unit tests for string array manipulation and HTML pruning
Introduce comprehensive test cases for stringArr methods (Push, Pop, Unshift, Shift, String) to ensure correct behavior and state management. Additionally, add tests for HTML pruning functions (pruneHTML, pruneStringToWord) to validate handling of length constraints and formatting scenarios.
* Improve behavior
* Fix pruneHTML to count visible text only, add parent text pruning
- Fix bug where HTML tags were counted toward the character limit
instead of only visible text content
- Add pruning for parent comment text in Telegram notifications
- Simplify pruneStringToWord using strings.LastIndex
- Remove unused stringArr type and its tests
- Consolidate and simplify test cases
---------
Co-authored-by: Umputun <umputun@gmail.com >
Co-authored-by: Dmitry Verkhoturov <paskal.07@gmail.com >
2025-12-04 11:11:10 -06:00
Dmitry Verkhoturov and GitHub
564e8ff316
Update go dependencies ( #1972 )
2025-12-03 19:47:01 -06:00
dependabot[bot] and Umputun
6d8a0c783b
Bump the go-modules-updates group across 1 directory with 11 updates
...
Bumps the go-modules-updates group with 11 updates in the /backend directory:
| Package | From | To |
| --- | --- | --- |
| [github.com/PuerkitoBio/goquery](https://github.com/PuerkitoBio/goquery ) | `1.10.2` | `1.11.0` |
| [github.com/alecthomas/chroma/v2](https://github.com/alecthomas/chroma ) | `2.15.0` | `2.20.0` |
| [github.com/go-chi/chi/v5](https://github.com/go-chi/chi ) | `5.2.1` | `5.2.3` |
| [github.com/go-chi/cors](https://github.com/go-chi/cors ) | `1.2.1` | `1.2.2` |
| [github.com/go-pkgz/jrpc](https://github.com/go-pkgz/jrpc ) | `0.3.1` | `0.4.0` |
| [github.com/go-pkgz/lgr](https://github.com/go-pkgz/lgr ) | `0.12.0` | `0.12.1` |
| [github.com/go-pkgz/rest](https://github.com/go-pkgz/rest ) | `1.20.3` | `1.20.4` |
| [github.com/golang-jwt/jwt/v5](https://github.com/golang-jwt/jwt ) | `5.2.2` | `5.3.0` |
| [github.com/stretchr/testify](https://github.com/stretchr/testify ) | `1.10.0` | `1.11.1` |
| [go.etcd.io/bbolt](https://github.com/etcd-io/bbolt ) | `1.4.0` | `1.4.3` |
| [golang.org/x/image](https://github.com/golang/image ) | `0.26.0` | `0.33.0` |
Updates `github.com/PuerkitoBio/goquery` from 1.10.2 to 1.11.0
- [Release notes](https://github.com/PuerkitoBio/goquery/releases )
- [Commits](https://github.com/PuerkitoBio/goquery/compare/v1.10.2...v1.11.0 )
Updates `github.com/alecthomas/chroma/v2` from 2.15.0 to 2.20.0
- [Release notes](https://github.com/alecthomas/chroma/releases )
- [Commits](https://github.com/alecthomas/chroma/compare/v2.15.0...v2.20.0 )
Updates `github.com/go-chi/chi/v5` from 5.2.1 to 5.2.3
- [Release notes](https://github.com/go-chi/chi/releases )
- [Changelog](https://github.com/go-chi/chi/blob/master/CHANGELOG.md )
- [Commits](https://github.com/go-chi/chi/compare/v5.2.1...v5.2.3 )
Updates `github.com/go-chi/cors` from 1.2.1 to 1.2.2
- [Release notes](https://github.com/go-chi/cors/releases )
- [Commits](https://github.com/go-chi/cors/compare/v1.2.1...v1.2.2 )
Updates `github.com/go-pkgz/jrpc` from 0.3.1 to 0.4.0
- [Release notes](https://github.com/go-pkgz/jrpc/releases )
- [Commits](https://github.com/go-pkgz/jrpc/compare/v0.3.1...v0.4.0 )
Updates `github.com/go-pkgz/lgr` from 0.12.0 to 0.12.1
- [Release notes](https://github.com/go-pkgz/lgr/releases )
- [Commits](https://github.com/go-pkgz/lgr/compare/v0.12.0...v0.12.1 )
Updates `github.com/go-pkgz/rest` from 1.20.3 to 1.20.4
- [Release notes](https://github.com/go-pkgz/rest/releases )
- [Commits](https://github.com/go-pkgz/rest/compare/v1.20.3...v1.20.4 )
Updates `github.com/golang-jwt/jwt/v5` from 5.2.2 to 5.3.0
- [Release notes](https://github.com/golang-jwt/jwt/releases )
- [Commits](https://github.com/golang-jwt/jwt/compare/v5.2.2...v5.3.0 )
Updates `github.com/stretchr/testify` from 1.10.0 to 1.11.1
- [Release notes](https://github.com/stretchr/testify/releases )
- [Commits](https://github.com/stretchr/testify/compare/v1.10.0...v1.11.1 )
Updates `go.etcd.io/bbolt` from 1.4.0 to 1.4.3
- [Release notes](https://github.com/etcd-io/bbolt/releases )
- [Commits](https://github.com/etcd-io/bbolt/compare/v1.4.0...v1.4.3 )
Updates `golang.org/x/image` from 0.26.0 to 0.33.0
- [Commits](https://github.com/golang/image/compare/v0.26.0...v0.33.0 )
---
updated-dependencies:
- dependency-name: github.com/PuerkitoBio/goquery
dependency-version: 1.11.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: go-modules-updates
- dependency-name: github.com/alecthomas/chroma/v2
dependency-version: 2.20.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: go-modules-updates
- dependency-name: github.com/go-chi/chi/v5
dependency-version: 5.2.3
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: go-modules-updates
- dependency-name: github.com/go-chi/cors
dependency-version: 1.2.2
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: go-modules-updates
- dependency-name: github.com/go-pkgz/jrpc
dependency-version: 0.4.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: go-modules-updates
- dependency-name: github.com/go-pkgz/lgr
dependency-version: 0.12.1
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: go-modules-updates
- dependency-name: github.com/go-pkgz/rest
dependency-version: 1.20.4
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: go-modules-updates
- dependency-name: github.com/golang-jwt/jwt/v5
dependency-version: 5.3.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: go-modules-updates
- dependency-name: github.com/stretchr/testify
dependency-version: 1.11.1
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: go-modules-updates
- dependency-name: go.etcd.io/bbolt
dependency-version: 1.4.3
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: go-modules-updates
- dependency-name: golang.org/x/image
dependency-version: 0.33.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: go-modules-updates
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-12-03 18:17:46 -06:00
dependabot[bot] and Umputun
588ec169ff
Bump golang.org/x/crypto from 0.37.0 to 0.45.0 in /backend
...
Bumps [golang.org/x/crypto](https://github.com/golang/crypto ) from 0.37.0 to 0.45.0.
- [Commits](https://github.com/golang/crypto/compare/v0.37.0...v0.45.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/crypto
dependency-version: 0.45.0
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-12-03 11:43:03 -06:00
dependabot[bot] and Umputun
d9efa765d1
Bump golang.org/x/crypto in /backend/_example/memory_store
...
Bumps [golang.org/x/crypto](https://github.com/golang/crypto ) from 0.37.0 to 0.45.0.
- [Commits](https://github.com/golang/crypto/compare/v0.37.0...v0.45.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/crypto
dependency-version: 0.45.0
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-12-03 11:42:34 -06:00
Dmitry Verkhoturov and GitHub
baf0db1947
Get rid of github.com/go-chi/render use ( #1919 )
...
Replace go-chi/render with go-pkgz/rest for JSON responses and custom
helpers for HTML/plain text responses.
Key changes:
- Replace render.JSON/render.Status with rest.RenderJSON and explicit
w.WriteHeader() calls
- Replace render.DecodeJSON with json.NewDecoder().Decode()
- Add SendErrorJSON helper that sets Content-Type header before
WriteHeader (required since rest.RenderJSON can't set headers after
WriteHeader is called)
- Add HTMLResponse and PlainTextResponse helpers
Fix export double-execution in migrator.go:
The original code called Export twice - once to io.Discard to check for
errors, then again to actually write. This was wasteful and had a race
condition risk. Now file mode buffers to memory first for atomic
success/failure, while stream mode writes directly with proper error
handling.
2025-12-03 11:41:29 -06:00
Umputun and GitHub
34ea4c3e83
Migrate golangci-lint to v2 and update Go version ( #1965 )
...
* migrate golangci-lint to v2 and update go version
- migrated .golangci.yml to version 2 format
- updated go.mod from 1.23.0 to 1.24
- removed deprecated run.timeout configuration
* update to go 1.25 and baseimage v1.17.0
- updated go.mod to go 1.25
- updated Dockerfile to use buildgo-v1.17.0 (go 1.25.0)
- updated Dockerfile to use app-v1.17.0
* fix flaky tests with proper synchronization
- use assert.Eventually instead of fixed sleep in TestService_Many
- wait for webhook before shutdown in TestMain_WithWebhook
- fixes race conditions exposed by Go 1.25 scheduler changes
* fix data race in MockDest.closed field
- add IsClosed() method with proper locking
- add locking to String() method
- use IsClosed() in tests instead of direct field access
- fixes race condition detected by go test -race
* update example go.mod to go 1.25
* update golangci-lint to v2.6.0 for go 1.25 support
* fix linter issue and update CLAUDE.md
- merge conditional assignment in example accessor/data.go
- add reminder in CLAUDE.md to always test and lint examples before committing
* update example Dockerfile to baseimage v1.17.0 for go 1.25
2025-11-02 14:17:39 -06:00
Dmitry Verkhoturov
ddb490bbc1
Fix login persistence with AUTH_SEND_JWT_HEADER enabled
...
With AUTH_SEND_JWT_HEADER=true, frontend now properly handles JWT authentication:
- Store JWT token in client-side cookie named 'JWT'
- Extract and store XSRF token from JWT payload
- Set Secure flag automatically when on HTTPS connection
- Update documentation to clarify this behavior
This fixes an issue where login state would be lost after page reload
when using header-based JWT authentication.
2025-04-29 23:45:55 +01:00
Dmitry Verkhoturov
fd0799384f
Update go-pkgz, system modules
...
This brings stricter check for auth provider names, slog support.
2025-04-29 08:24:53 +01:00
Umputun and GitHub
61dbf6b1f2
Merge pull request #1915 from umputun/dependabot/go_modules/backend/github.com/redis/go-redis/v9-9.7.3
...
Bump github.com/redis/go-redis/v9 from 9.7.0 to 9.7.3 in /backend
2025-03-24 21:51:56 -05:00
Umputun and GitHub
a3309516c3
Merge pull request #1916 from umputun/dependabot/go_modules/backend/github.com/golang-jwt/jwt/v5-5.2.2
...
Bump github.com/golang-jwt/jwt/v5 from 5.2.1 to 5.2.2 in /backend
2025-03-24 21:50:33 -05:00
Umputun and GitHub
5e30dc86e1
Merge pull request #1917 from umputun/paskal/golangci_lint_v2
...
Automatic fix of errors reported by golangci-lint v2
2025-03-24 21:50:20 -05:00
dependabot[bot] and GitHub
bbcba5487e
Bump github.com/redis/go-redis/v9 from 9.7.0 to 9.7.3 in /backend
...
Bumps [github.com/redis/go-redis/v9](https://github.com/redis/go-redis ) from 9.7.0 to 9.7.3.
- [Release notes](https://github.com/redis/go-redis/releases )
- [Changelog](https://github.com/redis/go-redis/blob/master/CHANGELOG.md )
- [Commits](https://github.com/redis/go-redis/compare/v9.7.0...v9.7.3 )
---
updated-dependencies:
- dependency-name: github.com/redis/go-redis/v9
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-03-25 02:49:28 +00:00
dependabot[bot] and Dmitry V
89221ff2bc
Bump the go-modules-updates group in /backend with 8 updates
...
Bumps the go-modules-updates group in /backend with 8 updates:
| Package | From | To |
| --- | --- | --- |
| [github.com/PuerkitoBio/goquery](https://github.com/PuerkitoBio/goquery ) | `1.10.1` | `1.10.2` |
| [github.com/alecthomas/chroma/v2](https://github.com/alecthomas/chroma ) | `2.14.0` | `2.15.0` |
| [github.com/go-chi/chi/v5](https://github.com/go-chi/chi ) | `5.2.0` | `5.2.1` |
| [github.com/go-pkgz/jrpc](https://github.com/go-pkgz/jrpc ) | `0.3.0` | `0.3.1` |
| [go.etcd.io/bbolt](https://github.com/etcd-io/bbolt ) | `1.3.11` | `1.4.0` |
| [golang.org/x/crypto](https://github.com/golang/crypto ) | `0.31.0` | `0.33.0` |
| [golang.org/x/image](https://github.com/golang/image ) | `0.23.0` | `0.25.0` |
| [golang.org/x/net](https://github.com/golang/net ) | `0.33.0` | `0.35.0` |
Updates `github.com/PuerkitoBio/goquery` from 1.10.1 to 1.10.2
- [Release notes](https://github.com/PuerkitoBio/goquery/releases )
- [Commits](https://github.com/PuerkitoBio/goquery/compare/v1.10.1...v1.10.2 )
Updates `github.com/alecthomas/chroma/v2` from 2.14.0 to 2.15.0
- [Release notes](https://github.com/alecthomas/chroma/releases )
- [Changelog](https://github.com/alecthomas/chroma/blob/master/.goreleaser.yml )
- [Commits](https://github.com/alecthomas/chroma/compare/v2.14.0...v2.15.0 )
Updates `github.com/go-chi/chi/v5` from 5.2.0 to 5.2.1
- [Release notes](https://github.com/go-chi/chi/releases )
- [Changelog](https://github.com/go-chi/chi/blob/master/CHANGELOG.md )
- [Commits](https://github.com/go-chi/chi/compare/v5.2.0...v5.2.1 )
Updates `github.com/go-pkgz/jrpc` from 0.3.0 to 0.3.1
- [Release notes](https://github.com/go-pkgz/jrpc/releases )
- [Commits](https://github.com/go-pkgz/jrpc/compare/v0.3.0...v0.3.1 )
Updates `go.etcd.io/bbolt` from 1.3.11 to 1.4.0
- [Release notes](https://github.com/etcd-io/bbolt/releases )
- [Commits](https://github.com/etcd-io/bbolt/compare/v1.3.11...v1.4.0 )
Updates `golang.org/x/crypto` from 0.31.0 to 0.33.0
- [Commits](https://github.com/golang/crypto/compare/v0.31.0...v0.33.0 )
Updates `golang.org/x/image` from 0.23.0 to 0.25.0
- [Commits](https://github.com/golang/image/compare/v0.23.0...v0.25.0 )
Updates `golang.org/x/net` from 0.33.0 to 0.35.0
- [Commits](https://github.com/golang/net/compare/v0.33.0...v0.35.0 )
---
updated-dependencies:
- dependency-name: github.com/PuerkitoBio/goquery
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: go-modules-updates
- dependency-name: github.com/alecthomas/chroma/v2
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: go-modules-updates
- dependency-name: github.com/go-chi/chi/v5
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: go-modules-updates
- dependency-name: github.com/go-pkgz/jrpc
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: go-modules-updates
- dependency-name: go.etcd.io/bbolt
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: go-modules-updates
- dependency-name: golang.org/x/crypto
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: go-modules-updates
- dependency-name: golang.org/x/image
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: go-modules-updates
- dependency-name: golang.org/x/net
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: go-modules-updates
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-03-24 23:13:46 +01:00
Dmitry Verkhoturov
edfc5b9d76
Automatic fix of errors reported by golangci-lint v2
...
- Use strings.ReplaceAll
- Remove redundant internal structure names
2025-03-24 22:46:43 +01:00
dependabot[bot] and GitHub
7e944bfe0d
Bump github.com/golang-jwt/jwt/v5 from 5.2.1 to 5.2.2 in /backend
...
Bumps [github.com/golang-jwt/jwt/v5](https://github.com/golang-jwt/jwt ) from 5.2.1 to 5.2.2.
- [Release notes](https://github.com/golang-jwt/jwt/releases )
- [Changelog](https://github.com/golang-jwt/jwt/blob/main/VERSION_HISTORY.md )
- [Commits](https://github.com/golang-jwt/jwt/compare/v5.2.1...v5.2.2 )
---
updated-dependencies:
- dependency-name: github.com/golang-jwt/jwt/v5
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-03-21 22:26:36 +00:00
dependabot[bot] and Dmitry Verkhoturov
6c9ade9062
Bump golang.org/x/net from 0.33.0 to 0.36.0 in /backend
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.33.0 to 0.36.0.
- [Commits](https://github.com/golang/net/compare/v0.33.0...v0.36.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-03-12 22:58:15 +00:00
Dmitry Verkhoturov
bb650d7526
Migrate Docker images from Docker Hub to GitHub Container Registry
...
This commit replaces all references to `umputun/remark42` Docker images
on Docker Hub with `ghcr.io/umputun/remark42` from the GitHub
Container Registry. It updates various Docker Compose files,
documentation, and the Makefile to use the new image location.
It also updates the kubernetes example to use the latest version.
Docker Hub is going to kill free pulls for too long by now.
2025-03-01 23:15:09 +00:00
dependabot[bot] and Umputun
2e00002413
Bump the go-modules-updates group in /backend with 5 updates
...
Bumps the go-modules-updates group in /backend with 5 updates:
| Package | From | To |
| --- | --- | --- |
| [github.com/PuerkitoBio/goquery](https://github.com/PuerkitoBio/goquery ) | `1.10.0` | `1.10.1` |
| [github.com/go-chi/chi/v5](https://github.com/go-chi/chi ) | `5.1.0` | `5.2.0` |
| [github.com/go-pkgz/rest](https://github.com/go-pkgz/rest ) | `1.19.0` | `1.20.2` |
| [golang.org/x/image](https://github.com/golang/image ) | `0.22.0` | `0.23.0` |
| [golang.org/x/net](https://github.com/golang/net ) | `0.31.0` | `0.33.0` |
Updates `github.com/PuerkitoBio/goquery` from 1.10.0 to 1.10.1
- [Release notes](https://github.com/PuerkitoBio/goquery/releases )
- [Commits](https://github.com/PuerkitoBio/goquery/compare/v1.10.0...v1.10.1 )
Updates `github.com/go-chi/chi/v5` from 5.1.0 to 5.2.0
- [Release notes](https://github.com/go-chi/chi/releases )
- [Changelog](https://github.com/go-chi/chi/blob/master/CHANGELOG.md )
- [Commits](https://github.com/go-chi/chi/compare/v5.1.0...v5.2.0 )
Updates `github.com/go-pkgz/rest` from 1.19.0 to 1.20.2
- [Release notes](https://github.com/go-pkgz/rest/releases )
- [Commits](https://github.com/go-pkgz/rest/compare/v1.19.0...v1.20.2 )
Updates `golang.org/x/image` from 0.22.0 to 0.23.0
- [Commits](https://github.com/golang/image/compare/v0.22.0...v0.23.0 )
Updates `golang.org/x/net` from 0.31.0 to 0.33.0
- [Commits](https://github.com/golang/net/compare/v0.31.0...v0.33.0 )
---
updated-dependencies:
- dependency-name: github.com/PuerkitoBio/goquery
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: go-modules-updates
- dependency-name: github.com/go-chi/chi/v5
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: go-modules-updates
- dependency-name: github.com/go-pkgz/rest
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: go-modules-updates
- dependency-name: golang.org/x/image
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: go-modules-updates
- dependency-name: golang.org/x/net
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: go-modules-updates
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-01-02 14:02:42 -06:00
Umputun
3f0789fd90
mod tidy for memory store example
2024-12-17 23:39:29 -06:00
Umputun and GitHub
518ae79556
Merge pull request #1869 from aliksend/aliksend/fix-importing-anonymous-comments-from-commento
...
Straightforward fix for importing anonymous comments from commento
2024-12-17 16:04:38 -06:00
Umputun and GitHub
3c55238bdd
Merge pull request #1874 from umputun/dependabot/go_modules/backend/golang.org/x/crypto-0.31.0
...
Bump golang.org/x/crypto from 0.29.0 to 0.31.0 in /backend
2024-12-17 13:55:45 -06:00
Alik Send
556b95a655
Fix tests. Add test for anonymous comment
2024-12-16 23:16:26 -06:00
Alik Send
bfef15f05f
Straightforward fix for importing anonymous comments from commento
...
Fixes #1821
2024-12-16 23:16:26 -06:00
dependabot[bot] and GitHub
0af8b2eab0
Bump golang.org/x/crypto from 0.29.0 to 0.31.0 in /backend
...
Bumps [golang.org/x/crypto](https://github.com/golang/crypto ) from 0.29.0 to 0.31.0.
- [Commits](https://github.com/golang/crypto/compare/v0.29.0...v0.31.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/crypto
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-12-11 22:23:01 +00:00
Dmitry Verkhoturov
82a0888c42
add pagination to GET /api/v1/find endpoint
...
`format=tree` pagination provides top-level comments with all replies
and returns the last top-level comment as `last_comment` to be used
as `offset` for the next page. If comments and replies overflow
the limit, the one stepping out of the limit will not be returned.
If the first comment and its replies after the given offset overflow
the limit, it will be returned with all the replies.
`format=plain` pagination works by providing all comments and returning
the last comment as `last_comment` to be used as `offset`
for the next page.
2024-12-10 14:26:55 +00:00
Dmitry Verkhoturov
e61a46efff
Improve error message for checking claims.Audience
2024-12-10 00:45:04 +00:00
Dmitry Verkhoturov
f473105c52
add tests for jwt5 multiple auds and improve existing tests
2024-12-09 01:54:04 +00:00
Dmitry Verkhoturov
c2d386230c
vendor new modules
2024-12-09 01:54:03 +00:00
Dmitry Verkhoturov
e3ad01b555
migrate to go-pkgz/auth/v2
2024-12-09 01:54:03 +00:00
Dmitry Verkhoturov
8d9e55c33c
update github.com/golang-jwt/jwt to v5
2024-12-09 01:54:03 +00:00
Dmitry Verkhoturov
4ed48dd85c
Improve tests
2024-12-09 01:45:57 +00:00
dependabot[bot] and Dmitry Verkhoturov
0aadf0ba86
Bump the go-modules-updates group in /backend with 3 updates
...
Bumps the go-modules-updates group in /backend with 3 updates: [github.com/stretchr/testify](https://github.com/stretchr/testify ), [golang.org/x/crypto](https://github.com/golang/crypto ) and [golang.org/x/net](https://github.com/golang/net ).
Updates `github.com/stretchr/testify` from 1.9.0 to 1.10.0
- [Release notes](https://github.com/stretchr/testify/releases )
- [Commits](https://github.com/stretchr/testify/compare/v1.9.0...v1.10.0 )
Updates `golang.org/x/crypto` from 0.27.0 to 0.29.0
- [Commits](https://github.com/golang/crypto/compare/v0.27.0...v0.29.0 )
Updates `golang.org/x/net` from 0.29.0 to 0.31.0
- [Commits](https://github.com/golang/net/compare/v0.29.0...v0.31.0 )
---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: go-modules-updates
- dependency-name: golang.org/x/crypto
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: go-modules-updates
- dependency-name: golang.org/x/net
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: go-modules-updates
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-12-02 04:24:48 +00:00
Dmitry Verkhoturov
cd7f616596
Fix server test configuration
...
Previously, tmp boltdb was always created in directory 8080.
2024-12-02 03:36:32 +00:00
Mrigank Badola
1a27913404
chore: update go-pkgz/auth package
2024-11-10 12:40:07 +05:30
Mrigank Badola
4a39ceee8d
sync: Merge branch 'master' of https://github.com/mgkbadola/remark42 into discord-oauth
2024-11-10 10:43:10 +05:30
Dmitry Verkhoturov and Umputun
73ca4a1b6d
Capitalize "AS" keyword in Dockerfile FROM instructions
2024-11-08 16:27:10 -06:00
Dmitry Verkhoturov and Umputun
7604548035
Update go to 1.23, golangci-lint to 1.61, baseimage to 1.14
2024-11-08 16:19:58 -06:00
dependabot[bot] and Umputun
7529aa7e17
Bump the go-modules-updates group in /backend with 9 updates
...
Bumps the go-modules-updates group in /backend with 9 updates:
| Package | From | To |
| --- | --- | --- |
| [github.com/PuerkitoBio/goquery](https://github.com/PuerkitoBio/goquery ) | `1.9.2` | `1.10.0` |
| [github.com/alecthomas/chroma/v2](https://github.com/alecthomas/chroma ) | `2.13.0` | `2.14.0` |
| [github.com/go-pkgz/notify](https://github.com/go-pkgz/notify ) | `1.1.1` | `1.2.0` |
| [github.com/go-pkgz/repeater](https://github.com/go-pkgz/repeater ) | `1.1.3` | `1.2.0` |
| [github.com/rs/xid](https://github.com/rs/xid ) | `1.5.0` | `1.6.0` |
| [go.etcd.io/bbolt](https://github.com/etcd-io/bbolt ) | `1.3.10` | `1.3.11` |
| [golang.org/x/crypto](https://github.com/golang/crypto ) | `0.25.0` | `0.27.0` |
| [golang.org/x/image](https://github.com/golang/image ) | `0.18.0` | `0.22.0` |
| [golang.org/x/net](https://github.com/golang/net ) | `0.27.0` | `0.29.0` |
Updates `github.com/PuerkitoBio/goquery` from 1.9.2 to 1.10.0
- [Release notes](https://github.com/PuerkitoBio/goquery/releases )
- [Commits](https://github.com/PuerkitoBio/goquery/compare/v1.9.2...v1.10.0 )
Updates `github.com/alecthomas/chroma/v2` from 2.13.0 to 2.14.0
- [Release notes](https://github.com/alecthomas/chroma/releases )
- [Changelog](https://github.com/alecthomas/chroma/blob/master/.goreleaser.yml )
- [Commits](https://github.com/alecthomas/chroma/compare/v2.13.0...v2.14.0 )
Updates `github.com/go-pkgz/notify` from 1.1.1 to 1.2.0
- [Release notes](https://github.com/go-pkgz/notify/releases )
- [Commits](https://github.com/go-pkgz/notify/compare/v1.1.1...v1.2.0 )
Updates `github.com/go-pkgz/repeater` from 1.1.3 to 1.2.0
- [Release notes](https://github.com/go-pkgz/repeater/releases )
- [Commits](https://github.com/go-pkgz/repeater/compare/v1.1.3...v1.2.0 )
Updates `github.com/rs/xid` from 1.5.0 to 1.6.0
- [Release notes](https://github.com/rs/xid/releases )
- [Commits](https://github.com/rs/xid/compare/v1.5.0...v1.6.0 )
Updates `go.etcd.io/bbolt` from 1.3.10 to 1.3.11
- [Release notes](https://github.com/etcd-io/bbolt/releases )
- [Commits](https://github.com/etcd-io/bbolt/compare/v1.3.10...v1.3.11 )
Updates `golang.org/x/crypto` from 0.25.0 to 0.27.0
- [Commits](https://github.com/golang/crypto/compare/v0.25.0...v0.27.0 )
Updates `golang.org/x/image` from 0.18.0 to 0.22.0
- [Commits](https://github.com/golang/image/compare/v0.18.0...v0.22.0 )
Updates `golang.org/x/net` from 0.27.0 to 0.29.0
- [Commits](https://github.com/golang/net/compare/v0.27.0...v0.29.0 )
---
updated-dependencies:
- dependency-name: github.com/PuerkitoBio/goquery
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: go-modules-updates
- dependency-name: github.com/alecthomas/chroma/v2
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: go-modules-updates
- dependency-name: github.com/go-pkgz/notify
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: go-modules-updates
- dependency-name: github.com/go-pkgz/repeater
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: go-modules-updates
- dependency-name: github.com/rs/xid
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: go-modules-updates
- dependency-name: go.etcd.io/bbolt
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: go-modules-updates
- dependency-name: golang.org/x/crypto
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: go-modules-updates
- dependency-name: golang.org/x/image
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: go-modules-updates
- dependency-name: golang.org/x/net
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: go-modules-updates
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-11-08 16:19:58 -06:00
Dmitry Verkhoturov and Umputun
5b6d8de807
Deprecate Twitter OAuth and remove from feature list
2024-10-20 17:18:14 -05:00
Dmitry Verkhoturov and Umputun
dd2cff6a13
Clarify ALLOWED_HOSTS description and usage
...
This clarifies that the parameter sets CSP 'frame-ancestors'
to limit hosts allowed to embed comments. The commit also improves
the documentation on how to use ALLOWED_HOSTS with AUTH_SAME_SITE
for different setup scenarios.
We might want to change AUTH_SAME_SITE to `strong` in v2.0 as it works
on the subdomain of the same site as well as current Lax option.
2024-10-20 17:17:35 -05:00
Dmitry Verkhoturov and Umputun
68fe6eb55f
Update docker-compose command to docker compose
...
Compose is part of docker command for years and during local development
on Mac I have to change makefile locally for commands to work.
2024-10-20 17:17:10 -05:00
Dmitry Verkhoturov and Umputun
4d5f9f269b
Add missing AUTH_APPLE_KID env variable cleanup
2024-10-20 16:06:50 -05:00
Dmitry Verkhoturov and Umputun
6140d82eb2
Fix CSP img-src directive to allow everything without proxy
...
Change the default img-src value to "*" and sets it to "'self'" when
image proxy is enabled. The previous state was inversion of this logic
which was wrong.
2024-10-20 15:55:51 -05:00
Mrigank Badola
cff261c15b
chore: add discord in server test file
2024-10-20 11:47:47 +05:30
Mrigank Badola
18ea40582a
sync: Merge remote-tracking branch 'origin' into discord-oauth
2024-10-20 11:46:33 +05:30