-
Notifications
You must be signed in to change notification settings - Fork 25k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restrict Connector APIs to manage/monitor_connector privileges #119863
Restrict Connector APIs to manage/monitor_connector privileges #119863
Conversation
…es (elastic#119389)" (elastic#119833) This reverts commit e0cefb8.
Pinging @elastic/search-eng (Team:SearchOrg) |
Pinging @elastic/search-extract-and-transform (Team:Search - Extract & Transform) |
Hi @jedrazb, I've created a changelog YAML for you. |
Hi @jedrazb, I've updated the changelog YAML for you. Note that since this PR is labelled |
@elasticmachine merge upstream |
…elasticsearch into adapt-connector-api-roles-again
…206067) ## Summary `viewer` role is not sufficient to call Connector APIs with new change elastic/elasticsearch#119863 Update the FTR tests to use developer role for testing
…lastic#206067) ## Summary `viewer` role is not sufficient to call Connector APIs with new change elastic/elasticsearch#119863 Update the FTR tests to use developer role for testing
|
||
public static final String CONNECTOR_INDEX_NAME = ConnectorTemplateRegistry.CONNECTOR_INDEX_NAME_PATTERN; | ||
|
||
/** | ||
* @param client A client for executing actions on the connector index | ||
*/ | ||
public ConnectorIndexService(Client client) { | ||
this.client = client; | ||
this.clientWithOrigin = new OriginSettingClient(client, CONNECTORS_ORIGIN); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you make this variable reuse the old name, a LOT of the diff goes away
this.client = new OriginSettingClient(client, CONNECTORS_ORIGIN);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(same note for the ConnectorSyncJobIndexService.java)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like naming OriginSettingClient
as clientWithOrigin
is established patter in ES https://github.com/search?q=repo%3Aelastic%2Felasticsearch+clientWithOrigin&type=code therefore I prefer to keep it like this so that we are explicit how we access the soon to be system indices
Reapply "Restrict Connector APIs to manage/monitor_connector privileg…es (#119389)" (#119833)
Merge again: #119389 after fixing FTR test in Kibana that would cause issues for serverless
viewer
role this is the fix elastic/kibana#206067Changes
monitor/manage_connector
privilege for access control to Connector APIsCONNECTORS_ORIGIN
) in index service logicRelated dev issue:
Restrict Connector APIs to manage/monitor_connector privileges