command
module
Version:
v0.0.1
Opens a new window with list of versions in this module.
Published: Aug 18, 2021
License: MIT
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Azure Active Directory (AAD) provider
Azure Active Directory (AAD) provider is used for mutating Kubernetes labels to display name of the AAD user using Microsoft Graph API.
This repo is meant for testing Gatekeeper external data feature. Do not use for production.
-
Make sure you have a Kubernetes user that matches the AAD user you want to query (e.g. user@example.com
).
-
Create a new service principal and assign necessary Microsoft Graph API permissions to read user profile (profile
and User.Read.All
).
-
Add your tenant ID, client ID, client secret to the manifest/secrets.yaml
file.
-
Deploy Gatekeeper with external data enabled (--enable-external-data
).
Installation
-
kubectl apply -f manifest
-
kubectl apply -f policy/provider.yaml
- Update
proxyURL
if it's not http://aad-provider.default:8090
(default)
-
kubectl apply -f policy/assignmetadata.yaml
Mutation
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.