kafkactl-token-plugin

command module
v0.0.0-...-b690912 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2025 License: MIT Imports: 5 Imported by: 0

README

kafkactl-token-plugin

kafkactl-token-plugin is an authentication plugin for 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:

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:

sasl:
  enabled: true
  mechanism: oauth
  tokenprovider:
    plugin: token
    options:
      token: {token}

Development

To build the plugin locally:

git clone https://github.com/maximiliysiss/kafkactl-token-plugin.git
cd kafkactl-token-plugin
go build -o kafkactl-token-plugin .

To run tests:

go test ./...

License

This project is licensed under the MIT License. See the LICENSE file for details.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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