mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[Cloud Security] [Fleet] Adding new agentless-api url config for Fleet plugin (#186338)
This commit is contained in:
parent
66c56629ba
commit
9c1799cd0d
4 changed files with 22 additions and 0 deletions
|
@ -261,6 +261,7 @@ export default function ({ getService }: PluginFunctionalProviderContext) {
|
|||
'xpack.discoverEnhanced.actions.exploreDataInChart.enabled (boolean)',
|
||||
'xpack.discoverEnhanced.actions.exploreDataInContextMenu.enabled (boolean)',
|
||||
'xpack.fleet.agents.enabled (boolean)',
|
||||
'xpack.fleet.agentless.api.url (string)',
|
||||
'xpack.fleet.enableExperimental (array)',
|
||||
'xpack.fleet.internal.activeAgentsSoftLimit (number)',
|
||||
'xpack.fleet.internal.fleetServerStandalone (boolean)',
|
||||
|
|
|
@ -30,6 +30,11 @@ export interface FleetConfigType {
|
|||
hosts?: string[];
|
||||
};
|
||||
};
|
||||
agentless?: {
|
||||
api: {
|
||||
url: string;
|
||||
};
|
||||
};
|
||||
agentPolicies?: PreconfiguredAgentPolicy[];
|
||||
packages?: PreconfiguredPackage[];
|
||||
outputs?: PreconfiguredOutput[];
|
||||
|
|
|
@ -102,6 +102,14 @@ describe('Config schema', () => {
|
|||
});
|
||||
}).not.toThrow();
|
||||
});
|
||||
it('should allow to specify a URL in xpack.fleet.agentless.api.url ', () => {
|
||||
expect(() => {
|
||||
config.schema.validate({
|
||||
agentless: { api: { url: 'https://agentless.api.url' } },
|
||||
});
|
||||
}).not.toThrow();
|
||||
});
|
||||
|
||||
describe('deprecations', () => {
|
||||
it('should add a depreciations when trying to enable a non existing experimental feature', () => {
|
||||
const res = applyConfigDeprecations({
|
||||
|
|
|
@ -33,6 +33,7 @@ export const config: PluginConfigDescriptor = {
|
|||
agents: {
|
||||
enabled: true,
|
||||
},
|
||||
agentless: true,
|
||||
enableExperimental: true,
|
||||
developer: {
|
||||
maxAgentPoliciesWithInactivityTimeout: true,
|
||||
|
@ -141,6 +142,13 @@ export const config: PluginConfigDescriptor = {
|
|||
})
|
||||
),
|
||||
}),
|
||||
agentless: schema.maybe(
|
||||
schema.object({
|
||||
api: schema.object({
|
||||
url: schema.maybe(schema.uri({ scheme: ['http', 'https'] })),
|
||||
}),
|
||||
})
|
||||
),
|
||||
packages: PreconfiguredPackagesSchema,
|
||||
agentPolicies: PreconfiguredAgentPoliciesSchema,
|
||||
outputs: PreconfiguredOutputsSchema,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue