#just

bkoehn@diaspora.koehn.com

More fun with #just recipes. This one pulls together a bunch of tasks I need to do when I create a bucket, account, user, and policy for s3, storing the credentials in 1Password. I’ll probably have it output a #k8s secret as well.

# create a new bucket, account, and policy
new-bucket-account bucket:
  #!/usr/bin/env bash
  set -uo pipefail
  mc mb "$TARGET/{{ bucket }}"
  USER="$(pwgen 20 1)"
  PASSWORD="$(pwgen 40 1)"
  mc admin user add "$TARGET" "$USER" "$PASSWORD"
  ACCOUNT="{{bucket}} s3 account"
  op item create --vault k8s --title "$ACCOUNT" --tags k8s,minio - username="$USER" password="$PASSWORD"
  mc admin policy create "$TARGET" "{{bucket}}" <(sed 's/BUCKET/{{bucket}}/' < policy-template.json)
  mc admin policy attach "$TARGET" "{{bucket}}" --user "$USER"
  @echo "added \"$ACCOUNT\" to 1password"
bkoehn@diaspora.koehn.com

I wrote enough just scripts that I now have a reasonably consistent API. I can now cd into a directory and run just upgrade and the scripts will figure out what version is currently deployed and what release is current, and if they’re different will deploy the latest version, building a new Docker image if necessary. It’s really nice.

Coding up the current version was a fun exercise in shell scripting.

For postfix:

kubectl exec -n mail svc/postfix -- postconf mail_version | awk '{print $NF}'

For dovecot:

kubectl exec -n mail svc/dovecot -- dovecot --version | awk '{print $1}’

```

For synapse you can hit the HTTP endpoint:
```

Synapse releases are all prefixed with a 'v'

echo "v$(curl --silent https://koehn.com/_synapse/admin/v1/server_version | jq -r .server_version)”
```

Then finding the current release is also unique for each:

The current Postfix release comes from Debian, so I grab it from the web page (best I could find):

curl --silent https://packages.debian.org/bookworm-updates/postfix | htmlq h1 --text | grep postfix | sed 's/^.*(\([0-9.]*\)-.*$/\1/‘

For dovecot and synapse, I can get it from Github (with help from a script I found online):

curl --silent https://api.github.com/repos/$GITHUB/tags | jq -r '.[].name' | semversort | tail -n 1

But after some somewhat careful construction of the scripts, I can reuse a standard CLI. I’ll refactor to reuse a bit more code next.

#just #selfhost #shell-fu

anne_har@diaspora.psyco.fr

#France #internet
Des alternatives existent pour le moment. Rien ne dit qu'ils pourront toujours être disponibles, mais en attendant, quelques liens utiles pour se protéger. Spécial noobs mais pas que.

#FDN - French Data Network

Notre histoire
French Data Network (FDN) est une association française (association loi de 1901 – sans but lucratif) déclarée en préfecture en 1992.
https://www.fdn.fr/asso/fonctionnement/

#Cloudflare

https://developers.cloudflare.com/dns/
https://1.1.1.1/dns/

#Just GEEK #
Liste des différents FAI et des DNS disponibles
https://www.justgeek.fr/liste-des-serveurs-dns-les-plus-rapides-et-securises-44705/

Résolveurs #DNS Alternatifs

Vue sur la jungle des offres et sur quels critères accorder sa confiance...
https://sebsauvage.net/wiki/doku.php?id=dns-alternatifs

DNS Leaks test / IPLEAK

Pour vérifier que le DNS est bien routé et actif
https://www.dnsleaktest.com/ ou/ https://ipleak.net/

Post complet : il y a 21 jours. Y a plus qu'à !!

hackbyte@friendica.utzer.de

Heh, barely a original post from me today on the #Fediverse.... But i was somewhat busy greeting #NewHere posts and ppl.

And learning that CamelCase can be useful if not important for screen readers.. ;)

-----

Heh, kaum ein Original-Post von mir heute im #Fediverse.... Ich war gut damit beschäftigt #NeuHier Beiträge und Leute zu begrüßen.

Und zu lernen, dass CamelCase nützlich, wenn nicht sogar wichtig, für Screenreader sein kann ;)

-----

#just #some #other #CamelCase #randomshit ;)

sylviaj@joindiaspora.com

Live outside London court as appeal hearing takes place in Assange case

https://www.youtube.com/watch?v=PjYDVFm9ThU

'It's impossible to correct #abuses unless we know that they are going on. If we are to produce a #civilized #society, a more #just society, it has to be based upon the #truth.' #JulianAssange #quote

#freejulianassange #dropthecharges #wikileaks #freepress #freespeech #journalismisnotacrime #weareallassange #highcourt #london #appeal #us #extradition

hudsonlacerda@diasporabr.com.br

Science Integrity Digest: Concerns about Marseille’s IHUMI/AMU papers – Part 2

This is part 2 of a series describing papers from the #IHUMI / #AMU institutions in #Marseille, #France, with potential problems. In Part 1, I listed papers with #image concerns. In this follow-up I’ll focus on a set of #papers that might have problems with #human subjects research not having received proper #ethical #approval. The articles span a #decade of research on #homeless people in Marseille, and involve #different studies and specimens — but all were run #under #just #one #IRB #approval #number.

https://scienceintegritydigest.com/2021/08/31/concerns-about-marseilles-ihumi-amu-papers-part-2/#more-2672

#science #ethics #medicine #research