Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 912 Bytes

File metadata and controls

17 lines (12 loc) · 912 Bytes

Kubernetes Integration

There are two main ways how we can implement custom logic for the API server which gets called during Authentication, Authorization and Admission:

  • Webhooks: Configure webhooks in the API server
  • Direct: Include the custom logic in the API server code

To explore these two variants we implement the following logic in both ways:

  • Authentication: If the token magic-token is provided the request is authenticated as user magic-user which is a member of the group magic-group.
  • Authorization: Allow users which are member of the group magic-group to manage configmaps.
  • Validating Admission: Reject configmaps which contain the value not-allowed-value.
  • Mutating Admission: Add the value magic-value: foobar to all configmaps.

See the subdirectories for a description of the two implementations: