Skip to content

feat(alerting): Block non-PPL monitor CRUD on pluggable dataformat domains#2141

Open
yashgupte21 wants to merge 1 commit into
opensearch-project:mainfrom
yashgupte21:block-dsl-monitors
Open

feat(alerting): Block non-PPL monitor CRUD on pluggable dataformat domains#2141
yashgupte21 wants to merge 1 commit into
opensearch-project:mainfrom
yashgupte21:block-dsl-monitors

Conversation

@yashgupte21
Copy link
Copy Markdown

feat(alerting): Block non-PPL monitor CRUD on pluggable dataformat domains

Reject creation, update, and execution of non-PPL monitors when the pluggable dataformat feature flag is enabled. Only PPL monitors are allowed on these domains. Delete and read operations are not blocked.

Uses FeatureFlags.isEnabled(PLUGGABLE_DATAFORMAT_EXPERIMENTAL_FLAG) from OpenSearch core to gate the behavior.

Also fixes missing settings registration in TransportIndexMonitorAction unit tests (MULTI_TENANT_TRIGGER_EVAL_ENABLED, PPL_MAX_QUERY_LENGTH, PPL_QUERY_RESULTS_MAX_DATAROWS, NOTIFICATION_SUBJECT_SOURCE_MAX_LENGTH, NOTIFICATION_MESSAGE_SOURCE_MAX_LENGTH) which were not reflected in the test setup.

Description

[Describe what this change achieves]

Related Issues

Resolves #[Issue number to be closed when this PR is merged]

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • API changes companion pull request created.
  • Commits are signed per the DCO using --signoff.
  • Public documentation issue/PR created.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

…mains

Reject creation, update, and execution of non-PPL monitors when the
pluggable dataformat feature flag is enabled. Only PPL monitors are
allowed on these domains. Delete and read operations are not blocked.

Uses FeatureFlags.isEnabled(PLUGGABLE_DATAFORMAT_EXPERIMENTAL_FLAG)
from OpenSearch core to gate the behavior.

Also fixes missing settings registration in TransportIndexMonitorAction
unit tests (MULTI_TENANT_TRIGGER_EVAL_ENABLED, PPL_MAX_QUERY_LENGTH,
PPL_QUERY_RESULTS_MAX_DATAROWS, NOTIFICATION_SUBJECT_SOURCE_MAX_LENGTH,
NOTIFICATION_MESSAGE_SOURCE_MAX_LENGTH) which were not reflected in the test setup.

Signed-off-by: YashPradeep Gupte <yashprg@amazon.com>
@yashgupte21 yashgupte21 force-pushed the block-dsl-monitors branch from b07efe4 to 8490590 Compare May 14, 2026 07:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant