matthew / Yubikey all the things

0 polubień
0 forków
1 plików
Ostatnio aktywne 1729621908
Notes from my journey to getting Yubikey to authenticate everything on my system.

U2F for login and sudo access

I followed this guide: https://support.yubico.com/hc/en-us/articles/360016649099-Ubuntu-Linux-Login-Guide-U2F

For step 3, I only did the user-specific pamu2fcfg setup; I did not put it at the system level. This makes the $HOME partition portable, and allows different users on the system to require U2F and/or use different keys.

Challenge-Response auth with YubiKey

When I originally purchased my key, and for four years thereafter, I used the challenge-response feature for restricting user authentication and sudo access.

matthew / deploy.sh

0 polubień
0 forków
1 plików
Ostatnio aktywne 1729621834
This is a script I use on my host for deploying a website; it includes the ability to rollback if anything fails. I have my github action call this file with the repo name and sha in order to deploy a given site.
1 #!/bin/bash
2
3 set -e
4
5 deploy() {
6 local release_path="$1"
7
8 cd "${release_path}"
9 if [ -f "${release_path}/.deploy/deploy.sh" ]; then
10 /bin/bash .deploy/deploy.sh

matthew / Stratigility Microframework

0 polubień
0 forków
2 plików
Ostatnio aktywne 1729621598
An example of how you can write a simple one script framework for a website using PSR-15.
1 {
2 "require": {
3 "laminas/laminas-stratigility": "^3.2",
4 "mezzio/mezzio-fastroute": "^3.0",
5 "laminas/laminas-diactoros": "^2.3",
6 "laminas/laminas-httphandlerrunner": "^1.2"
7 }
8 }
Nowsze Starsze