-
Notifications
You must be signed in to change notification settings - Fork 712
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow disabling controls in probes #1627
Conversation
@@ -231,6 +233,9 @@ func (c *appClient) controlConnection() (bool, error) { | |||
} | |||
|
|||
func (c *appClient) ControlConnection() { | |||
if c.noControls { | |||
return | |||
} |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
@@ -100,9 +102,7 @@ func (c *multiClient) Set(hostname string, endpoints []string) { | |||
hostIDs := report.MakeIDList() | |||
for tuple := range clients { | |||
hostIDs = hostIDs.Add(tuple.ID) | |||
|
|||
_, ok := c.clients[tuple.ID] | |||
if !ok { |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
excuse my ignorance, but does 'no controls' mean 'no logs'? Or just 'no terminals', 'no start/stop', ...? |
No logs, terminals, start / stop etc. On Wednesday, 6 July 2016, Matthias Radestock notifications@github.com
|
Hmm. 'no logs' is a bit annoying. |
To do this would require us to leave all the pipe and control logic If we did allow some controls / pipes, we'd need to specify and enforce On Wednesday, 6 July 2016, Matthias Radestock notifications@github.com
|
Agreed. |
PS: would be really good to get this merged asap, so I can drop it from my priority list :) |
It's just pending a LGTM :) |
I know. I am not qualified to provide that. |
@@ -145,6 +146,7 @@ func main() { | |||
flag.DurationVar(&flags.probe.publishInterval, "probe.publish.interval", 3*time.Second, "publish (output) interval") | |||
flag.DurationVar(&flags.probe.spyInterval, "probe.spy.interval", time.Second, "spy (scan) interval") | |||
flag.StringVar(&flags.probe.pluginsRoot, "probe.plugins.root", "/var/run/scope/plugins", "Root directory to search for plugins") | |||
flag.BoolVar(&flags.probe.noControls, "probe.no-controls", false, "Disable controls (read-only mode)") |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
LGTM with one minor question about flag naming, but I don't particularly mind what its called... |
Fixes #1605