Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
212 changes: 0 additions & 212 deletions .github/workflows/backwards_compatibility_tests_workflow.yml

This file was deleted.

15 changes: 15 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,20 @@ allprojects {
}

configurations {
agent
zipArchive
}

task prepareAgent(type: Copy) {
from(configurations.agent)
into "$buildDir/agent"
}

tasks.withType(Test) {
dependsOn prepareAgent
jvmArgs += ["-javaagent:" + project.layout.buildDirectory.file("agent/opensearch-agent-${opensearch_version}.jar").get()]
}

publishing {
repositories {
maven {
Expand Down Expand Up @@ -360,6 +371,10 @@ dependencies {
// OpenSearch core is using slf4j 1.7.36. Therefore, we cannot change the version here.
implementation 'org.slf4j:slf4j-api:1.7.36'
zipArchive group: 'org.opensearch.plugin', name:'opensearch-security', version: "${opensearch_build}"

agent "org.opensearch:opensearch-agent-bootstrap:${opensearch_version}"
agent "org.opensearch:opensearch-agent:${opensearch_version}"
agent "net.bytebuddy:byte-buddy:${versions.bytebuddy}"
}

task windowsPatches(type:Exec) {
Expand Down
18 changes: 18 additions & 0 deletions remote-index-build-client/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,31 @@ compileTestJava {
options.compilerArgs = ["-processor", 'lombok.launch.AnnotationProcessorHider$AnnotationProcessor']
}

configurations {
agent
}

task prepareAgent(type: Copy) {
from(configurations.agent)
into "$buildDir/agent"
}

dependencies {
compileOnly group: 'org.opensearch', name: 'opensearch', version: "${opensearch_version}"
api "commons-lang:commons-lang:2.6"
api "org.apache.httpcomponents.client5:httpclient5:${versions.httpclient5}"
api "org.apache.httpcomponents.core5:httpcore5:${versions.httpcore5}"
api "org.apache.httpcomponents.core5:httpcore5-h2:${versions.httpcore5}"
testImplementation "org.opensearch.test:framework:${opensearch_version}"

agent "org.opensearch:opensearch-agent-bootstrap:${opensearch_version}"
agent "org.opensearch:opensearch-agent:${opensearch_version}"
agent "net.bytebuddy:byte-buddy:${versions.bytebuddy}"
}

tasks.withType(Test) {
dependsOn prepareAgent
jvmArgs += ["-javaagent:" + project.layout.buildDirectory.file("agent/opensearch-agent-${opensearch_version}.jar").get()]
}

check.dependsOn spotlessCheck
Expand Down
12 changes: 12 additions & 0 deletions src/main/plugin-metadata/plugin-security.policy
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
grant codeBase "${codebase.opensearch}" {
permission java.io.FilePermission "/proc/cpuinfo", "read";
};

grant codeBase "${codebase.opensearch-core}" {
permission java.io.FilePermission "/proc/cpuinfo", "read";
};

grant codeBase "${codebase.lucene-core}" {
permission java.io.FilePermission "/proc/cpuinfo", "read";
};

grant {
permission java.lang.RuntimePermission "loadLibrary.opensearchknn_nmslib";
permission java.lang.RuntimePermission "loadLibrary.opensearchknn_faiss";
Expand Down
Loading