Skip to content

JWT Pre-flight Check#4724

Closed
hrishikesh-nalawade wants to merge 4 commits intov3.x/stagingfrom
hrishikesh-nalawade/GH4526/jwt-preflight-check
Closed

JWT Pre-flight Check#4724
hrishikesh-nalawade wants to merge 4 commits intov3.x/stagingfrom
hrishikesh-nalawade/GH4526/jwt-preflight-check

Conversation

@hrishikesh-nalawade
Copy link
Copy Markdown
Member

  • Tests for the changes have been added (for bug fixes / features)
  • Necessary documentation (if appropriate) have been added / updated
  • DCO signoffs have been added to all commits, including this PR

PR type

What type of changes does your PR introduce to Zowe? Put an x in the box that applies to this PR. If you're unsure about any of them, don't hesitate to ask.

  • Bugfix
  • Feature
  • Other... Please describe:

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/jwk

Does this PR introduce a breaking change?

  • Yes
  • No

Does this PR add or change a YAML parameter?

  • Yes
  • No

Does this PR do something the person installing Zowe should know about?


  • Affected function: general area of interest *

  • Description: 1 line description *

  • Part: name of customizable file involved *

multi-line description

Is there a related doc issue or Pull Request?

Doc issue/PR number:

Other information

Signed-off-by: hrishikesh-nalawade <hrishikesh.nalawade.17@gmail.com>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 27, 2026

build 9875 FAILED.
Link to workflow run: https://github.com/zowe/zowe-install-packaging/actions/runs/23664920039

Comment thread .pax/pre-packaging.sh Outdated

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"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this needs a better name than "pre-flight-check.jar". there are other preflight checks. give it a descriptive name.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, the name has been updated to zosmf-jwt-check

Comment thread bin/commands/validate/jwt/.help Outdated
@@ -0,0 +1,15 @@
Validates z/OSMF JWK endpoint connectivity as a pre-flight check before starting Zowe.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread bin/commands/validate/jwt/index.sh Outdated
# Copyright Contributors to the Zowe Project.
#######################################################################

print_level1_message "Validate z/OSMF JWK endpoint (pre-flight check)"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this file needs to be rewritten as TS.
new zwe commands are TS files, not SH files. Check the other validate commands for examples

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 2, 2026

build 9935 FAILED.
Link to workflow run: https://github.com/zowe/zowe-install-packaging/actions/runs/23890632619

Signed-off-by: hrishikesh-nalawade <hrishikesh.nalawade.17@gmail.com>
…reflight-check' into hrishikesh-nalawade/GH4526/jwt-preflight-check
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 2, 2026

build 9938 FAILED.
Link to workflow run: https://github.com/zowe/zowe-install-packaging/actions/runs/23897649231

@hrishikesh-nalawade
Copy link
Copy Markdown
Member Author

Further development continued in this PR #4727

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants