Custom Root Trust with HttpClient in .NET

Custom root trust is a security practice where an application or system is configured to trust only a specific set of root certificates. This approach restricts the application’s trust to a limited, predefined list of Certificate Authorities, enhancing security by preventing reliance on external or unverified certificates. The practise is also use in a corporate setting to limit trust to an internal root certificate. Custom root trust is similar to, but differs from Certificate Pinning, where Certificate Pinning is the act of trusting a specific certificate and custom root trust is trusting all certificates issued by the trusted root certificate. ...

November 17, 2023 · 2 min

Workarounds for creating Azure Hybrid Connections with Terraform

UPDATE: The bug has been fixed and released in 3.98. The workarounds are no longer needed. Due to some bugs in the current Terraform azurerm provider (v3.80.0), certain workarounds are needed to create a working hybrid connection. The issue is present for both Function Apps and Web Apps. Following the official documentation’s examples, the following code will not work and will result in a seemingly successful deployment, but the hybrid connection will not work. No connection will be able to be established, but everything looks fine in the Azure Portal. ...

November 16, 2023 · 3 min

Improving the Bambu Studio Update Script for Linux

UPDATE: Bambu Studio has now been released as a Flatpak and if you run an operating system supporting Flatpak, I would highly suggest using that instead. Huge thanks to hadess and may I suggest thanking him through his wishlist. Earlier, I wrote about updating Bambu Studio on Fedora Linux. I have since then made a few improvements, such as checking if a newer version exists. #!/bin/bash set -euo pipefail IFS=$'\n\t' URL=https://api.github.com/repos/bambulab/BambuStudio/releases DISTRO=Fedora # or ubuntu (ubuntu is lowercase on the release page) OUTPUT=./BambuStudio.AppImage VERSION_FILE="$OUTPUT.ver" RELEASES=$(curl -s $URL) LATEST=$(jq -r .[].tag_name <<< $RELEASES | sort -Vr | head -n 1) [[ -e $VERSION_FILE ]] && CURRENT=$(cat $VERSION_FILE) || CURRENT="" if [[ $CURRENT != $LATEST ]]; then DOWNLOAD_URL=$(jq -r ".[] | select(.tag_name == \"$LATEST\") | .assets[] | select(.name | contains(\"$DISTRO\")) | .browser_download_url" <<< $RELEASES) wget -O $OUTPUT $DOWNLOAD_URL echo $LATEST > $VERSION_FILE echo "Bambu Studio is updated to $LATEST." else echo "Bambu Studio is already up-to-date." fi

November 3, 2023 · 1 min

Updating Bambu Studio on Fedora Linux

UPDATE: Consider taking a look at the the improved script here. UPDATE 2: Bambu Studio has now been released as a Flatpak and if you run an operating system supporting Flatpak, I would highly suggest using that instead. Huge thanks to hadess and may I suggest thanking him through his wishlist. To avoid having to visit GitHub to download new versions of Bambu Studio for Linux, use the below script to download and update your AppImage. ...

October 30, 2023 · 1 min

Bambu Studio on Fedora Silverblue

UPDATE: Bambu Studio has now been released as a Flatpak. Huge thanks to hadess and may I suggest thanking him through his wishlist. Bambu Studio for Linux is only distributed as an AppImage, not as a Flatpak and when running on Fedora, Bambu Studio requires extra dependencies to be installed. This fact makes it challenging to run on an immutable operating system like Fedora Silverblue. To workaround this challenge, tools like Silverblue’s built-in Toolbox or Distrobox can be used. ...

October 30, 2023 · 1 min