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

Add HTTP response certification v2 #1653

Merged
merged 7 commits into from
Jun 1, 2023
Merged

Conversation

frederikrothenberger
Copy link
Contributor

@frederikrothenberger frederikrothenberger commented May 31, 2023

This PR adds certification v2 support for assets served by II.
See specification here: https://github.com/dfinity/interface-spec/blob/master/spec/http-gateway-protocol-spec.md#the-http-gateway-protocol-specification

This PR contains only contains the minimal required features of v2
certification.
In particular, we do not yet take advantage of:

  • fast redirects
  • wildcard certification for certified 404 pages
  • certification opt-out for dynamic data (i.e. /metrics)

The certification v1 support is maintained.

Frederik Rothenberger and others added 2 commits May 31, 2023 11:31
This PR adds certification v2 support for assets served by II.
See specification here: https://github.com/dfinity/interface-spec/blob/master/spec/http-gateway-protocol-spec.md#the-http-gateway-protocol-specification

This PR contains only contains the minimal required features of v2
certification.
In particular, we do not yet take advantage of:
* fast redirects
* wildcard certification for certified 404 pages
* certification opt-out for dynamic data (i.e. /metrics)

The certification v1 support is maintained.
Copy link
Collaborator

@przydatek przydatek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please see some initial comments.

src/internet_identity/src/assets.rs Show resolved Hide resolved
src/internet_identity/src/assets.rs Show resolved Hide resolved
src/internet_identity/src/http.rs Show resolved Hide resolved
Frederik Rothenberger added 2 commits May 31, 2023 16:53
For some reason, this fixes the reproducibility issue.
@frederikrothenberger frederikrothenberger marked this pull request as ready for review May 31, 2023 15:15
Copy link
Collaborator

@przydatek przydatek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

src/internet_identity/src/nested_tree.rs Show resolved Hide resolved
src/internet_identity/src/nested_tree.rs Outdated Show resolved Hide resolved
@frederikrothenberger frederikrothenberger added this pull request to the merge queue Jun 1, 2023
Merged via the queue into main with commit ce008a0 Jun 1, 2023
@frederikrothenberger frederikrothenberger deleted the frederik/cert-v2 branch June 1, 2023 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants