Skip to content
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

feat: upgrade ZIO http client to improve performance #850

Merged
26 commits merged into from
Jan 25, 2024
Merged
Show file tree
Hide file tree
Changes from 23 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
7d0aba7
fix(prism-agent): metrics for background jobs and metric naming
davepoltorak Jan 18, 2024
b6780d0
feat(prism-agent): add grafana dashboards, upgrade local perf testing
davepoltorak Jan 18, 2024
a164361
feat(prism-agent): add exception handling to k6 perf tests
davepoltorak Jan 18, 2024
8bf64d2
feat(prism-agent): add integration test for metric endpoint
davepoltorak Jan 18, 2024
3732c15
feat(prism-agent): upgrade to ZIO HTTP RC4 to improve request perform…
davepoltorak Jan 18, 2024
d73e97d
chore(prism-agent): format docker-compose YAML file
davepoltorak Jan 19, 2024
c8e5d6f
chore(prism-agent): apply scalafmt to DidCommHttpServer
davepoltorak Jan 19, 2024
2cce45d
fix(prism-agent): validate 'content-type' header of incoming DIDComm …
bvoiturier Jan 19, 2024
f9d6c3a
chore(prisma-gent): extract ZIO HTTP client params (timeouts + cp siz…
bvoiturier Jan 19, 2024
c58d491
fix(prism-agent): ensure response processing by HTTP client is part o…
bvoiturier Jan 19, 2024
91fec35
feat(prism-agent): add security.md for security vuln reporting
davepoltorak Jan 23, 2024
2261fb5
chore: update link to discord channel for security notices
davepoltorak Jan 23, 2024
8e38468
fix(prism-agent): restore metric test integration test
davepoltorak Jan 24, 2024
b19d7f3
chore(prism-agent): shorten scenario name to meet linter rules
davepoltorak Jan 24, 2024
4eb1574
chore(prism-agent): add linting hint for __ENV
davepoltorak Jan 24, 2024
dced290
chore(prism-agent): adjusted linting rulest to exclude ext k6chaijs
davepoltorak Jan 24, 2024
b2c3d83
feat(prism-agent): remove unused imports and fix interpolation
davepoltorak Jan 24, 2024
f5eef4d
chore(prism-agent): restore schemaId in credential service
davepoltorak Jan 24, 2024
d9f72ca
chore(prism-agent): remove comments which don't meet linting rule
davepoltorak Jan 24, 2024
889e415
chore: add newline at end of megalinter file
davepoltorak Jan 24, 2024
ce87790
ci: set node variables to reduce delay in publish for perf test
davepoltorak Jan 24, 2024
8127502
chore: increasing acceptable group duration for perf test (issuance)
davepoltorak Jan 24, 2024
5125da9
chore: increase all acceptable group durations for smoke test
davepoltorak Jan 24, 2024
1e7096c
chore: remove commented out code to improve quality
davepoltorak Jan 25, 2024
05050e8
chore: run scalafmt
davepoltorak Jan 25, 2024
53ae046
chore(prism-agent): improve perf when handling HTTP URI dereferencer …
bvoiturier Jan 25, 2024
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
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/[email protected]
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
Loading