-
Notifications
You must be signed in to change notification settings - Fork 356
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
Fix for displaying string tags in summary pages #8945
Conversation
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.
My only concern is what version of dompurify we're using and ensuring we're up to date. I have 2.4.5 in my yarn.lock locally. As of today, the latest is 3.0.6 and 2.4.7 according to https://github.com/cure53/DOMPurify/tags. @jeffibm is that ok?
We should not be allowing arbitrary strings to set this stuff, particularly if they come from outside of our application. It should only be in specific select things we want to allow it in. I'm a big 👎 on this at the moment. Additionally, have you checked whether iframes can be rendered? If so, that component is out too IMO. |
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.
This change feels very dangerous as it opens it up to everything possibly in the structure list right hand side. I barely like this feature at all, but where we want to use it I want us to be very selective about it.
Checked with |
are you suggesting that we use them on selected pages? For eg, use this fix when
|
Yes, I think we need to be very specific about which fields use this down to very specific fields. By extension, we should not code this generically in things like MiqStructuredList. I'm not sure what other fields we want this in. Service description field is acceptable. I'd like to know which other fields we think are also acceptable. |
f4d259a
to
b2ab910
Compare
2a553f1
to
0353a97
Compare
Checked commit jeffbonson@0353a97 with ruby 2.6.10, rubocop 1.28.2, haml-lint 0.35.0, and yamllint |
The values we get to the react components are in string format. In this case,
If we want to restrict the usage of I tried another option. We are passing a unique In this case, all values of the I had pushed these changes. |
Let's discuss further. An idea was raised to perhaps allow markdown content, and I really like that idea, so perhaps we can explore that. |
I guess we can close this PR as the suggested fix has been attempted in another PR - #8972 |
Closing this PR since the changes are handled in a different PR - #8972 |
Edit the description to something like this-
Then go to summary page to check this-
Before
After
Snapshots were also updated