https://github.com/ripta/linkerd-dynauth
CRD and controller for dynamic server authorization based on namespace selectors
https://github.com/ripta/linkerd-dynauth
Last synced: 8 months ago
JSON representation
CRD and controller for dynamic server authorization based on namespace selectors
- Host: GitHub
- URL: https://github.com/ripta/linkerd-dynauth
- Owner: ripta
- License: apache-2.0
- Created: 2022-11-27T21:42:19.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-24T16:02:12.000Z (9 months ago)
- Last Synced: 2025-04-23T04:19:22.863Z (8 months ago)
- Language: Go
- Size: 10.3 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# linkerd-dynauth
CRD to allow dynamic namespace selector in server authorizations, somewhat
implementing https://github.com/linkerd/linkerd2/issues/9419
After making changes to the API under `api/v1alpha1`, regenerate manifest:
```
make generate manifests
```
## Building
To build and push your image to the location specified by `IMG`:
```sh
make docker-build docker-push IMG=/linkerd-dynauth2:tag
```
## Installing
To install the CRDs into the cluster:
```sh
make install
```
To deploy the Manager to the cluster with the image specified by `IMG`:
```sh
make deploy IMG=/linkerd-dynauth2:tag
```
**NOTE**: If you encounter RBAC errors, you may need to grant yourself
cluster-admin privileges or be logged in as admin.
## Uninstall
To delete the APIs(CRDs) from the cluster:
```sh
make uninstall
```
To undeploy the controller from the cluster:
```sh
make undeploy
```
## Project Distribution
Following are the steps to build the installer and distribute this project to users.
1. Build the installer for the image built and published in the registry:
```sh
make build-installer IMG=/linkerd-dynauth2:tag
```
NOTE: The makefile target mentioned above generates an 'install.yaml' file in
the dist directory. This file contains all the resources built with Kustomize,
which are necessary to install this project without its dependencies.
2. Using the installer
Users can just run:
```sh
kubectl apply -f https://raw.githubusercontent.com/ripta/linkerd-dynauth2/main/dist/install.yaml
```