Skip to content

Add validation to control script usage on connector (pre / post process function) #4142

@brianf-aws

Description

@brianf-aws

Problem

There is no current way to make sure a user is not allowed to use a scriptService when using a connector. If I happen to have a user use my custom version of OpenSearch they would be able to create connectors without any guardrails to stop them from using a script.

Proposed solution

Use a cluster setting opensearch.plugins.ml.script.allowed_types : None | Painless to control how a user can create connectors.

we can add a check in the connectorAction to get a cluster setting while the connectorAction is getting initialized when the TransportCreateConnectorAction.doExecute action

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions