x-pack/platform/plugins/shared/anonymization/README.md
Home of the platform-owned anonymization policy service used by inference-related workflows.
The anonymization plugin provides server-side storage and retrieval of anonymization profiles, plus
an internal start contract for resolving effective anonymization policy at runtime.
Primary responsibilities:
inference).x-pack/platform/plugins/shared/anonymizationx-pack/platform/packages/shared/ai-infra/anonymization-commonThe plugin start contract exposes getPolicyService(), which returns:
resolveEffectivePolicy(namespace, target) to resolve the effective field-level policy for a target.getProfile(namespace, profileId) to fetch a single profile.getSalt(namespace) to obtain deterministic per-space salt material.Target shape:
type: data_view | index_pattern | indexid: target identifierBase path: /internal/anonymization/profiles (versioned internal API).
POST /internal/anonymization/profiles - create profileGET /internal/anonymization/profiles/_find - find profilesGET /internal/anonymization/profiles/{id} - get profilePUT /internal/anonymization/profiles/{id} - update profileDELETE /internal/anonymization/profiles/{id} - delete profileThese routes are protected by anonymization feature privileges:
read_anonymizationmanage_anonymization.kibana-anonymization-profiles.server/plugin.tsserver/routes/profiles.tsserver/repository/profiles_repository.tscommon/index.ts, server/types.tsRun targeted tests:
yarn test:jest x-pack/platform/plugins/shared/anonymization
Run API integration tests:
yarn test:ftr --config x-pack/platform/test/api_integration/apis/anonymization/config.ts