Skip to content

Commit

Permalink
refactor key id
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-cmsoft committed Dec 6, 2024
1 parent 509b503 commit 0791d1d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ nats:
plugins:
<plugin_identifier>: # Can have as many of these as you like
source: <plugin_source>
assessmentPlanIds:
assessment-plan-ids:
- <assessment_plan_id>
- <assessment_plan_id>
policies:
Expand Down
2 changes: 1 addition & 1 deletion cmd/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ type agentPluginConfig map[string]string
type agentPlugin struct {
AssessmentPlanIds []string `mapstructure:"assessment-plan-ids"`
Source string `mapstructure:"source"`
Policies []agentPolicy `mapstructure:"policy"`
Policies []agentPolicy `mapstructure:"policies"`
Config agentPluginConfig `mapstructure:"config"`
}

Expand Down
8 changes: 4 additions & 4 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ nats:

plugins:
<plugin_identifier>: # Can have as many of these as you like
assessmentPlanIds:
assessment-plan-ids:
- <assessment_plan_id>
- <assessment_plan_id>
source: <plugin_source>
Expand All @@ -36,7 +36,7 @@ The `nats_domain` and `nats_port` items are the domain and port of the NATS serv
The `plugin_identifier` is a unique identifier for the plugin, and is used to identify the plugin in the logs, you can
name this whatever you like but it must be unique.

The `assessmentPlanIds` are the ids of the assessment plans that the plugin is associated with.
The `assessment-plan-ids` are the ids of the assessment plans that the plugin is associated with.

The `plugin_source` is the path to the plugin binary that the agent will run. This can be a relative or absolute path or
even a URL to a remote plugin.
Expand All @@ -57,7 +57,7 @@ nats:

plugins:
local-ssh-security:
assessmentPlanIds:
assessment-plan-ids:
- "12341234-1234-1234-123412341234"

source: "../plugin-local-ssh/cf-plugin-local-ssh"
Expand All @@ -70,7 +70,7 @@ plugins:
password: "password"

local-ssh-security2:
assessmentPlanIds:
assessment-plan-ids:
- "45674567-4567-4567-456745674567"

source: "../plugin-local-ssh/cf-plugin-local-ssh"
Expand Down

0 comments on commit 0791d1d

Please sign in to comment.