Bug 1879638
Summary: | Binary file uploaded to a secret in OCP 4 GUI is not properly converted to Base64-encoded string | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Rejeeb <rabdulra> | ||||||||
Component: | Management Console | Assignee: | Joe Caiani <jcaiani> | ||||||||
Status: | CLOSED ERRATA | QA Contact: | Siva Reddy <schituku> | ||||||||
Severity: | medium | Docs Contact: | |||||||||
Priority: | medium | ||||||||||
Version: | 4.6 | CC: | akretzsc, andbartl, aos-bugs, arghosh, aygarg, jcaiani, jhadvig, jokerman, ngirard, spadgett, yapei | ||||||||
Target Milestone: | --- | ||||||||||
Target Release: | 4.8.0 | ||||||||||
Hardware: | Unspecified | ||||||||||
OS: | Unspecified | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||||
Doc Text: |
Cause: after 4.x we stopped supporting bin files for secrets
Consequence: in 4.8 we've added this ability back to the console
Fix: support binary files for secret values
Result:
|
Story Points: | --- | ||||||||
Clone Of: | |||||||||||
: | 1939553 (view as bug list) | Environment: | |||||||||
Last Closed: | 2021-07-27 22:33:27 UTC | Type: | Bug | ||||||||
Regression: | --- | Mount Type: | --- | ||||||||
Documentation: | --- | CRM: | |||||||||
Verified Versions: | Category: | --- | |||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||
Embargoed: | |||||||||||
Bug Depends On: | |||||||||||
Bug Blocks: | 1939553 | ||||||||||
Attachments: |
|
Description
Rejeeb
2020-09-16 17:23:35 UTC
I believe the underlying issue that we read the file as text, which won't work for binary files: `reader.readAsText(file, 'UTF-8')` https://github.com/spadgett/console/blob/3c1e88824e28cff26a472a95041f4c892f01b042/frontend/public/components/utils/file-input.tsx#L39 In the middle of the fixing process. Will fix next sprint. Still working on this issue. Jakub, Do you have any update to share on this bug please? Hey Alex, we are still working on this issue. To be honest we have't got time to address it yet since we are on feature work. But Im confident it will get solved this sprint. pr is up for review, will complete in upcoming sprint Created attachment 1763852 [details]
OriginalSecret
Created attachment 1763853 [details]
binary file
Created attachment 1763854 [details]
yaml output
retested using correct binary file and it works as intended. hence moving to verified. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: OpenShift Container Platform 4.8.2 bug fix and security update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2021:2438 |