JWT Pre-flight Check#4724
Conversation
Signed-off-by: hrishikesh-nalawade <hrishikesh.nalawade.17@gmail.com>
|
build 9875 FAILED. |
|
|
||
| pre_flight_check=$(find "${ZOWE_ROOT_DIR}/files" -type f \( -name "pre-flight-check*.jar" \) | head -n 1) | ||
| echo "[$SCRIPT_NAME] move pre_flight_check $pre_flight_check" | ||
| mv "${pre_flight_check}" "${ZOWE_ROOT_DIR}/bin/utils/pre-flight-check.jar" |
There was a problem hiding this comment.
this needs a better name than "pre-flight-check.jar". there are other preflight checks. give it a descriptive name.
There was a problem hiding this comment.
Already suggested in API ML PR: https://github.com/zowe/api-layer/pull/4531/changes#r3007773986
There was a problem hiding this comment.
yes, the name has been updated to zosmf-jwt-check
| @@ -0,0 +1,15 @@ | |||
| Validates z/OSMF JWK endpoint connectivity as a pre-flight check before starting Zowe. | |||
There was a problem hiding this comment.
if you run this on the command line thats not true.
It would be better to say,
Connects to z/OSMF to verify if it has been configured for JWT support
This command is run during Zowe startup as appropriate to confirm if Zowe's configuration matches z/OSMF's configuration.
| # Copyright Contributors to the Zowe Project. | ||
| ####################################################################### | ||
|
|
||
| print_level1_message "Validate z/OSMF JWK endpoint (pre-flight check)" |
There was a problem hiding this comment.
this file needs to be rewritten as TS.
new zwe commands are TS files, not SH files. Check the other validate commands for examples
|
build 9935 FAILED. |
…reflight-check' into hrishikesh-nalawade/GH4526/jwt-preflight-check
|
build 9938 FAILED. |
|
Further development continued in this PR #4727 |
PR type
What type of changes does your PR introduce to Zowe? Put an
xin the box that applies to this PR. If you're unsure about any of them, don't hesitate to ask.Relevant issues
zowe/api-layer#4526
Changes proposed in this PR
A Java utility that verifies connectivity to the z/OSMF JWK endpoint before/after starting the Zowe API Mediation Layer. This tool helps diagnose configuration issues early such as incorrect hostnames, unreachable ports, missing certificates, or misconfigured z/OSMF by performing a lightweight HTTP(S) call to the z/OSMF JWK endpoint at
/jwt/ibm/api/zOSMFBuilder/jwkDoes this PR introduce a breaking change?
Does this PR add or change a YAML parameter?
Does this PR do something the person installing Zowe should know about?
multi-line description
Is there a related doc issue or Pull Request?
Doc issue/PR number:
Other information