Matrix Admin-Api-Calls through abra? #45
Open
opened 2025-02-26 09:45:44 +00:00 by lambdabundesverband
·
1 comment
No Branch/Tag Specified
main
renovate/nginx-1.x
renovate/ghcr.io-element-hq-matrix-authentication-service-1.x
renovate/matrixdotorg-synapse-1.x
renovate/dock.mau.dev-mautrix-telegram-0.x
newmain3
upgrade-7.2.0+v1.154.0
upgrade-7.2.1+v1.155.0
compress-and-federate2
renovate/postgres-18.x
chore/meet.wiki.cafe-deployment
fix/3wc/server-name
compress-and-federate
add-matrix-authentication-service
feat/3wc/caddy
compress
feature/add-qr-login
6.8.1fix
auto_join_room_list
auto-join-rooms
cas_expose_maxupload
old-signing-key
added-env-vars
addtional-env-vars
homeserver-config-updates
backupbot
serve_server_wellknown
coturn
7.3.1+v1.157.1
7.3.0+v1.155.0
7.2.1+v1.155.0
7.2.0+v1.154.0
7.1.1+v1.149.1
7.1.0+v1.149.1
7.0.2+v1.149.1
7.0.1+v1.149.1
7.0.0+v1.149.1
6.8.3+v1.139.2
6.8.2+v1.139.2
6.8.1+v1.139.2
6.8.0+v1.139.2
6.7.1+v1.133.0
6.7.0+v1.133.0
6.6.3+v1.124.0
6.6.2+v1.124.0
6.6.1+v1.124.0
6.6.0+v1.124.0
6.5.0+v1.117.0
6.4.0+v1.116.0
6.3.0+v1.113.0
6.2.0+v1.113.0
6.1.4+v1.112.0
6.1.3+v1.111.1
6.1.2+v1.111.0
6.1.1+v1.110.0
6.1.0+v1.110.0
5.0.6+v1.100.0
6.0.2+v1.100.0
6.0.1+v1.100.0
6.0.0+v1.100.0
5.0.5+v1.100.0
5.0.5+1.25.3
5.0.4+v1.100.0
5.0.3+v1.100.0
5.0.2+v1.93.0
5.0.1+v1.93.0
5.0.0+v1.93.0
4.0.0+v1.93.0
3.9.1+v1.87.0
3.9.0+v1.87.0
3.8.0+v1.84.1
3.7.0+v1.82.0
3.6.0+v1.81.0
3.5.0+v1.81.0
3.4.0+v1.80.0
3.3.0+v1.78.0
3.2.0+v1.77.0
3.1.0+v1.76.0
3.0.0+v1.74.0
2.6.0+v1.74.0
2.5.0+v1.73.0
2.4.0+v1.72.0
2.3.0+v1.71.0
2.2.0+v1.68.0
2.1.0+v1.62.0
2.0.0+v1.58.1
1.3.0+v1.55.2
1.2.0+v1.52.0
1.1.0+v1.51.0
1.0.1+1.48.0
Labels
No items
No labels
Milestone
No items
No Milestone
Assignees
3wordchant
aadil (Aadil Ayub)
abra-bot (Abra Bot)
ammaratef45
amras (Sarma)
Apfelwurm
appletalk
arjan
basebuilder
BornDeleuze
Brooke
carla
cas (Cassowary)
codegod100
coopcloud
cyrnel
decentral1se (d1)
dede
devydave
fauno (fauno)
flancian
Frando
iexos
jade (Jade Ambrose)
javielico (Javielico)
jjsfunhouse
jmakdah2 (Jackie Makdah)
joe-irving (Joe Irving)
kawaiipunk (KawaiiPunk)
knoflook
kolaente
lambdabundesverband
linnealovespie (April)
marlon (marlon)
mayel
mirsal
moosemower
moritz
nicksellen (Nick Sellen)
notplants
oxaliq (sorrel)
p4u1
pau
pharaohgraphy (Andrew 🐦🔥❤️🔥✴️)
PhiNatalie
renovate-bot (Comrade Renovate Bot)
ripclap
rix
rscmbbng
sef (sef)
simon
sixsmith (Sixsmith)
stevensting
tobias
trav (Trav Fryer)
val (val (he/him))
vaznasty
virtualboys
wolcen (Chris Thompson)
wykwit
xynosis
yksflip
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: coop-cloud/matrix-synapse#45
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
I thought of making it possible to make calls to the admin-api through abra.
They are already possible like this:
or more generalized
My idea would it to realize it more or less like this
in
abra.sh(with some validations....)
so that in the end API-Calls would be possible like this, without worrying for Admin-Token, Hostname or curl-Syntax
abra cmd $DOMAIN app admin_api_call /background_updates/start_job POST '{ "job_name": "regenerate_directory" }'and additionally we could easily make some more pre-defined commands for recurring admin tasks in the future.
Main questions:
<CONTAINER_NAME>in theabra.sh-Script?admin_tokengood idea?3.1 if so, where would we get the admin-token from automatically?
abra.shfunction in another?Thanks for discussions or ideas on any of the questions
Seems great!
I think
$STACK_NAME_appshould do it.Good question. I think "yes", although I wonder how the initial set-up would work – I guess this token wouldn't be available until the account is created, and I don't know if it's possible to pre-initialise one. Maybe we can look at how
synadminis generating admin users & tokens? https://codeberg.org/ahab/synadm#getting-an-admin-tokenYes,
abra.shfunctions are bash functions, so they should be callable from each other as normal; e.g. we're using this functionality in thehometownrecipe: https://git.coopcloud.tech/coop-cloud/hometown/src/branch/main/abra.sh#L39