Skip to content

fix(saved-objects): gate config import on advancedSettings.save capabilities#12220

Open
sumukhswamy wants to merge 1 commit into
opensearch-project:mainfrom
sumukhswamy:fix/config-import-capability-check
Open

fix(saved-objects): gate config import on advancedSettings.save capabilities#12220
sumukhswamy wants to merge 1 commit into
opensearch-project:mainfrom
sumukhswamy:fix/config-import-capability-check

Conversation

@sumukhswamy

Copy link
Copy Markdown
Collaborator

Description

The config type block introduced in #12014 (security fix for P432840841) rejected all config-type objects unconditionally and failed the entire import when any were present.

This change:

  • Gates config import on the advancedSettings.save capability: admin users with this capability can import config objects; non-admin users still receive unsupported_type errors for config objects.
  • Changes from fail-all to filter-and-continue: when config objects are rejected, remaining valid objects in the same import are still processed. Config objects are reported as errors in the response alongside any successful imports.

Issues Resolved

Resolves #12201

Screenshot

Testing the changes

Check List

  • All tests pass
    • yarn test:jest
    • yarn test:jest_integration
  • New functionality includes testing.
  • New functionality has been documented.
  • Commits are signed per the DCO using --signoff

@sumukhswamy sumukhswamy force-pushed the fix/config-import-capability-check branch from 5868ba4 to ce9a2c7 Compare June 15, 2026 23:23
@github-actions

github-actions Bot commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

🔗 Workflow run · commit 75e27613e2141405686d7708d8c2315a69ab3ed7

✅ All Jest Tests Passed

No failures detected in JUnit reports.

…ility

The config type block introduced in opensearch-project#12014 (security fix for P432840841)
rejected all config-type objects unconditionally and failed the entire
import when any were present.

This change:
- Gates config import on the advancedSettings.save capability: admin
  users with this capability can import config objects; non-admin users
  still receive unsupported_type errors for config objects.
- Changes from fail-all to filter-and-continue: when config objects are
  rejected, remaining valid objects in the same import are still
  processed. Config objects are reported as errors in the response
  alongside any successful imports.

Resolves opensearch-project#12201

Signed-off-by: sumukhswamy <sumukhhs@amazon.com>
@sumukhswamy sumukhswamy force-pushed the fix/config-import-capability-check branch from ce9a2c7 to 75e2761 Compare June 16, 2026 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] saved_object API call failing in OpenSearch Dashboards 3.7.0 (worked in 3.6.0 and earlier)

1 participant