Introduction to OPA Gatekeeper and Rego

The DevNinjas OPA Gatekeeper training teaches you to develop Rego policies, test constraints and assess cluster effects. For platform and security teams with Kubernetes experience; no prior Rego or Gatekeeper knowledge is required.

  • Level: Intermediate, Level 2 of 3
  • Workshop code DW31
  • 3 days
  • Live online
  • German or English

What can you do after three days?

What you will put into practice

What foundation does your team gain?

What you need to know

8 questions, about 6 minutes

Does the content match your level?

Check anonymously which fundamentals you already know and whether the topics in DW31 match your level. The result gives you an honest recommendation for your next step.

Start the knowledge check

No account, no email, no exam

How does the training work and what is included?

“Introduction to OPA Gatekeeper and Rego”: 3 days live with an instructor. Browser exercises, no local installation. Public sessions: maximum 8 participants. PDF certificate of attendance and Open Badge included.

How you work in the workshop

First Gatekeeper policy → mutation and fault diagnosis

  • Practise on your own resources

    You work through exercises on your own resources in DevNinjas Dojo. Your exercise environment is not shared with other participants.

  • Control your own environment

    You have full control over your exercise infrastructure in DevNinjas Dojo. Access uses open protocols such as SSH and HTTPS, as well as web terminals.

  • Ask the instructor live

    Short explanations lead into the exercises. The instructor answers your technical questions live during the workshop.

What is included

No local installation, with proof of attendance for your records

  • Cloud access in your browser

    Your cloud environment in DevNinjas Dojo runs in your browser without local installation, including on restricted corporate networks with VPNs, proxies and firewalls.

    View the Dojo environment
  • A maximum of 8 participants

    Public sessions have no more than 8 participants. For in-house corporate training, we agree the group size with you.

  • Certificate of attendance and Open Badge

    After the workshop, DevNinjas provides a PDF certificate of attendance and an Open Badge. Both document your attendance, not a passed exam.

What does “Introduction to OPA Gatekeeper and Rego” cost and which dates are available?

“Introduction to OPA Gatekeeper and Rego” is a three-day course with a catalogue list price of €1,665 per person plus 19% VAT. The price for an individual date may differ.

Dates and in-house training

Find all current public dates in the dates overview.

View all datesRequest corporate training

Participant experiences with DevNinjas training

Selected voices from the DevNinjas portfolio, each labelled with its source.

4.9/ 5

1047+ participant ratings across all DevNinjas workshops · unfiltered

Instructor
5.0
Content
4.8
Hands-on
4.8

DevNinjas overall: approximately 1,384 participants (partly estimated) · 208 companies · 241 workshops

Voice from DW1

“My colleagues specifically looked for a sysadmin course for Docker with another provider and had an instructor who only set up an IDE for them and then only worked on a task sheet with development tasks. I had a course with lots of background information, an instructor who had a really extensive knowledge of the whole subject matter beyond the slides, and I feel optimally informed.”

Johannes BernsteinTRIMET Gelsenkirchen SE

Voice from DW4

“It was fun and I learned a lot that I can actually apply directly in my company. The trainer's approach was very hands-on, and he repeatedly brought in real-world examples.”

Felix R.Dirk Rossmann GmbH

Voice from DW1

“Nico is a very friendly and technically skilled instructor. He answered all questions well. You quickly notice that he combines academic expertise with many years of professional practice.”

Philipp van Wickevoort CrommelinparcIT GmbH

More than 200 customers, including BMW, Bundeswehr and Deutsche Bahn, trust DevNinjas.

How does this workshop fit into your learning path?

In the learning path “Kubernetes Security”, this training is an optional addition to “Policy as code”.

Vincent Sturm - DevNinjas

Your contact

Vincent Sturm

Key Account Manager

Vincent personally advises you on “Introduction to OPA Gatekeeper and Rego”, public dates and in-house training.

WhatsApp chat

What should you clarify before booking?

The most common questions on prerequisites, scope, learning path and format.

Do I need Rego or Gatekeeper experience beforehand?

No, Rego, OPA, Gatekeeper and CEL are introduced from the beginning. Practical Kubernetes experience is required:

  • Edit resources with kubectl and YAML and apply labels and selectors.
  • Understand pods, deployments, namespaces and basic RBAC.

Simple Git and CI workflows are helpful; no particular programming language or certification is required. The Kubernetes Advanced Workshop provides the missing Kubernetes operations foundation.

How do OPA, Rego and Gatekeeper differ?

OPA makes policy decisions, Rego expresses rules and Gatekeeper integrates both with Kubernetes. Their responsibilities differ:

  • OPA is the policy engine; Rego expresses declarative rules.
  • Gatekeeper integrates admission validation, audit and separate mutation.
  • ConstraintTemplates contain validation logic and a parameter schema; constraints add parameters, scope and enforcement.

Validation uses Rego or CEL, while mutation uses dedicated mutator resources. The workshop focuses on Kubernetes; OPA authorisation for applications, APIs or infrastructure code remains outside its scope.

Which training fits: OPA Gatekeeper or Kyverno?

OPA Gatekeeper fits when you need Rego and reusable constraints for Kubernetes. Compare the focuses:

  • This training covers Gatekeeper, Rego, reusable constraints, audit, gator, additional data and separate mutators.
  • Kyverno training covers Kubernetes-native validation, mutation, generation, deletion and image verification.

Both tools use CEL in parts of their validation models; Gatekeeper mutation uses dedicated mutator CRDs. Which system your team intends to operate over time also matters.

Do ValidatingAdmissionPolicy and CEL replace OPA Gatekeeper?

The native Kubernetes option can be sufficient for object-local validation rules. The models offer different capabilities:

  • ValidatingAdmissionPolicy evaluates CEL inside the API server.
  • Gatekeeper adds constraints, audit of existing resources, Rego, referential policies and gator.

In the training, you compare the same requirement as Rego and CEL ConstraintTemplates and as a native policy. Separately, you examine Gatekeeper mutators and MutatingAdmissionPolicy. Expressiveness, data access, testing and the operating model inform the choice.

How do we test and enable Gatekeeper policies deliberately?

You examine logic and cluster behaviour before moving to deny. You connect different layers:

  • opa test checks Rego; Regal supports style and quality.
  • gator evaluates templates, constraints and test resources together.
  • Admission and audit expose effects in the cluster.

In the workshop, you compare narrow scope, dryrun, warn, deny and bounded exceptions using ownership, approval, expiry and removal criteria. Reversal and recovery are planning dimensions; finished rollout or rollback procedures remain outside the scope.

How hands-on is the OPA Gatekeeper workshop?

You work hands-on with Rego v1, ConstraintTemplates, constraints, admission, and audit. In the training cluster, you develop and examine policies with OPA, Regal and gator and compare Gatekeeper mutation with native admission policies. Observations and decision questions are central, not predefined cluster results.

The learning activities connect CI, staged rollout, External Data, expansion and bounded recovery questions. Finished handover documents, exact restart sequences and a complete provider implementation remain outside the scope.

Does the OPA Gatekeeper training prepare me for certification?

No, the OPA Gatekeeper training does not prepare you for CKA, CKS or KCSA. It covers Gatekeeper development and operations; exam blueprints, practice questions and exam strategy are outside the agenda.

General OPA authorisation, production installation, high availability, performance tuning, fleet architectures, advanced Rego optimisation and a complete External Data provider implementation also remain outside. KCSA Exam Preparation offers a separate certification path; this training deepens technical work with Gatekeeper.

How does the cloud learning environment (DevNinjas Dojo) work?

DevNinjas Dojo provides the cloud learning environment for your exercises during the booked course. Depending on the workshop, you work with Kubernetes clusters, VMs or containers; the OpenShift training uses a shared cluster. Access uses SSH, HTTPS and web terminals, without a proprietary client or local installation.

You need a current browser and internet access. Restricted corporate networks may require VPN, proxy or firewall permissions. For corporate training, a technical check establishes access beforehand.

How many participants attend a DevNinjas training session?

Public DevNinjas training sessions have no more than 8 participants. For corporate training, we agree on the group size with you; larger groups are possible. We discuss any necessary adjustments during planning. The agreed group size is recorded in the proposal.

What certificate do I receive after DevNinjas training?

After DevNinjas training, you receive a PDF certificate of attendance and an Open Badge. Both are included in public sessions and corporate training. The PDF lists the topics covered and the course period from the start date to the end date, without an hour total.

Even for exam preparation courses, both records confirm attendance, not a passed exam.

How would you like to book “Introduction to OPA Gatekeeper and Rego”?

Choose a public date or request DW31 as in-house training: online or on site, with a date agreed with you.