Skip to content

Commit

Permalink
fix(credentials): store credentials with expr matching callback and j…
Browse files Browse the repository at this point in the history
…vmId
  • Loading branch information
andrewazores committed Jun 20, 2023
1 parent 290fbc3 commit 57c4b4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/io/cryostat/agent/CryostatClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,8 @@ private CountingInputStream getRecordingInputStream(Path filePath) throws IOExce
}

private String selfMatchExpression(URI callback) {
return String.format("target.connectUrl == \"%s\"", callback);
return String.format(
"target.connectUrl == \"%s\" && target.jvmId == \"%s\"", callback, jvmId);
}

private boolean isOkStatus(HttpResponse res) {
Expand Down

0 comments on commit 57c4b4a

Please sign in to comment.