Skip to content

[Anthropic] remap audit.updates to flattened type, update documentation#19668

Open
vinit-chauhan wants to merge 1 commit into
elastic:mainfrom
vinit-chauhan:anthropic-enhancements
Open

[Anthropic] remap audit.updates to flattened type, update documentation#19668
vinit-chauhan wants to merge 1 commit into
elastic:mainfrom
vinit-chauhan:anthropic-enhancements

Conversation

@vinit-chauhan

Copy link
Copy Markdown
Contributor

Proposed commit message

anthropic: remap audit.updates to flattened type

The `anthropic.audit.updates` field was mapped as `keyword`, but the
Compliance API actually returns an array of setting-change objects,
each containing `type`, `previous_value`, and `current_value`. Indexing
this nested structure into a `keyword` field caused mapping conflicts
and dropped the per-setting before/after values.

Remap the field to `flattened` so the array-of-objects payload is
indexed intact and remains queryable. Update the pipeline test fixtures
and expected output to reflect the real object shape.

Also refresh the manifest and README descriptions to reference Claude's
Compliance API and document the agentless deployment option.

Bump the package version to 0.3.0.

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs.
  • I have added an entry to my package's changelog.yml file.
  • I have verified that Kibana version constraints are current according to guidelines.
  • I have verified that any added dashboard complies with Kibana's Dashboard good practices

Author's Checklist

  • Confirm flattened is the desired type for anthropic.audit.updates (vs. a typed nested/object mapping) given expected query patterns.
  • Replace the placeholder changelog link (https://github.com/elastic/integrations/pull/1) with the real PR number.
  • Verify the README/manifest wording referencing "Claude's Compliance API" matches current product branding.

How to test this PR locally

cd packages/anthropic

# Validate the package builds and field mappings are consistent
elastic-package build
elastic-package check

# Run the audit pipeline tests against the updated fixtures
elastic-package test pipeline --data-streams audit

Confirm the admin_api_key_updated and claude_user_settings_updated test events now index anthropic.audit.updates as an array of objects (type/previous_value/current_value) with no mapping errors.

Related issues

Screenshots

@vinit-chauhan vinit-chauhan requested a review from a team as a code owner June 19, 2026 13:19
@vinit-chauhan vinit-chauhan added documentation Improvements or additions to documentation. Applied to PRs that modify *.md files. bugfix Pull request that fixes a bug issue Team:Integration-Experience Security Integrations Integration Experience [elastic/integration-experience] Integration:anthropic Anthropic labels Jun 19, 2026
@infra-vault-gh-plugin-prod

Copy link
Copy Markdown

Pinging @elastic/integration-experience (Team:Integration-Experience)

@github-actions

Copy link
Copy Markdown
Contributor

✅ Elastic Docs Style Checker (Vale)

No issues found on modified lines!


The Vale linter checks documentation changes against the Elastic Docs style guide. To use Vale locally or report issues, refer to Elastic style guide for Vale.

@elastic-vault-github-plugin-prod

Copy link
Copy Markdown

✅ All changelog entries have the correct PR link.

@elastic-vault-github-plugin-prod

Copy link
Copy Markdown

🚀 Benchmarks report

To see the full report comment with /test benchmark fullreport

@elasticmachine

Copy link
Copy Markdown

💚 Build Succeeded

@qcorporation

Copy link
Copy Markdown
Contributor

@jamiehynds do you want the version to be bumped to 1.0.0 ?

@vera-review-bot

Copy link
Copy Markdown

👀 I have started reviewing the PR

@vera-review-bot

Copy link
Copy Markdown

Vera Review Bot

For the current commit state, I did not find any issues.


🤖 AI-Generated Review | Vera Review Bot | 📚 Knowledge base: integration-skills

⚠️ Automated review — verify suggestions before applying.

@mergify

mergify Bot commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Pull request that fixes a bug issue documentation Improvements or additions to documentation. Applied to PRs that modify *.md files. Integration:anthropic Anthropic Team:Integration-Experience Security Integrations Integration Experience [elastic/integration-experience]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Anthropic] Branding, copy, agentless deployment, and field mapping fixes

4 participants