-
Notifications
You must be signed in to change notification settings - Fork 19
ridesx: support OCI flashing #195
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,6 +25,7 @@ | |
|
|
||
| from jumpstarter.client.decorators import driver_click_group | ||
| from jumpstarter.common.exceptions import ArgumentError, JumpstarterException | ||
| from jumpstarter.common.fls import get_fls_github_url | ||
|
|
||
|
|
||
| class FlashError(JumpstarterException): | ||
|
|
@@ -533,8 +534,8 @@ def _flash_with_fls( | |
| self._download_fls_binary(console, prompt, fls_binary_url, f"Failed to download FLS from {fls_binary_url}") | ||
| elif fls_version != "": | ||
| self.logger.info(f"Downloading FLS version {fls_version} from GitHub releases") | ||
| # Download fls binary to the target device (until it is available on the target device) | ||
| fls_url = f"https://github.com/jumpstarter-dev/fls/releases/download/{fls_version}/fls-aarch64-linux" | ||
| # Download fls binary to the target device (always aarch64 for target devices) | ||
| fls_url = get_fls_github_url(fls_version, arch="aarch64") | ||
| self._download_fls_binary(console, prompt, fls_url, f"Failed to download FLS from {fls_url}") | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can we reorganize this so that instead of always downloading, we embed a version in the general jumpstarter Dockerfile ? This can also be a security issue, I would add a flag in the driver side + config, that disabled by default fls download from any random URL. This is an attack vector: just pass the URL to a trojan that will run on a container with privileges :-) On the DUT it is a bit different because it will be powered off and it's volatile/will be reset.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think that still having the ability to enable it makes it easier for administrators to try out new fls versions, but should be disabled by default and encouraged not to allow such thing with a huge warning :D
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeah yeah, i had a note to remove this when i'm done, it was easier for me than doing copies into the live exporter container each time 😅
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. but yes, we can have an exporter side flag for admins
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. added: we'll keep this between us 😅
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If the url is exporter set, I think it's perfectly fine :D |
||
|
|
||
| # Flash the image | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.