Certified Kubernetes Security Specialist Exam Notes

References Kubernetes CKS 2023 Complete Course Kubernetes Documentation Table of Contents Kubernetes Secure Architecture Containers Under the Hood Network Policies GUI Elements Secure Ingress Node Metadata Protection CIS Benchmarks Verifying Platform Binaries RBAC Restricting API Access Upgrading Kubernetes Managing Kubernetes Secrets Container Runtime Sandboxes OS Level Security Domains mTLS OPA Image Footprint Static Analysis Image Vulnerability Scanning Secure Supply Chain Behavioral Analytics Kubernetes Secure Architecture Kubernetes certificates are located in /etc/kubernetes/pki. ...

February 21, 2023 · 35 min · 7305 words · Julio Hawthorne

Cloud Supremacy, Pt. 1

Table of Contents Preface Tools of the Trade Architectural Design Introduction After spending a year working on SUSE’s Rancher Support Team, I’ve decided to start sharing what I’ve learned with a broader audience. The explanations and components in this series of articles are oriented toward those of an intermediate skill level. The design approach allows anyone with a background in tech to get their feet wet with Cloud-Native technologies. All source code created for this project will be held in the Cloud Supremacy Project on Github. ...

January 5, 2022 · 2 min · 353 words · Julio Hawthorne

Awesome DevOps

Terminology DevOps - A set of practices that combine IT and Software Engineering practices that assist in reducing the time required to reliably engineer and deploy code to production environments. Version Control - The process of tracking and managing the incremental changes of source code and configuration files, usually handled with various tools and utilities. Continuous Integration (CI) - The practice of merging the distributed copies of a development team’s codebase into a centralized repository, usually several times a day. Continuous Delivery (CD) - The cycle of creating, building, testing and manually releasing software at a high frequency and with consistency. Continuous Deployment (also CD) - Almost identical to the Continuous Delivery process but with automated releases instead of manual releases. Infrastructure - A collection of logically architected systems and network resources that act as the communication backbone between users and services. Infrastructure as Code - The process of designing and engineering infrastructure using code within configuration files and running deployments using software tools. Configuration as Code - Defining the configuration of Computer and Network infrastructure using code and configuration files with a focus on speed and consistent reproducibility. Namespace - A label assigned to a set of resources and processes. Designed so that processes running in a specific namespace can only access other processes, files and resources that reside within that namespace. One process can be assigned several namespaces. Container - An entire operating system running within a virtual namespace on a host system while sharing that host’s resources with varying degrees of restrictions. Containers are typically used to run a single target program with minimal overhead required from the host. Pod - A collection of inter-dependent containers, each running a single target program, that together run as a single application. Container Image - A compressed, frozen template of a pre-configured operating system. Used as the foundation to create containers. Container Orchestration - The process of creating, managing, and monitoring containers through software automation. Container Orchestration was founded by Google’s Borg project (now Kubernetes). Identity Access Management - A system that provides sets of policies, profiles and roles that ensures entities with resource access are assigned the appropriate level of permissions within an environment. Operating Systems Alpine Linux Fedora CoreOS Red Hat CoreOS Flatcar Linux NixOS Programming Languages Python Go HCL Ruby YAML Bash Powershell Source Code Management Subversion Git Gitflow Gitea DevOps Platforms Github Gitlab Bitbucket Gitkraken Azure DevOps JFrog CI/CD Jenkins Buildbot Drone Travis Circle Teamcity Infrastructure as Code Terraform Vagrant Configuration as Code Ansible Saltstack Puppet Chef Packer Container Runtimes OCI Specifications RunC ContainerD Docker Podman/Buildah LXC/LXD Cri-O Crun Kata Containers GVisor systemd-nspawn Container Orchestration Kubernetes (K8s) OKD Openshift K3s Minikube Kind MicroK8s Managed Kubernetes Public Cloud Platforms Amazon Web Services Microsoft Azure Google Cloud Platform IBM Cloud DigitalOcean Testing Frameworks Terratest Security Lynis Apparmor SELinux Vault

March 4, 2021 · 3 min · 471 words · Julio Hawthorne

Kubernetes Exam Notes

Certified Kubernetes Application Developer Kubernetes Architecture Pod: One or more containers that share a single IP address, storage and a namespace. Usually one container runs the primary application with one or more secondary containers providing supporting services. The smallest unit used in a cluster to deploy an application. Pods are typically designed to provide a single process-per-container. To support this architecture, it may be necessary to run logging, a proxy or a special adapter, usually handled by other containers in the same pod. Containers can use IPC, the loopback interface, or a shared filesystem to communicate. ...

December 4, 2020 · 7 min · 1343 words · Julio Hawthorne

What a year...

Cover image created by Ricardo Juchem Looking Back Up until the beginning of this year I spent almost every waking hour in a state of hyper-vigilance. Day-by-day drilling every nugget of Linux, InfoSec, and programming knowledge into my head, hoping to escape poverty and elevate my career like my life depended on it. At that point, it felt like it did. Fast-forward to now. The world is enduring a global pandemic, the US population is more divided than ever, the populations of big cities are dropping at an alarming rate, and I’m…considerably more stable than I’ve been in a long time, maybe ever. I’m working again (a phrase many people lack the privilege to say), earned my RHCSA, and have happily exchanged sleeping on someone else’s couch for a bed that’s mine and mine alone. It makes me wonder why, with all things considered, I still tend to feel like I’m trapped in purgatory. ...

November 3, 2020 · 6 min · 1099 words · Julio Hawthorne

The New Wave: PC Gaming on Linux

Intro Times are quickly changing. As we welcome in a new decade, an ever-increasing push from prominent tech organizations to solidify gaming on Linux looms on the horizon. With Google ending 2019 with the release of their Stadia cloud-gaming platform running on Debian Linux servers, rumors of Steam and Google teaming up to bring Steam to Chromebooks, and an increasing number of Triple-A titles like Shadow of the Tomb Raider releasing Linux native ports, there’s little doubt that this approximately $152 billion grossing industry will have a bright future producing content geared towards the linux platform. ...

April 17, 2020 · 14 min · 2795 words · Heaven

Valar Dohaeris - Game of Pods

Intro In December 2019 I was fortunate enough to attend the Attacking and Defending Kubernetes Clusters workshop at CactusCon 2019 and was completely blown away. Jimmy Mesta did an excellent job creating the content and activities for this workshop. Without a doubt the experience was instrumental in helping me demystify container orchestration and firmly setting me down the DevOps/SecDevOps path. For those curious the documentation and scenarios for the workshop can be found at securekubernetes.com and at this Github repo. Since then passing the Certified Kubernetes Administrator and Certified Kubernetes Application Developer exams have been at the top of my list of priorities, and a nifty little web-application named Game of Pods has been one of my go-to tools for studying. Plus, it’s a lot of fun. ...

January 1, 2020 · 7 min · 1459 words · Julio Hawthorne

Distribution Agnostic Linux Applications

Cover image created by Kirokaze I’m very…passionate about maintaining a clean OS environment. I can’t count the number of times I’ve installed a desktop application only for it to use up an inordinate amount of resources, clutter up my filesystem by writing files everywhere or break the dependencies of other applications. I’ve even (misguidedly) gone as far as creating VMWare virtual machines for different workloads to emulate workspace segmentation and mitigate these issues. Kind of like a janky Qubes OS minus the hardened security profile. Fortunately, several developers felt the same way and developed platforms that lead the way for distribution-agnostic software packaging, namely Flatpak, Snap and AppImage. While the primary goal of these projects is to provide universal software packaging for all Linux distributions, the features I gush about are the security sandboxing profiles and clean installation methods that become a reality using these three platforms. ...

August 29, 2019 · 4 min · 845 words · Julio Hawthorne

Down the Rabbit Hole - Kata Containers

Source: Kata Containers | @Github It’s not uncommon for me on any given day to get completely pulled in by some emerging (or legacy) alternative technology. My rabbit hole du jour ended up being Kata Containers. The original objective was only to make a few settings modifications, which quickly turned into me tanking my entire install. …fantastic. The Computer Gods had not shown on me this day, or so I thought. The steps to reconstructing my Kata Containers installation ended up being a huge learning experience in disguise. Who says it doesn’t pay to go off the beaten path. ...

July 31, 2019 · 10 min · 2001 words · Julio Hawthorne