:::: MENU ::::

Howk IT-Dienstleistungen

Howk IT Services – Howk IT-Dienstleistungen

Posts Categorized / Hi Tech

  • Aug 06 / 2019
  • 0
Hi Tech

Blog: OPA Gatekeeper: Policy and Governance for Kubernetes

Authors: Rita Zhang (Microsoft), Max Smythe (Google), Craig Hooper (Commonwealth Bank AU), Tim Hinrichs (Styra), Lachie Evenson (Microsoft), Torin Sandall (Styra)

The Open Policy Agent Gatekeeper project can be leveraged to help enforce policies and strengthen governance in your Kubernetes environment. In this post, we will walk through the goals, history, and current state of the project.

The following recordings from the Kubecon EU 2019 sessions are a great starting place in working with Gatekeeper:

Motivations

If your organization has been operating Kubernetes, you probably have been looking for ways to control what end-users can do on the cluster and ways to ensure that clusters are in compliance with company policies. These policies may be there to meet governance and legal requirements or to enforce best practices and organizational conventions. With Kubernetes, how do you ensure compliance without sacrificing development agility and operational independence?

For example, you can enforce policies like:

  • All images must be from approved repositories
  • All ingress hostnames must be globally unique
  • All pods must have resource limits
  • All namespaces must have a label that lists a point-of-contact

Kubernetes allows decoupling policy decisions from the API server by means of admission controller webhooks to intercept admission requests before they are persisted as objects in Kubernetes. Gatekeeper was created to enable users to customize admission control via configuration, not code and to bring awareness of the cluster’s state, not just the single object under evaluation at admission time. Gatekeeper is a customizable admission webhook for Kubernetes that enforces policies executed by the Open Policy Agent (OPA), a policy engine for Cloud Native environments hosted by CNCF.

Evolution

Before we dive into the current state of Gatekeeper, let’s take a look at how the Gatekeeper project has evolved.

  • Gatekeeper v1.0 – Uses OPA as the admission controller with the kube-mgmt sidecar enforcing configmap-based policies. It provides validating and mutating admission control. Donated by Styra.
  • Gatekeeper v2.0 – Uses Kubernetes policy controller as the admission controller with OPA and kube-mgmt sidecars enforcing configmap-based policies. It provides validating and mutating admission control and audit functionality. Donated by Microsoft.
    • Gatekeeper v3.0 – The admission controller is integrated with the OPA Constraint Framework to enforce CRD-based policies and allow declaratively configured policies to be reliably shareable. Built with kubebuilder, it provides validating and, eventually, mutating (to be implemented) admission control and audit functionality. This enables the creation of policy templates for Rego policies, creation of policies as CRDs, and storage of audit results on policy CRDs. This project is a collaboration between Google, Microsoft, Red Hat, and Styra.

Gatekeeper v3.0 Features

Now let’s take a closer look at the current state of Gatekeeper and how you can leverage all the latest features. Consider an organization that wants to ensure all objects in a cluster have departmental information provided as part of the object’s labels. How can you do this with Gatekeeper?

Validating Admission Control

Once all the Gatekeeper components have been installed in your cluster, the API server will trigger the Gatekeeper admission webhook to process the admission request whenever a resource in the cluster is created, updated, or deleted.

During the validation process, Gatekeeper acts as a bridge between the API server and OPA. The API server will enforce all policies executed by OPA.

Policies and Constraints

With the integration of the OPA Constraint Framework, a Constraint is a declaration that its author wants a system to meet a given set of requirements. Each Constraint is written with Rego, a declarative query language used by OPA to enumerate instances of data that violate the expected state of the system. All Constraints are evaluated as a logical AND. If one Constraint is not satisfied, then the whole request is rejected.

Before defining a Constraint, you need to create a Constraint Template that allows people to declare new Constraints. Each template describes both the Rego logic that enforces the Constraint and the schema for the Constraint, which includes the schema of the CRD and the parameters that can be passed into a Constraint, much like arguments to a function.

For example, here is a Constraint template CRD that requires certain labels to be present on an arbitrary object.

apiVersion: templates.gatekeeper.sh/v1beta1
kind: ConstraintTemplate
metadata:
 name: k8srequiredlabels
spec:
 crd:
 spec:
 names:
 kind: K8sRequiredLabels
 listKind: K8sRequiredLabelsList
 plural: k8srequiredlabels
 singular: k8srequiredlabels
 validation:
 # Schema for the `parameters` field
 openAPIV3Schema:
 properties:
 labels:
 type: array
 items: string
 targets:
 - target: admission.k8s.gatekeeper.sh
 rego: |
 package k8srequiredlabels

 deny[{"msg": msg, "details": {"missing_labels": missing}}] {
 provided := {label | input.review.object.metadata.labels[label]}
 required := {label | label := input.parameters.labels[_]}
 missing := required - provided
 count(missing) > 0
 msg := sprintf("you must provide labels: %v", [missing])
 }

Once a Constraint template has been deployed in the cluster, an admin can now create individual Constraint CRDs as defined by the Constraint template. For example, here is a Constraint CRD that requires the label hr to be present on all namespaces.

apiVersion: constraints.gatekeeper.sh/v1beta1
kind: K8sRequiredLabels
metadata:
 name: ns-must-have-hr
spec:
 match:
 kinds:
 - apiGroups: [""]
 kinds: ["Namespace"]
 parameters:
 labels: ["hr"]

Similarly, another Constraint CRD that requires the label finance to be present on all namespaces can easily be created from the same Constraint template.

apiVersion: constraints.gatekeeper.sh/v1beta1
kind: K8sRequiredLabels
metadata:
 name: ns-must-have-finance
spec:
 match:
 kinds:
 - apiGroups: [""]
 kinds: ["Namespace"]
 parameters:
 labels: ["finance"]

As you can see, with the Constraint framework, we can reliably share Regos via the Constraint templates, define the scope of enforcement with the match field, and provide user-defined parameters to the Constraints to create customized behavior for each Constraint.

Audit

The audit functionality enables periodic evaluations of replicated resources against the Constraints enforced in the cluster to detect pre-existing misconfigurations. Gatekeeper stores audit results as violations listed in the status field of the relevant Constraint.

apiVersion: constraints.gatekeeper.sh/v1beta1
kind: K8sRequiredLabels
metadata:
 name: ns-must-have-hr
spec:
 match:
 kinds:
 - apiGroups: [""]
 kinds: ["Namespace"]
 parameters:
 labels: ["hr"]
status:
 auditTimestamp: "2019-08-06T01:46:13Z"
 byPod:
 - enforced: true
 id: gatekeeper-controller-manager-0
 violations:
 - enforcementAction: deny
 kind: Namespace
 message: 'you must provide labels: {"hr"}'
 name: default
 - enforcementAction: deny
 kind: Namespace
 message: 'you must provide labels: {"hr"}'
 name: gatekeeper-system
 - enforcementAction: deny
 kind: Namespace
 message: 'you must provide labels: {"hr"}'
 name: kube-public
 - enforcementAction: deny
 kind: Namespace
 message: 'you must provide labels: {"hr"}'
 name: kube-system

Data Replication

Audit requires replication of Kubernetes resources into OPA before they can be evaluated against the enforced Constraints. Data replication is also required by Constraints that need access to objects in the cluster other than the object under evaluation. For example, a Constraint that enforces uniqueness of ingress hostname must have access to all other ingresses in the cluster.

To configure Kubernetes data to be replicated, create a sync config resource with the resources to be replicated into OPA. For example, the below configuration replicates all namespace and pod resources to OPA.

apiVersion: config.gatekeeper.sh/v1alpha1
kind: Config
metadata:
 name: config
 namespace: "gatekeeper-system"
spec:
 sync:
 syncOnly:
 - group: ""
 version: "v1"
 kind: "Namespace"
 - group: ""
 version: "v1"
 kind: "Pod"

Planned for Future

The community behind the Gatekeeper project will be focusing on providing mutating admission control to support mutation scenarios (for example: annotate objects automatically with departmental information when creating a new resource), support external data to inject context external to the cluster into the admission decisions, support dry run to see impact of a policy on existing resources in the cluster before enforcing it, and more audit functionalities.

If you are interested in learning more about the project, check out the Gatekeeper repo. If you are interested in helping define the direction of Gatekeeper, join the #kubernetes-policy channel on OPA Slack, and join our weekly meetings to discuss development, issues, use cases, etc.

  • Aug 06 / 2019
  • 0
Hi Tech

Blog: A Look Back and What’s in Store for Kubernetes Contributor Summits

Authors:
Paris Pittman (Google), Jonas Rosland (VMware)

tl;drclick here for Barcelona Contributor Summit information.

Seattle Contributor Summit

Seattle Contributor Summit

As our contributing community grows in great numbers, with more than 16,000 contributors this year across 150+ GitHub repositories, it’s important to provide face to face connections for our large distributed teams to have opportunities for collaboration and learning. In Contributor Experience, our methodology with planning events is a lot like our documentation; we build from personas – interests, skills, and motivators to name a few. This way we ensure there is valuable content and learning for everyone.

We build the contributor summits around you:

  • New Contributor
  • Current Contributor
    • docs
    • code
    • community management
  • Subproject OWNERs
  • Special Interest Group (SIG) / Working Group (WG) Chair or Tech Lead
  • Active Contributors
  • Casual Contributors
New Contributor Workshop

New Contributor Workshop

These personas combined with ample feedback from previous events, produce the altogether experience that welcomed over 600 contributors in Copenhagen (May), Shanghai(November), and Seattle(December) in 2018. Seattle’s event drew over 300+ contributors, equal to Shanghai and Copenhagen combined, for the 6th contributor event in Kubernetes history. In true Kubernetes fashion, we expect another record breaking year of attendance. We’ve pre-ordered 900+ contributor patches, a tradition, and we are looking forward to giving them to you!

With that said…
Save the Dates:
Barcelona: May 19th (evening) and 20th (all day)
Shanghai: June 24th (all day)
San Diego: November 18th, 19th, and activities in KubeCon/CloudNativeCon week

In an effort of continual improvement, here’s what to expect from us this year:

  • Large new contributor workshops and contributor socials at all three events expected to break previous attendance records
  • A multiple track event in San Diego for all contributor types including workshops, birds of a feather, lightning talks and more
  • Addition of a “201” / “Intermediate” edition of the new contributor workshop in San Diego
  • An event website!
  • Follow along with updates: kubernetes-dev@googlegroups.com is our main communication hub as always; however, we will also blog here, our Thursday Kubernetes Community Meeting, twitter, SIG meetings, event site, discuss.kubernetes.io, and #contributor-summit on Slack.
  • Opportunities to get involved: We still have 2019 roles available!
    Reach out to Contributor Experience via community@kubernetes.io, stop by a Wednesday SIG update meeting, or catch us on Slack (#sig-contribex).
Unconference voting

Unconference voting

Thanks!

Our 2018 crew ?
Jorge Castro, Paris Pittman, Bob Killen, Jeff Sica, Megan Lehn, Guinevere Saenger, Josh Berkus, Noah Abrahams, Yang Li, Xiangpeng Zhao, Puja Abbassi, Lindsey Tulloch, Zach Corleissen, Tim Pepper, Ihor Dvoretskyi, Nancy Mohamed, Chris Short, Mario Loria, Jason DeTiberus, Sahdev Zala, Mithra Raja

And an introduction to our 2019 crew (a thanks in advance 😉 )…
Jonas Rosland, Josh Berkus, Paris Pittman, Jorge Castro, Bob Killen, Deb Giles, Guinevere Saenger, Noah Abrahams, Yang Li, Xiangpeng Zhao, Puja Abbassi, Rui Chen, Tim Pepper, Ihor Dvoretskyi, Dawn Foster

Relive Seattle Contributor Summit

? 80% growth rate since the Austin 2017 December event
? Event waiting list: 103
? 76 contributors were on-boarded through the New Contributor Workshop
? 92% of the current contributors RSVPs attended and of those:
??‍? 25% were Special Interest Group or Working Group Chairs or Tech Leads
? 70% were eligible to vote in the last steering committee election
? 20+ Sessions
? Most watched to date: Technical Vision, Security, API Code Base Tour
? Top 3 according to survey: Live API Code Review, Deflaking Unconference, Technical Vision
? ? 160 attendees for the social at Garage on Sunday night where we sunk eight balls and recorded strikes (out in some cases)
? Special recognition: SIG Storage, @dims, and @jordan
? Pictures (special thanks to rdodev)
Garage Pic
Reg Desk

Some of the group in Seattle

Some of the group in Seattle

“I love Contrib Summit! The intros and deep dives during KubeCon were a great extension of Contrib Summit. Y’all did an excellent job in the morning to level set expectations and prime everyone.” – julianv
“great work! really useful and fun!” – coffeepac

  • Aug 06 / 2019
  • 0
Hi Tech

Blog: A Look Back and What’s in Store for Kubernetes Contributor Summits

Authors:
Paris Pittman (Google), Jonas Rosland (VMware)

tl;drclick here for Barcelona Contributor Summit information.

Seattle Contributor Summit

Seattle Contributor Summit

As our contributing community grows in great numbers, with more than 16,000 contributors this year across 150+ GitHub repositories, it’s important to provide face to face connections for our large distributed teams to have opportunities for collaboration and learning. In Contributor Experience, our methodology with planning events is a lot like our documentation; we build from personas – interests, skills, and motivators to name a few. This way we ensure there is valuable content and learning for everyone.

We build the contributor summits around you:

  • New Contributor
  • Current Contributor
    • docs
    • code
    • community management
  • Subproject OWNERs
  • Special Interest Group (SIG) / Working Group (WG) Chair or Tech Lead
  • Active Contributors
  • Casual Contributors
New Contributor Workshop

New Contributor Workshop

These personas combined with ample feedback from previous events, produce the altogether experience that welcomed over 600 contributors in Copenhagen (May), Shanghai(November), and Seattle(December) in 2018. Seattle’s event drew over 300+ contributors, equal to Shanghai and Copenhagen combined, for the 6th contributor event in Kubernetes history. In true Kubernetes fashion, we expect another record breaking year of attendance. We’ve pre-ordered 900+ contributor patches, a tradition, and we are looking forward to giving them to you!

With that said…
Save the Dates:
Barcelona: May 19th (evening) and 20th (all day)
Shanghai: June 24th (all day)
San Diego: November 18th, 19th, and activities in KubeCon/CloudNativeCon week

In an effort of continual improvement, here’s what to expect from us this year:

  • Large new contributor workshops and contributor socials at all three events expected to break previous attendance records
  • A multiple track event in San Diego for all contributor types including workshops, birds of a feather, lightning talks and more
  • Addition of a “201” / “Intermediate” edition of the new contributor workshop in San Diego
  • An event website!
  • Follow along with updates: kubernetes-dev@googlegroups.com is our main communication hub as always; however, we will also blog here, our Thursday Kubernetes Community Meeting, twitter, SIG meetings, event site, discuss.kubernetes.io, and #contributor-summit on Slack.
  • Opportunities to get involved: We still have 2019 roles available!
    Reach out to Contributor Experience via community@kubernetes.io, stop by a Wednesday SIG update meeting, or catch us on Slack (#sig-contribex).
Unconference voting

Unconference voting

Thanks!

Our 2018 crew ?
Jorge Castro, Paris Pittman, Bob Killen, Jeff Sica, Megan Lehn, Guinevere Saenger, Josh Berkus, Noah Abrahams, Yang Li, Xiangpeng Zhao, Puja Abbassi, Lindsey Tulloch, Zach Corleissen, Tim Pepper, Ihor Dvoretskyi, Nancy Mohamed, Chris Short, Mario Loria, Jason DeTiberus, Sahdev Zala, Mithra Raja

And an introduction to our 2019 crew (a thanks in advance 😉 )…
Jonas Rosland, Josh Berkus, Paris Pittman, Jorge Castro, Bob Killen, Deb Giles, Guinevere Saenger, Noah Abrahams, Yang Li, Xiangpeng Zhao, Puja Abbassi, Rui Chen, Tim Pepper, Ihor Dvoretskyi, Dawn Foster

Relive Seattle Contributor Summit

? 80% growth rate since the Austin 2017 December event
? Event waiting list: 103
? 76 contributors were on-boarded through the New Contributor Workshop
? 92% of the current contributors RSVPs attended and of those:
??‍? 25% were Special Interest Group or Working Group Chairs or Tech Leads
? 70% were eligible to vote in the last steering committee election
? 20+ Sessions
? Most watched to date: Technical Vision, Security, API Code Base Tour
? Top 3 according to survey: Live API Code Review, Deflaking Unconference, Technical Vision
? ? 160 attendees for the social at Garage on Sunday night where we sunk eight balls and recorded strikes (out in some cases)
? Special recognition: SIG Storage, @dims, and @jordan
? Pictures (special thanks to rdodev)
Garage Pic
Reg Desk

Some of the group in Seattle

Some of the group in Seattle

“I love Contrib Summit! The intros and deep dives during KubeCon were a great extension of Contrib Summit. Y’all did an excellent job in the morning to level set expectations and prime everyone.” – julianv
“great work! really useful and fun!” – coffeepac

  • Aug 06 / 2019
  • 0
Hi Tech

Blog: A Look Back and What’s in Store for Kubernetes Contributor Summits

Authors:
Paris Pittman (Google), Jonas Rosland (VMware)

tl;drclick here for Barcelona Contributor Summit information.

Seattle Contributor Summit

Seattle Contributor Summit

As our contributing community grows in great numbers, with more than 16,000 contributors this year across 150+ GitHub repositories, it’s important to provide face to face connections for our large distributed teams to have opportunities for collaboration and learning. In Contributor Experience, our methodology with planning events is a lot like our documentation; we build from personas – interests, skills, and motivators to name a few. This way we ensure there is valuable content and learning for everyone.

We build the contributor summits around you:

  • New Contributor
  • Current Contributor
    • docs
    • code
    • community management
  • Subproject OWNERs
  • Special Interest Group (SIG) / Working Group (WG) Chair or Tech Lead
  • Active Contributors
  • Casual Contributors
New Contributor Workshop

New Contributor Workshop

These personas combined with ample feedback from previous events, produce the altogether experience that welcomed over 600 contributors in Copenhagen (May), Shanghai(November), and Seattle(December) in 2018. Seattle’s event drew over 300+ contributors, equal to Shanghai and Copenhagen combined, for the 6th contributor event in Kubernetes history. In true Kubernetes fashion, we expect another record breaking year of attendance. We’ve pre-ordered 900+ contributor patches, a tradition, and we are looking forward to giving them to you!

With that said…
Save the Dates:
Barcelona: May 19th (evening) and 20th (all day)
Shanghai: June 24th (all day)
San Diego: November 18th, 19th, and activities in KubeCon/CloudNativeCon week

In an effort of continual improvement, here’s what to expect from us this year:

  • Large new contributor workshops and contributor socials at all three events expected to break previous attendance records
  • A multiple track event in San Diego for all contributor types including workshops, birds of a feather, lightning talks and more
  • Addition of a “201” / “Intermediate” edition of the new contributor workshop in San Diego
  • An event website!
  • Follow along with updates: kubernetes-dev@googlegroups.com is our main communication hub as always; however, we will also blog here, our Thursday Kubernetes Community Meeting, twitter, SIG meetings, event site, discuss.kubernetes.io, and #contributor-summit on Slack.
  • Opportunities to get involved: We still have 2019 roles available!
    Reach out to Contributor Experience via community@kubernetes.io, stop by a Wednesday SIG update meeting, or catch us on Slack (#sig-contribex).
Unconference voting

Unconference voting

Thanks!

Our 2018 crew ?
Jorge Castro, Paris Pittman, Bob Killen, Jeff Sica, Megan Lehn, Guinevere Saenger, Josh Berkus, Noah Abrahams, Yang Li, Xiangpeng Zhao, Puja Abbassi, Lindsey Tulloch, Zach Corleissen, Tim Pepper, Ihor Dvoretskyi, Nancy Mohamed, Chris Short, Mario Loria, Jason DeTiberus, Sahdev Zala, Mithra Raja

And an introduction to our 2019 crew (a thanks in advance 😉 )…
Jonas Rosland, Josh Berkus, Paris Pittman, Jorge Castro, Bob Killen, Deb Giles, Guinevere Saenger, Noah Abrahams, Yang Li, Xiangpeng Zhao, Puja Abbassi, Rui Chen, Tim Pepper, Ihor Dvoretskyi, Dawn Foster

Relive Seattle Contributor Summit

? 80% growth rate since the Austin 2017 December event
? Event waiting list: 103
? 76 contributors were on-boarded through the New Contributor Workshop
? 92% of the current contributors RSVPs attended and of those:
??‍? 25% were Special Interest Group or Working Group Chairs or Tech Leads
? 70% were eligible to vote in the last steering committee election
? 20+ Sessions
? Most watched to date: Technical Vision, Security, API Code Base Tour
? Top 3 according to survey: Live API Code Review, Deflaking Unconference, Technical Vision
? ? 160 attendees for the social at Garage on Sunday night where we sunk eight balls and recorded strikes (out in some cases)
? Special recognition: SIG Storage, @dims, and @jordan
? Pictures (special thanks to rdodev)
Garage Pic
Reg Desk

Some of the group in Seattle

Some of the group in Seattle

“I love Contrib Summit! The intros and deep dives during KubeCon were a great extension of Contrib Summit. Y’all did an excellent job in the morning to level set expectations and prime everyone.” – julianv
“great work! really useful and fun!” – coffeepac

  • Aug 06 / 2019
  • 0
Hi Tech

Here’s The Fossil Gen 5 Smartwatch Leaked With Specs

Here's The Fossil Gen 5 Smartwatch Leaked With Specs
Fossil is brimming with excitement over its upcoming smartwatch launch, having teased on Twitter over the weekend that “something big is coming Monday.” Well, forget about waiting another day. A leaked photo showing two models of Fossil’s 5th generation smartwatches has found its way online, along with a rundown of some of the specs.

Both

  • Aug 06 / 2019
  • 0
Hi Tech

Galaxy Note 10: What We Know So Far About Samsung’s Latest Flagship 5G Phone

Galaxy Note 10: What We Know So Far About Samsung's Latest Flagship 5G Phone
Samsung is set to unveil its all-new Galaxy Note 10 flagship smartphone family at a Samsung Unpacked event on Wednesday, August 7th. Fortunately, we already know quite a bit about the smartphone so far, which means that this week’s unveil is more of a formality at this point. 

Processor

Up until a few days ago, we were pretty certain

  • Aug 06 / 2019
  • 0
Hi Tech

Microsoft Lures Twitch’s Biggest Fortnite Streamer To Struggling Mixer Platform

Microsoft Lures Twitch's Biggest Fortnite Streamer To Struggling Mixer Platform
Microsoft appears ready to heavily push its streaming platform Mixer and to invest some big money into the platform in the process. The big coup that Microsoft has pulled off is luring away Twitch’s biggest star, Tyler “Ninja” Blevins. Ninja announced his big move on Twitter last week stating that he would be switching live streams exclusively

  • Aug 06 / 2019
  • 0
Hi Tech

Windows 7’s Pending Support Doom Sends Microsoft Customers Flocking To Windows 10

Windows 7's Pending Support Doom Sends Microsoft Customers Flocking To Windows 10
In case you haven’t been paying attention in the world of operating systems, Microsoft’s aging Windows 7 is finally nearing the end of the road with respect to official support. Windows 7 was first released in 2009 and should have long ago lost its support privileges, but Microsoft’s missteps with Windows 8.x and early Windows 10 apprehension

  • Aug 06 / 2019
  • 0
Hi Tech

Samsung’s First Galaxy Smartphones With AMD Radeon Graphics Could Arrive In 2021

Samsung's First Galaxy Smartphones With AMD Radeon Graphics Could Arrive In 2021
During a recent earnings call with investors, Samsung indicated that its mobile devices could leverage AMD’s graphics technology roughly two years from now, which means we could potentially see a Galaxy smartphone sporting a Radeon GPU (perhaps Navi) in 2021. That is not a foregone conclusion by any stretch, though.

Let’s take a small step

  • Aug 06 / 2019
  • 0
Hi Tech

XFX Radeon RX 5700 XT THICC2 And PowerColor Red Devil Gaming Cards Leaked

XFX Radeon RX 5700 XT THICC2 And PowerColor Red Devil Gaming Cards Leaked
If Paul Revere was still around and he was into PC gaming, he would be storming the streets yelling, “Custom Navi cards are coming!” We already know this, of course, because AMD has already indicated that its hardware partners will launch custom Navi models starting around the middle of August. Ahead of the anticipated launches, some leaked