-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(custom_targets): handle embedded credentials, enable tests (#188)
* use MediaType enum for @Produces/@consumes * turn off JDP in unit tests * custom target creation should include target in response body * handle custom target credentials passed along with request form body * check for stored credentials when opening target connections * refactor to use redirect-handling webClient extensions, ensure selftest target cleanup * fix(messaging): handle writing to websockets on dedicated worker thread * enhance websocket expectation logging and closure handling * refactor to handle ".data.reason" format of API V2 JSON responses in error cases (no ".data.result") * deploy 3 vertx-fib-demo samples, one with auth, one with auth+ssl * bust connection cache entries if matching credentials change * handle uncaught JMX ConnectionException as a 502 BAD GATEWAY * permit null JVM IDs, target may not have been connectable yet if we need to evaluate matching credentials for it for the first time * handle JMX auth failure as HTTP 403 Forbidden * drop gson dependency * append, not override, sample app java opts
- Loading branch information
1 parent
7e69df9
commit 539940e
Showing
33 changed files
with
1,126 additions
and
778 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
io.kompose.service: sample-app-2 | ||
name: sample-app-2 | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
io.kompose.service: sample-app-2 | ||
strategy: {} | ||
template: | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
io.kompose.network/compose-default: "true" | ||
io.kompose.service: sample-app-2 | ||
spec: | ||
containers: | ||
- env: | ||
- name: CRYOSTAT_AGENT_APP_NAME | ||
value: vertx-fib-demo-2 | ||
- name: CRYOSTAT_AGENT_AUTHORIZATION | ||
value: Basic dXNlcjpwYXNz | ||
- name: CRYOSTAT_AGENT_BASEURI | ||
value: http://cryostat:8181/ | ||
- name: CRYOSTAT_AGENT_CALLBACK | ||
value: http://sample-app-2:8911/ | ||
- name: CRYOSTAT_AGENT_TRUST_ALL | ||
value: "true" | ||
- name: CRYOSTAT_AGENT_WEBCLIENT_SSL_TRUST_ALL | ||
value: "true" | ||
- name: CRYOSTAT_AGENT_WEBCLIENT_SSL_VERIFY_HOSTNAME | ||
value: "false" | ||
- name: CRYOSTAT_AGENT_WEBSERVER_HOST | ||
value: sample-app-2 | ||
- name: CRYOSTAT_AGENT_WEBSERVER_PORT | ||
value: "8911" | ||
- name: HTTP_PORT | ||
value: "8082" | ||
- name: JMX_PORT | ||
value: "9094" | ||
- name: USE_AUTH | ||
value: "true" | ||
image: quay.io/andrewazores/vertx-fib-demo:0.13.0 | ||
livenessProbe: | ||
exec: | ||
command: | ||
- curl --fail http://localhost:8081 || exit 1 | ||
failureThreshold: 3 | ||
initialDelaySeconds: 10 | ||
periodSeconds: 10 | ||
timeoutSeconds: 5 | ||
name: sample-app-2 | ||
ports: | ||
- containerPort: 8082 | ||
hostPort: 8082 | ||
protocol: TCP | ||
resources: {} | ||
hostname: vertx-fib-demo-2 | ||
restartPolicy: Always | ||
status: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
io.kompose.service: sample-app-2 | ||
name: sample-app-2 | ||
spec: | ||
ports: | ||
- name: "8082" | ||
port: 8082 | ||
targetPort: 8082 | ||
selector: | ||
io.kompose.service: sample-app-2 | ||
status: | ||
loadBalancer: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
io.kompose.service: sample-app-3 | ||
name: sample-app-3 | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
io.kompose.service: sample-app-3 | ||
strategy: {} | ||
template: | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
io.kompose.network/compose-default: "true" | ||
io.kompose.service: sample-app-3 | ||
spec: | ||
containers: | ||
- env: | ||
- name: CRYOSTAT_AGENT_APP_NAME | ||
value: vertx-fib-demo-3 | ||
- name: CRYOSTAT_AGENT_AUTHORIZATION | ||
value: Basic dXNlcjpwYXNz | ||
- name: CRYOSTAT_AGENT_BASEURI | ||
value: http://cryostat:8181/ | ||
- name: CRYOSTAT_AGENT_CALLBACK | ||
value: http://sample-app-3:8912/ | ||
- name: CRYOSTAT_AGENT_TRUST_ALL | ||
value: "true" | ||
- name: CRYOSTAT_AGENT_WEBCLIENT_SSL_TRUST_ALL | ||
value: "true" | ||
- name: CRYOSTAT_AGENT_WEBCLIENT_SSL_VERIFY_HOSTNAME | ||
value: "false" | ||
- name: CRYOSTAT_AGENT_WEBSERVER_HOST | ||
value: sample-app-3 | ||
- name: CRYOSTAT_AGENT_WEBSERVER_PORT | ||
value: "8910" | ||
- name: HTTP_PORT | ||
value: "8083" | ||
- name: JMX_PORT | ||
value: "9095" | ||
- name: USE_AUTH | ||
value: "true" | ||
- name: USE_SSL | ||
value: "true" | ||
image: quay.io/andrewazores/vertx-fib-demo:0.13.0 | ||
livenessProbe: | ||
exec: | ||
command: | ||
- curl --fail http://localhost:8081 || exit 1 | ||
failureThreshold: 3 | ||
initialDelaySeconds: 10 | ||
periodSeconds: 10 | ||
timeoutSeconds: 5 | ||
name: sample-app-3 | ||
ports: | ||
- containerPort: 8083 | ||
hostPort: 8083 | ||
protocol: TCP | ||
resources: {} | ||
hostname: vertx-fib-demo-3 | ||
restartPolicy: Always | ||
status: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
io.kompose.service: sample-app-3 | ||
name: sample-app-3 | ||
spec: | ||
ports: | ||
- name: "8083" | ||
port: 8083 | ||
targetPort: 8083 | ||
selector: | ||
io.kompose.service: sample-app-3 | ||
status: | ||
loadBalancer: {} |
Oops, something went wrong.