Skip to content

Commit

Permalink
Add config flag to enable/disable the permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
Alejandro Fernández Gómez committed Apr 13, 2021
1 parent c4b1137 commit 579278c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions x-pack/plugins/fleet/common/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export interface FleetConfigType {
};
agentPolicyRolloutRateLimitIntervalMs: number;
agentPolicyRolloutRateLimitRequestPerInterval: number;
agentPolicyTightPermissions: boolean;
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export const createConfigurationMock = (): FleetConfigType => {
},
agentPolicyRolloutRateLimitIntervalMs: 100,
agentPolicyRolloutRateLimitRequestPerInterval: 1000,
agentPolicyTightPermissions: false,
},
};
};
1 change: 1 addition & 0 deletions x-pack/plugins/fleet/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export const config: PluginConfigDescriptor = {
agentPolicyRolloutRateLimitRequestPerInterval: schema.number({
defaultValue: AGENT_POLICY_ROLLOUT_RATE_LIMIT_REQUEST_PER_INTERVAL,
}),
agentPolicyTightPermissions: schema.boolean({ defaultValue: false }),
}),
}),
};
Expand Down

0 comments on commit 579278c

Please sign in to comment.