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

Remove PackagerBase. #113

Merged
merged 1 commit into from
Sep 21, 2018
Merged

Remove PackagerBase. #113

merged 1 commit into from
Sep 21, 2018

Conversation

twifkak
Copy link
Member

@twifkak twifkak commented Sep 19, 2018

It is confusing, and also wrong, now that the validity-url must be
same-origin with the signed URL. Instead, the behavior is thus:

  1. validity-url is computed using the origin of the signed URL. It
    doesn't matter if this doesn't actually exist; the browser doesn't
    currently fetch it.
  2. In development, the cert-url is localhost, so that you can test with
    a browser.
  3. In production, the cert-url is computed using the origin of the
    signed URL. The README.md states that publishers must configure this
    when productionizing.

Fixes #79.

Ignore the first 4 commits; they will be rebased away.

README.md Outdated

#### Productionizing

For now, productionizing is a bit manual. We would love to see scripts or
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe omit this last sentence?

README.md Outdated
comamndline flags; just make sure chrome://flags/#enable-signed-http-exchange is
enabled.

#### Replicating
Copy link
Collaborator

Choose a reason for hiding this comment

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

Redundancy? I always think of replication in the context of data replication...

twifkak added a commit to twifkak/amppackager that referenced this pull request Sep 19, 2018
@twifkak
Copy link
Member Author

twifkak commented Sep 19, 2018

OK, done on #111, PTAL there.

It is confusing, and also wrong, now that the validity-url must be
same-origin with the signed URL. Instead, the behavior is thus:

1. validity-url is computed using the origin of the signed URL. It
   doesn't matter if this doesn't actually exist; the browser doesn't
   currently fetch it.
2. In development, the cert-url is localhost, so that you can test with
   a browser.
3. In production, the cert-url is computed using the origin of the
   signed URL. The README.md states that publishers must configure this
   when productionizing.
@twifkak twifkak merged commit d92938b into ampproject:master Sep 21, 2018
@twifkak twifkak deleted the packager_base branch September 21, 2018 02:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants