Skip to content

Conversation

@1000TurquoisePogs
Copy link
Member

@1000TurquoisePogs 1000TurquoisePogs commented Mar 14, 2025

This PR changes the default behavior of zwe init to no longer run zwe init certificate, and moves all zowe.setup.certificate content away from the example-zowe.yaml and into a new folder zowe/files/examples/setup/certificate

With this PR, to create certificates in a new zowe install, zwe init is not enough anymore!

Users must use the contents of zowe/files/examples/setup/certificate and then run either zwe init --create-certificate or zwe init certificate

The purpose is to have the YAML and zwe init meet users expectations better.
Many users bring their own keyrings when doing a zowe setup, yet they end up for some reason running certificate setup anyway. They may encounter errors, or at least end up with something they didn't want.

Further, users often get confused between the difference of zowe.setup.certificate and zowe.certificate. So, if they get confused by the one they do not want to use anyway, why not move it?

This PR is not a breaking change in the sense that it does not disrupt existing installs.
I do not believe a HOLD statement is needed.
However, new installs will no longer get certificates created by default.
So, documentation will need to call out that as an action item for those who do want that, unpopular as it is.

The new example yaml references the location of the setup certificate example yamls, and they contain comments within that explain how to use them.

I have made a slight edit to zwe init certificate to make these YAML as small as possible: I found that zowe.setup.dataset.prefix was needed for keyring creation, but not for pkcs12 creation, so I moved it into the appropriate block.

@github-actions
Copy link

github-actions bot commented Mar 14, 2025

build 7193 SUCCEEDED.
Link to workflow run: https://github.com/zowe/zowe-install-packaging/actions/runs/13864379145

@github-actions
Copy link

github-actions bot commented Mar 14, 2025

Test workflow 6252 is started.
Running install test: Convenience Pax
The zowe artifact being used by this test workflow: libs-snapshot-local/org/zowe/3.2.0-PR-4238/zowe-3.2.0-pr-4238-7193-20250314200307.pax
Running on machine: zzow11
Result: FAILURE
Link to workflow run: https://github.com/zowe/zowe-install-packaging/actions/runs/13864459299

@github-actions
Copy link

github-actions bot commented Mar 14, 2025

build 7194 SUCCEEDED.
Link to workflow run: https://github.com/zowe/zowe-install-packaging/actions/runs/13864541793

@github-actions
Copy link

github-actions bot commented Mar 14, 2025

Test workflow 6253 is started.
Running install test: Convenience Pax
The zowe artifact being used by this test workflow: libs-snapshot-local/org/zowe/3.2.0-PR-4238/zowe-3.2.0-pr-4238-7194-20250314201306.pax
Running on machine: zzow09
Result: FAILURE
Link to workflow run: https://github.com/zowe/zowe-install-packaging/actions/runs/13864610649

@MarkAckert
Copy link
Member

To avoid users needing to duplicate information, could we adjust the init certifcate command so it takes both a zowe.yaml configuration file and a cert scenario file?

zwe init certificate -c zowe.yaml --cert-config path/to/cert/setup/scenario.yaml

zwecli_inline_execute_command init security
fi
zwecli_inline_execute_command init certificate
if [ "${ZWE_CLI_PARAMETER_CREATE_CERTIFICATE}" != "true" ]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

  1. Should check for "is equal": if [ "${ZWE_CLI_PARAMETER_CREATE_CERTIFICATE}" = "true" ]; then
  2. This is a braking change as the new default is "Do not process certificates".

@github-actions
Copy link

github-actions bot commented Mar 18, 2025

build 7207 SUCCEEDED.
Link to workflow run: https://github.com/zowe/zowe-install-packaging/actions/runs/13920200137

@github-actions
Copy link

github-actions bot commented Mar 18, 2025

Test workflow 6264 is started.
Running install test: Convenience Pax
The zowe artifact being used by this test workflow: libs-snapshot-local/org/zowe/3.2.0-PR-4238/zowe-3.2.0-pr-4238-7207-20250318095418.pax
Running on machine: zzow09
Result: FAILURE
Link to workflow run: https://github.com/zowe/zowe-install-packaging/actions/runs/13920286235

@github-actions
Copy link

github-actions bot commented Mar 18, 2025

build 7209 SUCCEEDED.
Link to workflow run: https://github.com/zowe/zowe-install-packaging/actions/runs/13925405986

@github-actions
Copy link

github-actions bot commented Mar 18, 2025

Test workflow 6266 is started.
Running install test: Convenience Pax
The zowe artifact being used by this test workflow: libs-snapshot-local/org/zowe/3.2.0-PR-4238/zowe-3.2.0-pr-4238-7209-20250318141812.pax
Running on machine: zzow11
Result: FAILURE
Link to workflow run: https://github.com/zowe/zowe-install-packaging/actions/runs/13925520559

@github-actions
Copy link

github-actions bot commented Mar 19, 2025

build 7212 SUCCEEDED.
Link to workflow run: https://github.com/zowe/zowe-install-packaging/actions/runs/13949594553

@github-actions
Copy link

github-actions bot commented Mar 19, 2025

Test workflow 6270 is started.
Running install test: Convenience Pax
The zowe artifact being used by this test workflow: libs-snapshot-local/org/zowe/3.2.0-PR-4238/zowe-3.2.0-pr-4238-7212-20250319145955.pax
Running on machine: zzow10
Result: FAILURE
Link to workflow run: https://github.com/zowe/zowe-install-packaging/actions/runs/13949763899

@github-actions
Copy link

github-actions bot commented Mar 27, 2025

build 7316 SUCCEEDED.
Link to workflow run: https://github.com/zowe/zowe-install-packaging/actions/runs/14109814877

@github-actions
Copy link

github-actions bot commented Mar 27, 2025

build 7317 SUCCEEDED.
Link to workflow run: https://github.com/zowe/zowe-install-packaging/actions/runs/14109988382

@github-actions
Copy link

github-actions bot commented Mar 27, 2025

Test workflow 6328 is started.
Running install test: Convenience Pax
The zowe artifact being used by this test workflow: libs-snapshot-local/org/zowe/3.2.0-PR-4238/zowe-3.2.0-pr-4238-7316-20250327150727.pax
Running on machine: zzow09
Result: FAILURE
Link to workflow run: https://github.com/zowe/zowe-install-packaging/actions/runs/14110008873

@github-actions
Copy link

github-actions bot commented Mar 27, 2025

Test workflow 6330 is started.
Running install test: Convenience Pax
The zowe artifact being used by this test workflow: libs-snapshot-local/org/zowe/3.2.0-PR-4238/zowe-3.2.0-pr-4238-7317-20250327151508.pax
Running on machine: zzow11
Result: FAILURE
Link to workflow run: https://github.com/zowe/zowe-install-packaging/actions/runs/14110187199

@github-actions
Copy link

github-actions bot commented Jun 11, 2025

Test workflow 6758 is started.
Running install test: Convenience Pax
The zowe artifact being used by this test workflow: libs-snapshot-local/org/zowe/3.3.0-PR-4238/zowe-3.3.0-pr-4238-7863-20250611123430.pax
Running on machine: zzow11
Result: SUCCESS
Link to workflow run: https://github.com/zowe/zowe-install-packaging/actions/runs/15585011821

@github-actions
Copy link

github-actions bot commented Jun 11, 2025

Test workflow 6759 is started.
Running install test: Convenience Pax
The zowe artifact being used by this test workflow: libs-snapshot-local/org/zowe/3.3.0-PR-4238/zowe-3.3.0-pr-4238-7864-20250611123713.pax
Running on machine: zzow10
Result: SUCCESS
Link to workflow run: https://github.com/zowe/zowe-install-packaging/actions/runs/15585065742

Signed-off-by: Martin Zeithaml <[email protected]>
@github-actions
Copy link

github-actions bot commented Jun 12, 2025

build 7881 SUCCEEDED.
Link to workflow run: https://github.com/zowe/zowe-install-packaging/actions/runs/15609784647

@github-actions
Copy link

github-actions bot commented Jun 12, 2025

build 7882 SUCCEEDED.
Link to workflow run: https://github.com/zowe/zowe-install-packaging/actions/runs/15609793730

@github-actions
Copy link

github-actions bot commented Jun 12, 2025

Test workflow 6770 is started.
Running install test: Convenience Pax
The zowe artifact being used by this test workflow: libs-snapshot-local/org/zowe/3.3.0-PR-4238/zowe-3.3.0-pr-4238-7881-20250612115834.pax
Running on machine: zzow11
Result: SUCCESS
Link to workflow run: https://github.com/zowe/zowe-install-packaging/actions/runs/15609876242

@github-actions
Copy link

github-actions bot commented Jun 12, 2025

Test workflow 6771 is started.
Running install test: Convenience Pax
The zowe artifact being used by this test workflow: libs-snapshot-local/org/zowe/3.3.0-PR-4238/zowe-3.3.0-pr-4238-7882-20250612115851.pax
Running on machine: zzow11
Result: SUCCESS
Link to workflow run: https://github.com/zowe/zowe-install-packaging/actions/runs/15609882674

@MarkAckert
Copy link
Member

The changes look good. Before merging this in:

  • Is there a docs-site update?
  • Do we need any changes to PSWI configuration workflows?

I can take a look at the second question.

Signed-off-by: 1000TurquoisePogs <[email protected]>
@github-actions
Copy link

github-actions bot commented Jun 16, 2025

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

@github-actions
Copy link

github-actions bot commented Jun 16, 2025

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

Signed-off-by: 1000TurquoisePogs <[email protected]>
@github-actions
Copy link

github-actions bot commented Jun 16, 2025

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

@github-actions
Copy link

github-actions bot commented Jun 17, 2025

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

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

Labels

Projects

Status: No status
Status: No status

Development

Successfully merging this pull request may close these issues.

5 participants