3 Git Tips for Rebasing Quicker

Interactive rebase is the core of my Git process for creating a neat history to aid code-reviews and my future self with bisecting through history. I rebase so much that some aspects of Git become tedious, but fortunately, Git has a few features and configuration options to help rebase quicker.

Open Policy Agent: Konstraint

Konstraint is a tool for converting Open Policy Agent policies written in rego into ConstraintTemplates and Constraints for Gatekeeper. In Open Policy Agent: Introduction to Gatekeeper, we learned how to deploy Gatekeeper and create ConstraintTemplates and Constraints. Then in Open Policy Agent: Unit Testing Gatekeeper Policies, we copied rego from ConstraintTemplates to validate syntax and unit test policies.

Open Policy Agent: Unit Testing Gatekeeper Policies

Previously, in Open Policy Agent: Introduction to Gatekeeper, we deployed Gatekeeper in a Kubernetes cluster and created some sample ConstraintTemplates and constraints to enforce Open Policy Agent (OPA) policies. Now, we’ll tackle creating unit tests for our policies. Download opa CLI Open Policy Agent provides a CLI named opa.

Open Policy Agent: Introduction to Gatekeeper

Open Policy Agent (OPA) focuses on creating a single declarative policy language (rego) that can enforce compliance and promote security. Different projects focused on a range of areas can use Open Policy Agent, so users have one familiar language to use, and projects don’t have to invent their policy language.