-
Notifications
You must be signed in to change notification settings - Fork 45
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
Raise an exception for unknown CSPs #1207
base: master
Are you sure you want to change the base?
Conversation
unless INSTANCE_ID_KEYS.key?(id_key) | ||
error_message = 'Unknown cloud provider' | ||
Rails.logger.error error_message | ||
raise ActionController::TranslatedError.new(error_message) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why? I am unaware of any conversation at the business level where a decision was made that 3rd party CSPs that run their own update infrastructure are not allowed to offer BYOS pass through.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if the CSP is unknown we would not have a valid value for system_token
do we not care about that ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not understand what the system_token
has to do with this change. Nor what system_token
has to do with now breaking functionality for 3rd party CSPs that previously probably worked when disable_system_tokens: true
is set in the rmt.conf file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we are setting the system_token
for BYOS systems and we use system_token
to get the system
The method get_instance_id
is the method that sets that value
Description
Instead of saving
nil
or empty value on the DB forsystem_token
field, raise an exception if the CSP value from the metadata is unknownHow to test
Create a system with an unknown CSP, request should fail
Change Type
Please select the correct option.
Checklist
Please check off each item if the requirement is met.
MANUAL.md
file with any changes to the user experience.package/obs/rmt-server.changes
.Review
Please check out our review guidelines
and get in touch with the author to get a shared understanding of the change.