Hello there! Today, we're diving deep into the process of adding SSL certification to services deployed on a k3s cluster. By the end of this guide, you'll be able to securely serve your services over HTTPS, enhancing the security of your applications.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Use this script if you have an external monitor (HDMI) and want that as primary display | |
# but switch to the laptop monitor (eDP) when the external monitor is off (power off or otherwise) | |
# Guess if you have the external monitor attached to a UPS device, you don't need this script...! | |
# Detect when monitor is powered off and switch the laptop display back on | |
# and vice-versa, keeping the external monitor as primary display whenever | |
# possible. | |
function get_laptop_display() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function uuidgen() { | |
chunks=(4 2 2 2 6) | |
elems=() | |
for c in ${chunks[@]}; do | |
hex_chunk=$(xxd -l $c -p /dev/urandom) | |
elems+=( $hex_chunk ) | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Storing cryptographic password hashes in database or memory | |
// and comparing with password. | |
package main | |
import ( | |
"log" | |
"errors" | |
"strings" | |
"crypto/subtle" | |
"encoding/base64" |
OlderNewer