-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
feat(api): Support security interfaces fully #8213
Conversation
- Expose ExpectCT, ExpectStaple, and HPKP in UI - Correct hashing on ExpectCT, ExpectStaple, and HPKP to include type - Add support for ExpectCT and HPKP samples - Add bin/mock-event helper
@@ -5,7 +5,14 @@ import {Metadata} from '../proptypes'; | |||
class EventOrGroupTitle extends React.Component { | |||
static propTypes = { | |||
data: PropTypes.shape({ | |||
type: PropTypes.oneOf(['error', 'csp', 'default']).isRequired, | |||
type: PropTypes.oneOf([ |
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.
kind of painful maintaining these like this, but we can refactor in the future
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.
yeah we can move this into our types module later on
case 'raw': | ||
return <pre>{JSON.stringify({'csp-report': data}, null, 2)}</pre>; | ||
default: | ||
throw new TypeError(`Invalid view: ${view}`); |
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.
Does this component's parent have an ErrorBoundary?
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.
Dont think so but htis is the same way CSP works.
I was thinking about how we should just create an 'Interface' base component that all of these extend. It'd make life a lot easier and we could enforce some behavior a bit better.
Fixes GH-5133