~xenrox

Recent activity

[PATCH sr.ht-pkgbuilds] paste.sr.ht: Drop webhooks service 3 days ago

From Thorben Günther to ~sircmpwn/sr.ht-packages

Paste webhooks were removed in
https://git.sr.ht/~sircmpwn/paste.sr.ht/commit/48e2e8e288ffb4ccae134aa7a7c0171a1c8c1cf1
---
 paste.sr.ht/PKGBUILD                     |  4 ----
 paste.sr.ht/paste.sr.ht-webhooks.service | 13 -------------
 2 files changed, 17 deletions(-)
 delete mode 100644 paste.sr.ht/paste.sr.ht-webhooks.service

diff --git a/paste.sr.ht/PKGBUILD b/paste.sr.ht/PKGBUILD
index cbb3a06..6937f90 100644
--- a/paste.sr.ht/PKGBUILD
+++ b/paste.sr.ht/PKGBUILD
@@ -15,13 +15,11 @@ makedepends=("python-setuptools" "nodejs" "sassc" "go")
source=(
[message trimmed]

[PATCH sr.ht-pkgbuilds] paste.sr.ht: Add GraphQL API 5 days ago

From Thorben Günther to ~sircmpwn/sr.ht-packages

---
 paste.sr.ht/PKGBUILD                | 14 ++++++++++----
 paste.sr.ht/paste.sr.ht-api.service | 13 +++++++++++++
 2 files changed, 23 insertions(+), 4 deletions(-)
 create mode 100644 paste.sr.ht/paste.sr.ht-api.service

diff --git a/paste.sr.ht/PKGBUILD b/paste.sr.ht/PKGBUILD
index f73e430..cbb3a06 100644
--- a/paste.sr.ht/PKGBUILD
+++ b/paste.sr.ht/PKGBUILD
@@ -1,8 +1,8 @@
pkgname=paste.sr.ht
pkgver=0.11.3
pkgver=0.13.6
[message trimmed]

[PATCH meta.sr.ht] Fix bug with required URL field 29 days ago

From Thorben Günther to ~sircmpwn/sr.ht-dev

Now an empty string will be allowed for the url.
---
Fixes second part of https://lists.sr.ht/~sircmpwn/sr.ht-discuss/%3C87wno5wn8b.fsf%40greenfork.me%3E

 api/graph/schema.resolvers.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/api/graph/schema.resolvers.go b/api/graph/schema.resolvers.go
index 3e9ee45..61fd0dc 100644
--- a/api/graph/schema.resolvers.go
+++ b/api/graph/schema.resolvers.go
@@ -60,11 +60,11 @@ func (r *mutationResolver) UpdateUser(ctx context.Context, input map[string]inte
		valid.
			Expect(err == nil, "URL does not pass validation").
[message trimmed]

Re: Cannot change account email 29 days ago

From Thorben Günther to ~sircmpwn/sr.ht-discuss

On Sat, Aug 28, 2021 at 09:58:18PM +0600, Dmitry Matveyev wrote:
> Hi,
> 
> I cannot change my email. Here is what I do:
> 1. Go to https://meta.sr.ht/profile
> 2. Change email
> 3. Press Save
> 
> First problem: I have an empty URL field but it complains "URL must have
> a host and a permitted scheme". I solved it by just putting something in
> there.
> 
> Second problem: after I'd changed the email, I received a notification
> to my email asking to follow the link in order to verify it. After

[PATCH meta.sr.ht] Fix bug when trying to change email 29 days ago

From Thorben Günther to ~sircmpwn/sr.ht-dev

StdEncoding will allow problematic characters like a slash in an URL.
---
 api/graph/schema.resolvers.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/api/graph/schema.resolvers.go b/api/graph/schema.resolvers.go
index da5fc4f..3e9ee45 100644
--- a/api/graph/schema.resolvers.go
+++ b/api/graph/schema.resolvers.go
@@ -138,7 +138,7 @@ func (r *mutationResolver) UpdateUser(ctx context.Context, input map[string]inte
			if err != nil || n != len(seed) {
				panic(err)
			}
			confHash := base64.StdEncoding.EncodeToString(seed[:])
[message trimmed]

Re: 500 Internal Error on /oauth2 due to internal-ipnet= a month ago

From Thorben Günther to ~sircmpwn/sr.ht-dev

On Thu, Aug 19, 2021 at 12:54:32PM +0200, Julien Moutinho wrote:
> When I browse to /oauth2 I have two requests arriving at nginx:
> > {"time_local":"19/Aug/2021:12:07:40 +0200","host":"meta.hut.sourcephile.fr","request":"POST /query HTTP/1.1","status":"200","http_referrer":"","remote_addr":"80.67.180.129","remote_user":"","msec":"1629367660.704","body_bytes_sent":"87","bytes_sent":"542","http_user_agent":"python-requests/2.25.1","request_length":"905","request_method":"POST","request_time":"0.034","request_uri":"/query","server_protocol":"HTTP/1.1","ssl_protocol":"TLSv1.3","upstream_addr":"127.0.0.1:5100","upstream_connect_time":"0.001","upstream_response_time":"0.034"}
> > {"time_local":"19/Aug/2021:12:07:41 +0200","host":"meta.hut.sourcephile.fr","request":"GET /oauth2 HTTP/2.0","status":"200","http_referrer":"https://meta.hut.sourcephile.fr/oauth","remote_addr":"[browser-IPv4-address]","remote_user":"","msec":"1629367661.254","body_bytes_sent":"3560","bytes_sent":"3660","http_user_agent":"Mozilla/5.0 (X11; Linux x86_64; rv:90.0) Gecko/20100101 Firefox/90.0","request_length":"794","request_method":"GET","request_time":"0.728","request_uri":"/oauth2","server_protocol":"HTTP/2.0","ssl_protocol":"TLSv1.3","upstream_addr":"127.0.0.1:4999","upstream_connect_time":"0.002","upstream_response_time":"0.728"}
> 
> So, AFAICS, with my config.ini, metasrht.service which is listening on 127.0.0.1
> fires a TLS request to nginx to talk through /query
> to metasrht-api.service which is also running on 127.0.0.1.
> That makes metasrht-api.service believe it's an HTTP request coming
> from the server's own public address (80.67.180.129),
> hence the mismatch with internal-ipnet=
> 
> Is there a way to have metasrht.service talk directly to metasrht-api.service?
> Or should I add my server's IP to internal-ipnet=?

[PATCH sr.ht-pkgbuilds v4] python-stripe: Update, add check with stripe-mock a month ago

From Thorben Günther to ~sircmpwn/sr.ht-packages

---
v4: Kill stripe-mock even when test suite fails

 python-stripe/PKGBUILD | 35 +++++++++++++++++++++++++++++++----
 1 file changed, 31 insertions(+), 4 deletions(-)

diff --git a/python-stripe/PKGBUILD b/python-stripe/PKGBUILD
index 26708f8..9d0cf9b 100644
--- a/python-stripe/PKGBUILD
+++ b/python-stripe/PKGBUILD
@@ -1,16 +1,43 @@
# Maintainer: Dylan Whichard <dylan@whichard.com>
_name=stripe
pkgname=python-stripe
[message trimmed]

[PATCH sr.ht-pkgbuilds v2] python-pgpy: Update, remove python2 subpackage a month ago

From Thorben Günther to ~sircmpwn/sr.ht-packages

---
v2: Remove wheel from dependencies

 python-pgpy/PKGBUILD | 36 +++++++++++-------------------------
 1 file changed, 11 insertions(+), 25 deletions(-)

diff --git a/python-pgpy/PKGBUILD b/python-pgpy/PKGBUILD
index f43005a..25a614a 100644
--- a/python-pgpy/PKGBUILD
+++ b/python-pgpy/PKGBUILD
@@ -1,47 +1,33 @@
# $Id$
# Maintainer: James Morris <jmorris@securityinnovation.com>

[message trimmed]

[PATCH sr.ht-pkgbuilds v3] python-stripe: Update, add check with stripe-mock a month ago

From Thorben Günther to ~sircmpwn/sr.ht-packages

---
v3: build dependency in check, package in build
Sorry the whole building-checkdepends-in-pkgbuild stuff got me a bit
confused.
One thing I still dislike about this PKGBUILD is that stripe-mock won't
get killed if the check fails so that you got a dangling process. Do you
think we can leave it like this or can that be improved with something
like `trap`?

 python-stripe/PKGBUILD | 31 +++++++++++++++++++++++++++----
 1 file changed, 27 insertions(+), 4 deletions(-)

diff --git a/python-stripe/PKGBUILD b/python-stripe/PKGBUILD
index 26708f8..3132d87 100644
[message trimmed]

[PATCH sr.ht-pkgbuilds v2] python-stripe: Update, add check with stripe-mock a month ago

From Thorben Günther to ~sircmpwn/sr.ht-packages

---
v2: build dependency in build function, remove obsolete GOPATH, fix
namcap warning.

 python-stripe/PKGBUILD | 30 ++++++++++++++++++++++++++----
 1 file changed, 26 insertions(+), 4 deletions(-)

diff --git a/python-stripe/PKGBUILD b/python-stripe/PKGBUILD
index 26708f8..5bbce57 100644
--- a/python-stripe/PKGBUILD
+++ b/python-stripe/PKGBUILD
@@ -1,16 +1,38 @@
# Maintainer: Dylan Whichard <dylan@whichard.com>
_name=stripe
[message trimmed]