Skip to content
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

Merged
merged 1 commit into from
Apr 26, 2018
Merged

Conversation

dcramer
Copy link
Member

@dcramer dcramer commented Apr 26, 2018

  • 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

Fixes GH-5133

- 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
@dcramer
Copy link
Member Author

dcramer commented Apr 26, 2018

Stream

screen shot 2018-04-26 at 9 46 32 am

Details

screen shot 2018-04-26 at 9 46 26 am

@@ -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([
Copy link
Member Author

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

Copy link
Member

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}`);
Copy link
Member

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?

Copy link
Member Author

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.

@dcramer dcramer merged commit 80bb9e0 into master Apr 26, 2018
@dcramer dcramer deleted the fix/security-interfaces branch April 26, 2018 17:34
@github-actions github-actions bot locked and limited conversation to collaborators Dec 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Handle Expect-CT and Expect-Staple violation reports
2 participants