influxdata / influxdata/kapacitor

Security: Flag -disable-handlers not working [Kapacitor OSS 1.6.3]

Open
#2,681 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
2.4k
Forks
479
Avg merge
4d 16h
Merged PRs (30d)
4

Description

[Kapacitor OSS 1.6.3]

The flag -disable-handlers does not seem to be working with Kapacitor CLI (using both **kapacitor** and **kapacitord**) as mentioned in the following link, although **kapacitor** one seems to be incorrect usage.
https://docs.influxdata.com/kapacitor/v1.6/administration/security/

It states to use the below command to disable a handler:
**`kapacitor -disable-handlers exec,httppost`**

But executing this command gives an error that the flag is not defined.
**_flag provided but not defined: -disable-handlers_**

![image](https://user-images.githubusercontent.com/12856163/158065206-66d54974-81de-4305-8be0-09494fa30033.png)

Looks like this needs to be done while running the Kapactor with this option.
**`kapacitord run -disable-handlers exec`**

![image](https://user-images.githubusercontent.com/12856163/158065229-e8b00fd2-d48a-4b02-bb8b-1e053946047f.png)

**Is it a typo with the command as shown in the image below:**

![image](https://user-images.githubusercontent.com/12856163/158063698-7e103eb3-e58b-4b32-9ebc-bf7822cd43dd.png)

Contributor guide

Open the contributing guide

Research direction

Start with the Kapacitor v1.6 security documentation and compare the documented `kapacitor -disable-handlers` command with `kapacitord run -disable-handlers`. Verify both commands using their help output and reproduce the reported error; done means the documentation and command behavior agree on how to disable handlers.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli, security
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.