Skip to content

Commit

Permalink
feat: upgrade ZIO http client to improve performance (#850)
Browse files Browse the repository at this point in the history
Signed-off-by: David Poltorak <david.poltorak@iohk.io>
Signed-off-by: Benjamin Voiturier <benjamin.voiturier@iohk.io>
Co-authored-by: Benjamin Voiturier <benjamin.voiturier@iohk.io>
  • Loading branch information
davidpoltorak-io and bvoiturier committed Jan 25, 2024
1 parent 529a9e8 commit 7aa9b4c
Show file tree
Hide file tree
Showing 47 changed files with 9,472 additions and 993 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/performance-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ jobs:
API_KEY_ENABLED: true
DOCKERHOST: "host.docker.internal"
PG_PORT: 5432
NODE_REFRESH_AND_SUBMIT_PERIOD: 1s
NODE_MOVE_SCHEDULED_TO_PENDING_PERIOD: 1s
NODE_WALLET_MAX_TPS: 1000
uses: isbang/compose-action@v1.4.1
with:
compose-file: "./infrastructure/shared/docker-compose.yml"
Expand Down
1 change: 1 addition & 0 deletions .mega-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,4 @@ SQL_SQL_LINT_ARGUMENTS: -d postgres --ignore-errors=postgres-invalid-alter-optio
YAML_YAMLLINT_FILTER_REGEX_EXCLUDE: "infrastructure/charts/agent/*"
YAML_PRETTIER_FILTER_REGEX_EXCLUDE: "infrastructure/charts/agent/*"
YAML_V8R_FILTER_REGEX_EXCLUDE: "infrastructure/charts/agent/*"
JAVASCRIPT_STANDARD_FILTER_REGEX_EXCLUDE: "tests/performance-tests/atala-performance-tests-k6/src/k6chaijs.js"
15 changes: 15 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Security

# Reporting Security Issues

The Open Enterprise Agent (OEA) team and community take security bugs in the components of the OEA ecosystem seriously. We appreciate your efforts to responsibly disclose your findings, and will make every effort to acknowledge your contributions.

To report a security issue, please use the GitHub Security Advisory ["Report a Vulnerability"](https://github.com/hyperledger-labs/open-enterprise-agent/security/advisories/new) tab.

The OEA team will send a response indicating the next steps in handling your report. After the initial reply to your report, the security team will keep you informed of the progress towards a fix and full announcement, and may ask for additional information or guidance.

Report security bugs in third-party modules to the person or team maintaining the module.

## Security Notification Process

Security notifications will be sent to the dedicated [open-enterprise-agent-security-notices](https://discordapp.com/channels/905194001349627914/1199354196944748614) channel in the Hyper Ledger discord server
14 changes: 3 additions & 11 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ lazy val V = new {
val zioConfig = "3.0.7"
val zioLogging = "2.0.1"
val zioJson = "0.3.0"
val zioHttp = "3.0.0-RC2"
val zioHttp = "3.0.0-RC4"
val zioCatsInterop = "3.3.0"
val zioMetricsConnector = "2.1.0"
val zioMock = "1.0.0-RC11"
val mockito = "3.2.16.0"

// https://mvnrepository.com/artifact/io.circe/circe-core
// https://mvnrepository.com/artifact/io.circe/circe-core
val circe = "0.14.6"

val tapir = "1.6.4"
Expand Down Expand Up @@ -89,6 +89,7 @@ lazy val V = new {

val nimbusJwt = "10.0.0"
val keycloak = "22.0.4" // scala-steward:off

}

/** Dependencies */
Expand Down Expand Up @@ -648,14 +649,6 @@ lazy val agentDidcommx = project
.settings(libraryDependencies += D.munitZio)
.dependsOn(agent) //modelsDidcommx

/** Demos agents and services implementation with didcommx */
lazy val agentCliDidcommx = project
.in(file("mercury/mercury-library/agent-cli-didcommx"))
.settings(name := "mercury-agent-cli-didcommx")
.settings(libraryDependencies += "com.google.zxing" % "core" % "3.5.0")
.settings(libraryDependencies += D.zioHttp)
.dependsOn(agentDidcommx)

// ///** TODO Demos agents and services implementation with did-scala */
// lazy val agentDidScala =
// project
Expand Down Expand Up @@ -879,7 +872,6 @@ lazy val aggregatedProjects: Seq[ProjectReference] = Seq(
resolver,
agent,
agentDidcommx,
agentCliDidcommx,
castorCore,
polluxVcJWT,
polluxCore,
Expand Down
3 changes: 3 additions & 0 deletions infrastructure/shared/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ services:
image: ghcr.io/input-output-hk/prism-node:${PRISM_NODE_VERSION}
environment:
NODE_PSQL_HOST: db:5432
NODE_REFRESH_AND_SUBMIT_PERIOD:
NODE_MOVE_SCHEDULED_TO_PENDING_PERIOD:
NODE_WALLET_MAX_TPS:
depends_on:
db:
condition: service_healthy
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/single-tenant-testing-stack/.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
PRISM_AGENT_VERSION=1.17.0
PRISM_AGENT_VERSION=1.25.0
PRISM_NODE_VERSION=2.2.1
VAULT_DEV_ROOT_TOKEN_ID=root
Loading

0 comments on commit 7aa9b4c

Please sign in to comment.