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

Move ZypperAuth.verify_instance to InstanceVerification engine #1149

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

jesusbv
Copy link
Collaborator

@jesusbv jesusbv commented May 10, 2024

Description

Move the instance verification check to the InstanceVerification engine

Change Type

Please select the correct option.

  • Bug Fix (a non-breaking change which fixes an issue)
  • New Feature (a non-breaking change which adds new functionality)
  • Documentation Update (a change which only updates documentation)

Checklist

Please check off each item if the requirement is met.

  • I have verified that my code follows RMT's coding standards with rubocop.
  • I have reviewed my own code and believe that it's ready for an external review.
  • I have provided comments for any hard-to-understand code.
  • I have documented the MANUAL.md file with any changes to the user experience.
  • RMT's test coverage remains at 100%.
  • If my changes are non-trivial, I have added a changelog entry to notify users at package/obs/rmt-server.changes.

Other Notes

Please use this space to provide notes or thoughts to the team, such as tips on how to review/demo your changes.

@jesusbv jesusbv requested review from bear454 and rjschwei May 10, 2024 17:11
@jesusbv jesusbv self-assigned this May 10, 2024
Copy link
Member

@rjschwei rjschwei left a comment

Choose a reason for hiding this comment

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

I have no idea what is happening now, there appears to be thrashing, maybe based on confusion. There are a lot of inconsistencies, going to stop review until we have a chance to sort out what's going on.

)
if File.exist?(cache_path)
# only update registry cache key
InstanceVerification.update_cache(request.remote_ip, system.login, nil, is_byos: system.proxy_byos, registry: true)
Copy link
Member

Choose a reason for hiding this comment

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

The is_byos key was removed with ccb4e6e ???

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The PR was created without the removal of BYOS changes in place

I have merged master branch into this branch so the removal of BYOS param is in place

false
end

def self.build_cache_key(remote_ip, login, base_product_id: nil)
Copy link
Member

Choose a reason for hiding this comment

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

This seems more complicated than it needs to be. Is there any reason something simpler couldn't be used, since there's no check on the assigned values anyway?

def self.build_cache_key(*args)
  args.compact.join('-')
end

@rjschwei rjschwei marked this pull request as draft May 13, 2024 18:49
@rjschwei
Copy link
Member

Given that this is not a functionality change and more of a code cleanliness item let's make sure this does not get merged until after 2.17 is cut. We agreed 2.17 testing will start tomorrow and we do not want to interfere with the agreed upon timeline by merging more changes that force testing to start over.

@rjschwei
Copy link
Member

I will come back for review after 2.17 is done.

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

Successfully merging this pull request may close these issues.

4 participants