Repository navigation
Log in to more managed Kafka services, with OAUTHBEARER and AWS MSK IAM, and decide per profile what happens with destructive commands.
Breaking changes
--confirmand typed confirmation are gone. Destructive commands no longer ask you to type a name. Each profile's newdeletion_preventionsetting decides instead (see below), and the default asks y/N. Remove--confirmfrom scripts;-yis all they need.- Profile labels are gone, and
prodis no longer special. Thelabelsfield and--labelsflag were removed, so aprodlabel no longer changes how ntk confirms anything. To protect a production profile, setntk profile edit prod --set deletion_prevention=always, or--set read_only=true. - Tombstones on compacted topics and unclean leader elections now count as destructive. With the default setting they ask first, so a script that sends tombstones without
-ywill stop and ask. Add-y, or setdeletion_preventiontoneveron that profile.
Highlights
- OAUTHBEARER authentication, for Confluent Cloud, Strimzi with Keycloak, Azure Event Hubs and other OAuth setups. The token comes from client credentials (ntk fetches it from your identity provider), a file another tool keeps up to date, or a command that prints it. Tokens from an identity provider are cached between runs until shortly before they expire. SASL extensions are supported for services that need them, such as Confluent Cloud's
logicalCluster. - AWS MSK IAM authentication. ntk finds AWS credentials the way the AWS CLI does (environment,
~/.awsprofiles including SSO, EC2, ECS and EKS roles), and you can name an AWS profile or a role to assume. deletion_preventionon every profile.alwaysrefuses destructive commands, even with-y;prompt, the default, shows the plan and asks;neverjust runs them.--dry-runalways works.- Every profile gets its own colour. New profiles get a colour no other profile uses, shown in prompts and the TUI header. You can still set one yourself, as a hex value like
#ff00eeor a name likered.
Install
- Binaries for Linux (amd64, arm64, armv7), macOS (Intel and Apple silicon), Windows (amd64, arm64) and FreeBSD (amd64) are attached below, each with a
.sha256file. - Docker:
ghcr.io/ntailio/ntk:v1.2.0, also taggedlatest - Go:
go install github.com/ntailio/ntk/cmd/ntk@v1.2.0