https://github.com/maximiliysiss/kafkactl-token-plugin
Authentication plugin for kafkactl that provides simple token-based authentication, including JWT Bearer tokens. Implemented in Go. 🚀
https://github.com/maximiliysiss/kafkactl-token-plugin
authentication kafka kafkactl token
Last synced: 6 months ago
JSON representation
Authentication plugin for kafkactl that provides simple token-based authentication, including JWT Bearer tokens. Implemented in Go. 🚀
- Host: GitHub
- URL: https://github.com/maximiliysiss/kafkactl-token-plugin
- Owner: maximiliysiss
- License: mit
- Created: 2025-02-08T21:42:56.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-02-08T22:21:18.000Z (over 1 year ago)
- Last Synced: 2025-02-08T23:23:03.986Z (over 1 year ago)
- Topics: authentication, kafka, kafkactl, token
- Language: Go
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# kafkactl-token-plugin
`kafkactl-token-plugin` is an authentication plugin for [`kafkactl`](https://github.com/deviceinsight/kafkactl) that
provides simple token-based authentication (Bearer). The plugin is implemented in Go and can be used
to authenticate Kafka requests.
## Installation
To install the plugin, use the following command:
```sh
go install github.com/maximiliysiss/kafkactl-token-plugin@latest
```
Ensure that the binary is available in your system's `PATH` after installation.
## Usage
This plugin integrates with `kafkactl` to provide token-based authentication. Once installed, you can configure
`kafkactl` to use the plugin by specifying it in the `kafkactl` configuration.
Example configuration in `~/.kafkactl/config.yaml`:
```yaml
sasl:
enabled: true
mechanism: oauth
tokenprovider:
plugin: token
options:
token: {token}
```
## Development
To build the plugin locally:
```sh
git clone https://github.com/maximiliysiss/kafkactl-token-plugin.git
cd kafkactl-token-plugin
go build -o kafkactl-token-plugin .
```
To run tests:
```sh
go test ./...
```
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.