eapol-operator

command module
v0.0.0-...-02ba5bb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

README

eapol-operator

An 802.1x authentication operator for Kubernetes

This provides the "authenticator" side of 802.1x network security on secondary interfaces on a Kubernetes node. The goal is to allow 802.1x authentication to occur without and intervening switch, when other network devices are plugged in to a Kubernetes node directly, such as in the O-RAN LLS-C1 configuration.

Installation

The OLM bundle is published at quay.io/openshift-kni/eapol-operator-bundle and should be installable by pointing OLM at the latest bundle image there.

This operator was built with the operator SDk, and the operator-sdk tool can install and run this operator from the source tree.

Usage

This operator provides a single Authenticator CRD that represents a group of secondary interfaces that should be configured to be 802.1x authenticators.

If you require a different configuration for a different set of interfaces, you can create multiple CRDs, one for each set of interfaces that share a common configuration.

Example CRD:

apiVersion: eapol.eapol.openshift.io/v1
kind: Authenticator
metadata:
  name: authenticator-sample
spec:
  enabled: true
  interfaces:
    - ens3f0
    - ens3f1
  authentication:
    radius:
      authServer: "authentication-server.external.example.com"
      authSecret: "radius-authsecret"
      authPort: 1812
  configuration:
    eapReauthPeriod: 3600
  trafficControl:
    unprotectedPorts:
      udp:
        - 319
        - 320

The operator will report status in the same CRD used for configuration:

status:
  interfaces:
    - name: ens3f0
      status: Enabled
      authenticatedClients:
        - 00:00:00:00:00:01
    - name: ens3f1
      status: Disabled
      authenticatedClients: []

The authenticatedClients status lists the MAC addresses of any clients authenticated on the given interface.

Architecture

The EAPOL-operator starts one daemonset for each configuration (and each configuration may refer to multiple physical ports). The pod consists of two containers, one which runs the hostapd utility that performs the authenticator function of the 802.1x protocol, and a monitor application which configures traffic control based on the authentication state.

For SR-IOV interfaces, this operator implements port-based control, and allows traffic to all VFs once an authentication occurs on the PF.

MACSEC support is not currently implemented.

Building

The container builder defaults to podman, but you can export CONTAINER_ENGINE=docker to use docker instead.

  • Run make docker-build to build the main operator controller container.
  • Run make authenticator-build to build the authenticator/monitor container.
  • Run make bundle-build to build the OLM operator bundle container.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
v1
Package v1 contains API Schema definitions for the eapol v1 API group +kubebuilder:object:generate=true +groupName=eapol.eapol.openshift.io
Package v1 contains API Schema definitions for the eapol v1 API group +kubebuilder:object:generate=true +groupName=eapol.eapol.openshift.io
internal
k8s
logging
Package logging sets up structured logging in a uniform way, and redirects glog statements into the structured log.
Package logging sets up structured logging in a uniform way, and redirects glog statements into the structured log.
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL