Skip to content
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

chore: upgrade to latest Keycloak chart #2399

Merged
merged 7 commits into from
Jan 12, 2022
Merged

chore: upgrade to latest Keycloak chart #2399

merged 7 commits into from
Jan 12, 2022

Conversation

aledegano
Copy link
Contributor

While the current version of Keycloak is not explicitly affected by Log4shell, it is however safer to ship a more recent version.

/deploy

@aledegano aledegano requested a review from a team as a code owner December 15, 2021 13:29
@aledegano aledegano temporarily deployed to ci-renku-2399 December 15, 2021 13:30 Inactive
@RenkuBot
Copy link
Collaborator

You can access the deployment of this PR at https://ci-renku-2399.dev.renku.ch

@rokroskar
Copy link
Member

did you test to see what happens when you upgrade from the current version to this new one? Any db migrations to be aware of?

@rokroskar rokroskar changed the title (security) Upgrade to latest Keycloak chart. security: Upgrade to latest Keycloak chart. Jan 6, 2022
@rokroskar rokroskar temporarily deployed to ci-renku-2399 January 6, 2022 10:40 Inactive
@aledegano
Copy link
Contributor Author

did you test to see what happens when you upgrade from the current version to this new one? Any db migrations to be aware of?

No, I didn't do any tests, I thought it was a trivial upgrade, but as the deployment shows it isn't really. I'll close this PR to avoid confusion. I believe @ableuler will pick this up when his pipeline clears up.

@aledegano aledegano closed this Jan 6, 2022
@rokroskar
Copy link
Member

What was the problem with the deployment?

@rokroskar
Copy link
Member

It did deploy, actually: https://github.com/SwissDataScienceCenter/renku/runs/4725939662?check_suite_focus=true

I believe @ableuler will pick this up when his pipeline clears up.

😆 hope dies last

@rokroskar rokroskar reopened this Jan 6, 2022
@rokroskar rokroskar temporarily deployed to ci-renku-2399 January 6, 2022 12:22 Inactive
@aledegano
Copy link
Contributor Author

It did deploy, actually: https://github.com/SwissDataScienceCenter/renku/runs/4725939662?check_suite_focus=true

I believe @ableuler will pick this up when his pipeline clears up.

laughing hope dies last

it deploys, but the last time I've checked all the tests were failing to authenticate...

@aledegano aledegano requested a review from a team as a code owner January 6, 2022 12:55
@rokroskar rokroskar temporarily deployed to ci-renku-2399 January 6, 2022 16:44 Inactive
@rokroskar rokroskar temporarily deployed to ci-renku-2399 January 7, 2022 09:39 Inactive
@rokroskar rokroskar temporarily deployed to ci-renku-2399 January 7, 2022 16:28 Inactive
@rokroskar rokroskar temporarily deployed to ci-renku-2399 January 7, 2022 16:48 Inactive
@rokroskar rokroskar temporarily deployed to ci-renku-2399 January 7, 2022 17:02 Inactive
aledegano and others added 2 commits January 7, 2022 18:16
While the current version of Keycloak is not explicitly
affected by Log4shell, it is however safer to ship a
more recent version.
do not fail if the secret is not set, as is the case
for public clients. It seems that in current version of Keycloak
the server doesn't return a secret for public clients (makes sense)
but in older versions it did (doesn't make sense).
@rokroskar rokroskar temporarily deployed to ci-renku-2399 January 7, 2022 17:16 Inactive
@rokroskar rokroskar temporarily deployed to ci-renku-2399 January 7, 2022 22:16 Inactive
@rokroskar
Copy link
Member

@aledegano @ableuler I tested this in rok.dev.renku.ch by first installing the current master and then upgrading with this PR. Seems to work normally so I think the PR is gtg.

@aledegano
Copy link
Contributor Author

Wow, great, thanks for picking this up!

@aledegano
Copy link
Contributor Author

I'm still considered the author, so I cannot approve it 🤣

@rokroskar rokroskar enabled auto-merge (squash) January 10, 2022 15:33
@rokroskar rokroskar changed the title security: Upgrade to latest Keycloak chart. chore: upgrade to latest Keycloak chart Jan 10, 2022
@rokroskar rokroskar enabled auto-merge (squash) January 10, 2022 15:37
@rokroskar rokroskar temporarily deployed to ci-renku-2399 January 10, 2022 15:37 Inactive
@@ -6,7 +6,7 @@ name = "pypi"
[packages]
"urllib3" = ">=1.24.2"
"jinja2" = ">=2.10.1"
chartpress = "==0.7.0"
chartpress = "==1.0.0"
Copy link
Contributor

Choose a reason for hiding this comment

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

Wasn't there a reason for pinning this to 0.7.0 @aledegano ?

Copy link
Member

Choose a reason for hiding this comment

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

CI is using 1.0... I think that was part of the reason for the weird build discrepancy we were looking at last week @ableuler

Copy link
Contributor Author

Choose a reason for hiding this comment

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

IIRC the 0.7.0 was the latest version that still supported having the chartpress file in a different folder than that it expected.
However this was ~1 year ago and things might have changed(?)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

hmm when is this a problem?

Copy link
Member

Choose a reason for hiding this comment

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

afaict all of our chart building actions work fine with this change. But maybe I'm not hitting all the places that could break?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

🤷

Copy link
Member

Choose a reason for hiding this comment

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

I just ran chartpress locally from the base directory in this repo and it build all the images fine. So I'm not sure that "feature" of 1.0 matters here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I confirm that works for me too, I don't know what to say...

Copy link
Contributor

Choose a reason for hiding this comment

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

alright then, let's merge this and remind ourselves that this might be a problem if pipelines suddenly started to fail :)

Copy link
Contributor

@ableuler ableuler left a comment

Choose a reason for hiding this comment

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

Thanks @rokroskar for taking care of this!

@rokroskar rokroskar temporarily deployed to ci-renku-2399 January 11, 2022 11:21 Inactive
@rokroskar rokroskar merged commit a5df439 into master Jan 12, 2022
@rokroskar rokroskar deleted the update_keycloak branch January 12, 2022 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants