Skip to content
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
35bc539
[Fleet] Add create agentless policies API
nchaulet Nov 3, 2025
d776498
Changes from node scripts/capture_oas_snapshot --include-path /api/…
kibanamachine Nov 4, 2025
37f709f
Changes from make api-docs
kibanamachine Nov 4, 2025
2dec6cc
use API in UI
nchaulet Nov 5, 2025
2459171
Merge branch 'feature-agentless-apis' of github.com:elastic/kibana in…
nchaulet Nov 5, 2025
e7828cf
UI support
nchaulet Nov 5, 2025
38bf9c5
Changes from node scripts/capture_oas_snapshot --include-path /api/…
kibanamachine Nov 5, 2025
e8634cf
Changes from make api-docs
kibanamachine Nov 5, 2025
cc849bc
add response schema
nchaulet Nov 5, 2025
829d741
Merge branch 'feature-agentless-apis' of github.com:elastic/kibana in…
nchaulet Nov 5, 2025
4d6a7c3
few fixes
nchaulet Nov 5, 2025
3d8c4e1
add more tests
nchaulet Nov 6, 2025
7a82da7
more oas description
nchaulet Nov 6, 2025
f7aac5f
Changes from node scripts/capture_oas_snapshot --include-path /api/…
kibanamachine Nov 6, 2025
5ef3d7f
Changes from make api-docs
kibanamachine Nov 6, 2025
c97ddce
fix oas_docs
nchaulet Nov 6, 2025
b73c880
Changes from node scripts/capture_oas_snapshot --include-path /api/…
kibanamachine Nov 6, 2025
b4f356d
Changes from make api-docs
kibanamachine Nov 6, 2025
713b4fd
Apply suggestions from code review
nchaulet Nov 6, 2025
2d6a031
fix oas doc
nchaulet Nov 6, 2025
1ae1271
Changes from node scripts/capture_oas_snapshot --include-path /api/…
kibanamachine Nov 6, 2025
3c1d667
Changes from make api-docs
kibanamachine Nov 6, 2025
bf68680
Changes from node scripts/eslint_all_files --no-cache --fix
kibanamachine Nov 6, 2025
fb9f518
fix tests
nchaulet Nov 7, 2025
7937660
Merge branch 'feature-agentless-apis' of github.com:elastic/kibana in…
nchaulet Nov 7, 2025
8447027
Merge branch 'main' into feature-agentless-apis
elasticmachine Nov 7, 2025
ea42e99
Changes from make api-docs
kibanamachine Nov 7, 2025
0d0d476
Delete agentless API
nchaulet Nov 7, 2025
8d19f3d
Merge branch 'feature-agentless-apis' of github.com:elastic/kibana in…
nchaulet Nov 7, 2025
c1ac032
Changes from node scripts/capture_oas_snapshot --include-path /api/…
kibanamachine Nov 7, 2025
648b6d9
Changes from make api-docs
kibanamachine Nov 7, 2025
3cdf1ae
use delete in UI
nchaulet Nov 7, 2025
9bb9e41
Merge branch 'feature-agentless-apis' of github.com:elastic/kibana in…
nchaulet Nov 7, 2025
dc6585e
fix linting issue
nchaulet Nov 7, 2025
1976e0a
fix linting
nchaulet Nov 7, 2025
12afb84
Merge branch 'main' of github.com:elastic/kibana into feature-agentle…
nchaulet Nov 10, 2025
a8b77d0
fix after review
nchaulet Nov 10, 2025
996abfd
Changes from node scripts/capture_oas_snapshot --include-path /api/…
kibanamachine Nov 10, 2025
3d418d8
Changes from make api-docs
kibanamachine Nov 10, 2025
ec7ce55
fix type
nchaulet Nov 10, 2025
e15ee8b
Merge branch 'feature-agentless-apis' of github.com:elastic/kibana in…
nchaulet Nov 10, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .buildkite/ftr_platform_stateful_configs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ enabled:
- x-pack/platform/test/disable_ems/config.ts
- x-pack/platform/test/examples/config.ts
- x-pack/platform/test/fleet_api_integration/config.agent.ts
- x-pack/platform/test/fleet_api_integration/config.agentless.ts
- x-pack/platform/test/fleet_api_integration/config.agent_policy.ts
- x-pack/platform/test/fleet_api_integration/config.epm.ts
- x-pack/platform/test/fleet_api_integration/config.event_ingested.ts
Expand Down
1,539 changes: 1,272 additions & 267 deletions oas_docs/bundle.json

Large diffs are not rendered by default.

1,539 changes: 1,272 additions & 267 deletions oas_docs/bundle.serverless.json

Large diffs are not rendered by default.

663 changes: 663 additions & 0 deletions oas_docs/output/kibana.serverless.yaml

Large diffs are not rendered by default.

669 changes: 669 additions & 0 deletions oas_docs/output/kibana.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,11 @@ export const AGENT_API_ROUTES = {
BULK_PRIVILEGE_LEVEL_CHANGE_PATTERN: `${API_ROOT}/agents/bulk_privilege_level_change`,
};

export const AGENTLESS_POLICIES_ROUTES = {
CREATE_PATTERN: `${API_ROOT}/agentless_policies`,
DELETE_PATTERN: `${API_ROOT}/agentless_policies/{policyId}`,
};

export const ENROLLMENT_API_KEY_ROUTES = {
CREATE_PATTERN: `${API_ROOT}/enrollment_api_keys`,
LIST_PATTERN: `${API_ROOT}/enrollment_api_keys`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ const _allowedExperimentalValues = {
enableAgentStatusAlerting: true,
enableAgentPrivilegeLevelChange: false,
installIntegrationsKnowledge: false,
agentlessPoliciesAPI: true,
useAgentlessAPIInUI: false,
disabledAgentlessLegacyAPI: false,
};

/**
Expand Down
1 change: 1 addition & 0 deletions x-pack/platform/plugins/shared/fleet/common/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ export type {
BulkGetPackagePoliciesResponse,
BulkGetAgentPoliciesResponse,
GetBulkAssetsResponse,
CreateAgentlessPolicyRequest,
// Models
Agent,
AgentStatus,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import {
UNINSTALL_TOKEN_ROUTES,
FLEET_DEBUG_ROUTES,
REMOTE_SYNCED_INTEGRATIONS_API_ROUTES,
AGENTLESS_POLICIES_ROUTES,
} from '../constants';

export const epmRouteService = {
Expand Down Expand Up @@ -205,6 +206,12 @@ export const packagePolicyRouteService = {
},
};

export const agentlesPolicyRouteService = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
export const agentlesPolicyRouteService = {
export const agentlessPolicyRouteService = {

getCreatePath: () => {
return AGENTLESS_POLICIES_ROUTES.CREATE_PATTERN;
},
};

export const agentPolicyRouteService = {
getListPath: () => {
return AGENT_POLICY_API_ROUTES.LIST_PATTERN;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,19 @@ import { PackagePolicyValidationError } from '../errors';
import { packageToPackagePolicy } from '.';
import { isInputAllowedForDeploymentMode } from './agentless_policy_helper';

export type SimplifiedVars = Record<string, string | string[] | boolean | number | number[] | null>;
export type SimplifiedVars = Record<
string,
| string
| string[]
| boolean
| number
| number[]
| null
| {
isSecretRef: boolean;
id: string;
}
>;

export type SimplifiedPackagePolicyStreams = Record<
string,
Expand Down Expand Up @@ -54,7 +66,7 @@ export interface SimplifiedPackagePolicy {
inputs?: SimplifiedInputs;
supports_agentless?: boolean | null;
supports_cloud_connector?: boolean | null;
additional_datastreams_permissions?: string[];
additional_datastreams_permissions?: string[] | null;
}

export interface FormattedPackagePolicy extends Omit<PackagePolicy, 'inputs' | 'vars'> {
Expand Down
Loading