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

Uplift oc-id to use ruby 3.0.1 and rails 7.0.4 #3674

Merged
merged 27 commits into from Sep 29, 2023

Conversation

RoyShravani
Copy link
Contributor

@RoyShravani RoyShravani commented Jun 20, 2023

Description

Currently, oc-id (Chef Identity) is running on ruby 2.7 and rails 6. This PR aims to upgrade the application to use ruby 3+ and rails 7+ for better support and maintainability.

Issues Resolved

As part of the upgrade, it was found that one of the main gem Doorkeeper has two high security vulnerability issues:

  • CVE-2018-1000211
  • CVE-2020-10187
    Consequentially, doorkeeper gem has been upgraded from version 4.3 to use 5+. As a part of the doorkeeper upgrade, there has been few updates in the authorization of applications such as Supermarket with oc-id or Chef-Identity.
    The same change that would entail this upgrade has been outlined here: Supermarket authorization with Chef Identity

Demo

  1. supermarket_integration_smoke_test.mov
  2. Cookbook_upload_download.mov

Check List

https://chefio.atlassian.net/browse/CHEF-5290

@RoyShravani RoyShravani requested review from a team as code owners June 20, 2023 05:09
@netlify
Copy link

netlify bot commented Jun 20, 2023

👷 Deploy Preview for chef-server processing.

Name Link
🔨 Latest commit d7b6690
🔍 Latest deploy log https://app.netlify.com/sites/chef-server/deploys/6513c477119040000853f6cc

@RoyShravani
Copy link
Contributor Author

@RoyShravani RoyShravani changed the title [⚠️ DO NOT MERGE :WIP] Uplift oc-id to use ruby 3.1.0 and rails 7.0.4 [⚠️ DO NOT MERGE :WIP] Uplift oc-id to use ruby 3.0.1 and rails 7.0.4 Jun 23, 2023
@RoyShravani RoyShravani force-pushed the roy/oc_id_ruby_upgrade branch 2 times, most recently from 621faf2 to 16dfed7 Compare June 26, 2023 04:07
@jashaik
Copy link
Contributor

jashaik commented Jun 26, 2023

@jashaik
Copy link
Contributor

jashaik commented Jun 26, 2023

@RoyShravani
Copy link
Contributor Author

@RoyShravani
Copy link
Contributor Author

@sreepuramsudheer
Copy link
Contributor

sreepuramsudheer commented Sep 11, 2023

@RoyShravani RoyShravani changed the title [⚠️ DO NOT MERGE :WIP] Uplift oc-id to use ruby 3.0.1 and rails 7.0.4 Uplift oc-id to use ruby 3.0.1 and rails 7.0.4 Sep 20, 2023
@sreepuramsudheer
Copy link
Contributor

Signed-off-by: progress <shravani.roy@progress.com>
Signed-off-by: progress <shravani.roy@progress.com>
Signed-off-by: progress <shravani.roy@progress.com>
Signed-off-by: progress <shravani.roy@progress.com>
Signed-off-by: progress <shravani.roy@progress.com>
Signed-off-by: progress <shravani.roy@progress.com>
RoyShravani and others added 16 commits September 26, 2023 14:58
Signed-off-by: progress <shravani.roy@progress.com>
Signed-off-by: progress <shravani.roy@progress.com>
Signed-off-by: progress <shravani.roy@progress.com>
Signed-off-by: progress <shravani.roy@progress.com>
Signed-off-by: progress <shravani.roy@progress.com>

updating brakeman-analysis

Signed-off-by: progress <shravani.roy@progress.com>

adding libv8 dependency to lock file

Signed-off-by: progress <shravani.roy@progress.com>

nit

Signed-off-by: progress <shravani.roy@progress.com>

ruby update for habitat package

Signed-off-by: progress <shravani.roy@progress.com>

core/ruby30

Signed-off-by: progress <shravani.roy@progress.com>
Signed-off-by: progress <shravani.roy@progress.com>
Signed-off-by: progress <shravani.roy@progress.com>
Signed-off-by: progress <shravani.roy@progress.com>
Signed-off-by: progress <shravani.roy@progress.com>
Signed-off-by: progress <shravani.roy@progress.com>
Signed-off-by: progress <shravani.roy@progress.com>
Signed-off-by: progress <shravani.roy@progress.com>
Signed-off-by: progress <shravani.roy@progress.com>
Signed-off-by: progress <shravani.roy@progress.com>
Signed-off-by: progress <shravani.roy@progress.com>
Copy link

@saghoshprogress saghoshprogress left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Signed-off-by: progress <shravani.roy@progress.com>
Signed-off-by: progress <shravani.roy@progress.com>
Signed-off-by: progress <shravani.roy@progress.com>
Signed-off-by: progress <shravani.roy@progress.com>
@sonarcloud
Copy link

sonarcloud bot commented Sep 27, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@kalroy kalroy added the Expeditor: Bump Version Minor Used by github.minor_bump_labels to bump the Minor version number. label Sep 29, 2023
@sreepuramsudheer sreepuramsudheer merged commit 87dd8ec into main Sep 29, 2023
9 of 11 checks passed
@sreepuramsudheer sreepuramsudheer deleted the roy/oc_id_ruby_upgrade branch September 29, 2023 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Expeditor: Bump Version Minor Used by github.minor_bump_labels to bump the Minor version number.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants