Skip to content

fix(ssl): fixed env var behaves unexpectedly #1570

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Jul 4, 2023

Conversation

aali309
Copy link
Contributor

@aali309 aali309 commented Jun 29, 2023

Welcome to Cryostat! 👋

Before contributing, make sure you have:

  • Read the contributing guidelines
  • Linked a relevant issue which this PR resolves
  • Linked any other relevant issues, PR's, or documentation, if any
  • Resolved all conflicts, if any
  • Rebased your branch PR on top of the latest upstream main branch
  • Attached at least one of the following labels to the PR: [chore, ci, docs, feat, fix, test]
  • Signed the last commit: git commit --amend --signoff

Fixes: #1507

Description of the change:

This change allows enabling of SSL when CRYOSTAT_DISABLE_SSL is set to "false"

Motivation for the change:

This change is helpful because users may want to sue a Secure Sockect Layer(SSL) where as he can just pass the environment variable to false i.e < CRYOSTAT_DISABLE_SSL=false>

How to manually test:

  1. Run CRYOSTAT_IMAGE=quay.io... sh smoketest.sh...
  2. Run CRYOSTAT_DISABLE_SSL=false sh smoketest.sh and test it by < http --verify=no https://localhost:8181/health

@aali309 aali309 added bug Something isn't working fix and removed bug Something isn't working labels Jun 29, 2023
@aali309 aali309 changed the title Fix(Cryostat_DISABLE_SSL): fixed env var behaves unexpectedly fix(ssl): fixed env var behaves unexpectedly Jun 29, 2023
@aali309 aali309 force-pushed the cryostat_disable_ssl branch from 5057d2e to 5acb120 Compare June 29, 2023 20:14
@aali309 aali309 force-pushed the cryostat_disable_ssl branch from 5acb120 to 02ec3d4 Compare June 29, 2023 20:16
@github-actions
Copy link
Contributor

Test image available:

$ CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat:pr-1570-02ec3d44a59370c0ff6490743b2e9bce6e378c1e-linux-arm64 sh smoketest.sh

@github-actions
Copy link
Contributor

Test image available:

$ CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat:pr-1570-02ec3d44a59370c0ff6490743b2e9bce6e378c1e-linux-amd64 sh smoketest.sh

@github-actions
Copy link
Contributor

Test image available:

$ CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat:pr-1570-74ca929d3b58ee90ede50f31e238410db94524fb-linux-arm64 sh smoketest.sh

@github-actions
Copy link
Contributor

Test image available:

$ CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat:pr-1570-74ca929d3b58ee90ede50f31e238410db94524fb-linux-amd64 sh smoketest.sh

@github-actions
Copy link
Contributor

Test image available:

$ CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat:pr-1570-cee94efbdb5fc92dd0f224506695c2d9b09ab863-linux-amd64 sh smoketest.sh

@github-actions
Copy link
Contributor

Test image available:

$ CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat:pr-1570-cee94efbdb5fc92dd0f224506695c2d9b09ab863-linux-arm64 sh smoketest.sh

@github-actions
Copy link
Contributor

Test image available:

$ CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat:pr-1570-cf0c1a2519a34aee8f56d7bed3e2276af67671c3-linux-amd64 sh smoketest.sh

@github-actions
Copy link
Contributor

Test image available:

$ CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat:pr-1570-cf0c1a2519a34aee8f56d7bed3e2276af67671c3-linux-arm64 sh smoketest.sh

@github-actions
Copy link
Contributor

Test image available:

$ CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat:pr-1570-4e724c9d628ca0a318b7b13cbcfbe6017d22fb1c-linux-arm64 sh smoketest.sh

@github-actions
Copy link
Contributor

Test image available:

$ CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat:pr-1570-4e724c9d628ca0a318b7b13cbcfbe6017d22fb1c-linux-amd64 sh smoketest.sh

@github-actions
Copy link
Contributor

Test image available:

$ CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat:pr-1570-00d53d186d6d6847be2c4be5ff7e9f0b621f9ac0-linux-arm64 sh smoketest.sh

@github-actions
Copy link
Contributor

Test image available:

$ CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat:pr-1570-00d53d186d6d6847be2c4be5ff7e9f0b621f9ac0-linux-amd64 sh smoketest.sh

@aali309 aali309 requested a review from ebaron as a code owner July 4, 2023 16:38
@andrewazores
Copy link
Member

This looks like the latest push includes some improperly cherry-picked commits from a rebase, or something.

The main change itself looks fine now, but please correct the commit history to include only that change.

@github-actions
Copy link
Contributor

github-actions bot commented Jul 4, 2023

Test image available:

$ CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat:pr-1570-9a1cc1acf6a569c1b531bb422835b1e1bb641e65-linux-arm64 sh smoketest.sh

@github-actions
Copy link
Contributor

github-actions bot commented Jul 4, 2023

Test image available:

$ CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat:pr-1570-9a1cc1acf6a569c1b531bb422835b1e1bb641e65-linux-amd64 sh smoketest.sh

@aali309 aali309 force-pushed the cryostat_disable_ssl branch from 9a1cc1a to 497a87c Compare July 4, 2023 17:11
@github-actions
Copy link
Contributor

github-actions bot commented Jul 4, 2023

Test image available:

$ CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat:pr-1570-a17247a942ea85b938009516adca2e66a9bee785-linux-amd64 sh smoketest.sh

@github-actions
Copy link
Contributor

github-actions bot commented Jul 4, 2023

Test image available:

$ CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat:pr-1570-a17247a942ea85b938009516adca2e66a9bee785-linux-arm64 sh smoketest.sh

@andrewazores andrewazores merged commit 803c132 into cryostatio:main Jul 4, 2023
mergify bot pushed a commit that referenced this pull request Jul 4, 2023
andrewazores pushed a commit that referenced this pull request Jul 4, 2023
@aali309 aali309 deleted the cryostat_disable_ssl branch July 7, 2023 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
Status: Done
Development

Successfully merging this pull request may close these issues.

[Bug] CRYOSTAT_DISABLE_SSL env var behaves unexpectedly
2 participants