Skip to content

Commit

Permalink
Revert "[Enterprise Search] Add .connector-secrets system index and…
Browse files Browse the repository at this point in the history
… GET/POST requests (elastic#103683)"

This reverts commit b4345d9.
  • Loading branch information
navarone-feekery committed Jan 25, 2024
1 parent 4e91d69 commit 0a29fba
Show file tree
Hide file tree
Showing 39 changed files with 5 additions and 1,501 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,12 @@ A successful call returns an object with "cluster" and "index" fields.
"none",
"post_behavioral_analytics_event",
"read_ccr",
"read_connector_secrets",
"read_fleet_secrets",
"read_ilm",
"read_pipeline",
"read_security",
"read_slm",
"transport_client",
"write_connector_secrets",
"write_fleet_secrets"
],
"index" : [
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -326,16 +326,6 @@ public class ClusterPrivilegeResolver {
CROSS_CLUSTER_REPLICATION_PATTERN
);

public static final NamedClusterPrivilege READ_CONNECTOR_SECRETS = new ActionClusterPrivilege(
"read_connector_secrets",
Set.of("cluster:admin/xpack/connector/secret/get")
);

public static final NamedClusterPrivilege WRITE_CONNECTOR_SECRETS = new ActionClusterPrivilege(
"write_connector_secrets",
Set.of("cluster:admin/xpack/connector/secret/post")
);

private static final Map<String, NamedClusterPrivilege> VALUES = sortByAccessLevel(
Stream.of(
NONE,
Expand Down Expand Up @@ -390,9 +380,7 @@ public class ClusterPrivilegeResolver {
POST_BEHAVIORAL_ANALYTICS_EVENT,
MANAGE_SEARCH_QUERY_RULES,
CROSS_CLUSTER_SEARCH,
CROSS_CLUSTER_REPLICATION,
READ_CONNECTOR_SECRETS,
WRITE_CONNECTOR_SECRETS
CROSS_CLUSTER_REPLICATION
).filter(Objects::nonNull).toList()
);

Expand Down

This file was deleted.

7 changes: 0 additions & 7 deletions x-pack/plugin/ent-search/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,6 @@ dependencies {
module ':modules:search-business-rules'
}

testClusters.configureEach {
testDistribution = 'DEFAULT'
setting 'xpack.security.enabled', 'true'
setting 'xpack.security.autoconfiguration.enabled', 'false'
user username: 'x_pack_rest_user', password: 'x-pack-test-password'
}

tasks.named("dependencyLicenses").configure {
mapping from: /jackson.*/, to: 'jackson'
}
Expand Down
2 changes: 0 additions & 2 deletions x-pack/plugin/ent-search/qa/rest/roles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ user:
cluster:
- post_behavioral_analytics_event
- manage_api_key
- read_connector_secrets
- write_connector_secrets
indices:
- names: [
"test-index1",
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions x-pack/plugin/ent-search/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,4 @@
exports org.elasticsearch.xpack.application.connector.syncjob.action;

provides org.elasticsearch.features.FeatureSpecification with org.elasticsearch.xpack.application.EnterpriseSearchFeatures;

exports org.elasticsearch.xpack.application.connector.secrets.action to org.elasticsearch.server;
}
Loading

0 comments on commit 0a29fba

Please sign in to comment.