Orion arm
From Conrad Hoffmann to ~sircmpwn/sr.ht-discuss
On 9/24/24 5:19 AM, zamfofex@twdb.moe wrote: > I have recently pushed changes to a branch including a command to run for testing that uses Bash’s process substitution, i.e. ‘<(...)’, which in turn expects ‘/dev/fd’ to be functional. > > Is it expected/intended that ‘/dev/fd’ and ‘/dev/std{in,out,err}’ are missing in Alpine Linux builds? If not, then it might be worthwhile to fix it. Just run `sudo service devfs start` before the relevant commands and it will work. Cheers, Conrad
From Conrad Hoffmann to ~sircmpwn/sr.ht-dev
--- sourcehut.conf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sourcehut.conf b/sourcehut.conf index 7fb31b1..238700e 100644 --- a/sourcehut.conf +++ b/sourcehut.conf @@ -1,6 +1,9 @@ set $python "python3.12"; set_real_ip_from 127.0.0.0/16; set_real_ip_from 173.195.146.128/25; set_real_ip_from 10.0.0.0/8; set_real_ip_from 46.23.81.128/25;[message trimmed]
From Conrad Hoffmann to ~sircmpwn/sr.ht-dev
--- ops/index.md | 1 - ops/monitoring.md | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/ops/index.md b/ops/index.md index 567c91c..2d1b622 100644 --- a/ops/index.md +++ b/ops/index.md @@ -17,7 +17,6 @@ Additional resources: - [High availability](/ops/availability.md) - [Monitoring & alarms](/ops/monitoring.md) - [Outage incident response](/ops/incident.md) - [Network topology](/ops/topology.md)[message trimmed]
From Conrad Hoffmann to ~sircmpwn/sr.ht-dev
It's not been a thing for a while now, and we likely won't need it in the future. --- ops/monitoring.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/ops/monitoring.md b/ops/monitoring.md index 22430d2..1d1ba07 100644 --- a/ops/monitoring.md +++ b/ops/monitoring.md @@ -21,12 +21,6 @@ Our Prometheus instance is publically available at A pushgateway is running at push.metrics.srht.network. It's firewalled to only accept connections from [our subnet](/ops/topology.md). [message trimmed]
From Conrad Hoffmann to ~sircmpwn/sr.ht-dev
In all places where it makes sense. --- ops/backups.md | 4 ++-- ops/incident.md | 4 ++-- ops/index.md | 7 ++++--- ops/monitoring.md | 10 +++++----- ops/tls.md | 12 ++++++------ 5 files changed, 19 insertions(+), 18 deletions(-) diff --git a/ops/backups.md b/ops/backups.md index d949044..c308375 100644 --- a/ops/backups.md +++ b/ops/backups.md @@ -77,7 +77,7 @@ stats() { [message trimmed]
From Conrad Hoffmann to ~sircmpwn/sr.ht-dev
They don't work anymore, and have not been very useful anyways. --- ops/dashboards/git.sr.ht.md | 9 --------- ops/dashboards/pages.sr.ht.md | 5 ----- 2 files changed, 14 deletions(-) delete mode 100644 ops/dashboards/git.sr.ht.md delete mode 100644 ops/dashboards/pages.sr.ht.md diff --git a/ops/dashboards/git.sr.ht.md b/ops/dashboards/git.sr.ht.md deleted file mode 100644 index 49f63ba..0000000 --- a/ops/dashboards/git.sr.ht.md @@ -1,9 +0,0 @@ [message trimmed]
From Conrad Hoffmann to ~sircmpwn/sr.ht-dev
These commits were prompted by the metrics.sr.ht -> metrics.srht.network migration, but address a few other issues where the docs have been bit-rotting. Conrad Hoffmann (4): ops: remove dashboard examples ops: metrics.sr.ht -> metrics.srht.network ops: remove mention of aggregation gateway ops: remove stale links to topology page ops/backups.md | 4 ++-- ops/dashboards/git.sr.ht.md | 9 --------- ops/dashboards/pages.sr.ht.md | 5 ----- ops/incident.md | 4 ++--
From Conrad Hoffmann to ~sircmpwn/sr.ht-dev
--- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 773bbe8..591136d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,7 +43,7 @@ script-files = [ "runner-shell", ] [tool.setuptools.package-data] "buildsrht" = ['default_query.graphql'] "buildsrht" = ['default_query.graphql', 'schema.graphqls'][message trimmed]
From Conrad Hoffmann to ~sircmpwn/sr.ht-dev
On 9/9/24 10:47 AM, Drew DeVault wrote: > +1 > > Any specific questions you want answered to graduate this from RFC PATCH > to PATCH? If you like it as is, feel free to merge. Only question would be if the "no-auth" group/router should be made available in API, though I do not have any use-case for that atm. Cheers, Conrad
From Conrad Hoffmann to ~sircmpwn/sr.ht-dev
Instead of hardcoding some exceptions in the auth middleware, use a different routing group for routes that do not require auth. Makes the auth middleware more generic and also removes a lot of unneccessary middleware processing from routes that don't need it. For now, the added group is not accessible from outside the module, but if the need arises, this might be an option. --- Note: this removes the special handling of /query/external, which I _think_ is not a thing? auth/middleware.go | 12 +----------- server/server.go | 35 ++++++++++++++++++++++------------- 2 files changed, 23 insertions(+), 24 deletions(-) [message trimmed]