Proto commits in ampproject/amppackager

These 32 commits are when the Protocol Buffers files have changed:

Commit:66d47df
Author:renovate[bot]
Committer:GitHub

Update golang dependencies

Commit:aa1df0c
Author:renovate[bot]
Committer:GitHub

Update golang dependencies

Commit:45b9577
Author:renovate[bot]
Committer:GitHub

Update golang dependencies

Commit:3cac3c2
Author:renovate[bot]
Committer:GitHub

Update golang dependencies

Commit:6d17f8c
Author:renovate[bot]
Committer:GitHub

Update golang dependencies

Commit:8cee247
Author:renovate[bot]
Committer:GitHub

Update golang dependencies

Commit:a7f2ba1
Author:renovate[bot]
Committer:GitHub

Update golang dependencies (#687) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

Commit:36448ab
Author:renovate[bot]
Committer:GitHub

Update golang dependencies (#673) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

Commit:67d22e0
Author:Allan Banaag
Committer:GitHub

Update go.mod and vendor files (#649)

Commit:7561649
Author:renovate[bot]
Committer:GitHub

Update golang dependencies (#587) Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com>

Commit:73afcfe
Author:renovate[bot]
Committer:GitHub

Update golang dependencies (#584) Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com>

Commit:19c4b8a
Author:renovate[bot]
Committer:GitHub

Update github.com/ampproject/amphtml commit hash to 65a3b3c (#560) Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com>

The documentation is generated from this commit.

Commit:0395fd5
Author:Ben Kochie
Committer:GitHub

Update various Go modules (#548) Update several Go modules to current releases. Un-pin some hard-coded overrides that don't seem to impact build/test. Add `update-go-deps` make target to simplify updating. Signed-off-by: SuperQ <superq@gmail.com>

Commit:8545bac
Author:Ben Kochie
Committer:GitHub

Update Let's Encrypt client to v4 (#550) Update to the latest go-acme/lego major version. Signed-off-by: SuperQ <superq@gmail.com>

Commit:8fbd1a7
Author:Devin Mullins
Committer:Devin Mullins

When there is at least one module on the page, extract only modulepreloads. A future commit will format this properly in signer.go. PiperOrigin-RevId: 369289290

Commit:6e777be
Author:Devin Mullins
Committer:GitHub

Run `go mod vendor`. (#479)

Commit:62ad49f
Author:Googler
Committer:Devin Mullins

AMP Packager: Extract `<link rel=preload as=image>` into Link header Also updates the `<link>` generation to use `imagesrcset` and `imagesizes`, which are both supported in Chrome 73+. We don't need to do anything fancy! Re: https://github.com/ampproject/amppackager/issues/461 PiperOrigin-RevId: 337974534

Commit:bbd9dbe
Author:honeybadgerdontcare
Committer:Devin Mullins

These two files were meant to be kept in sync but it appears the amppackager request.proto was missing ACTIONS. ACTIONS is now deprecated so adding in comment that 5 is reserved. github.com/ampproject/amppackager/transformer/request/request.proto github.com/ampproject/amphtml/validator/validator.proto PiperOrigin-RevId: 326555470

Commit:e416691
Author:Allan Banaag
Committer:GitHub

Integrate CertFetcher with flag-protection into AMP Packager. (#349) * Update ACME config to include email adddress and acme challenge port. Update certcache to use certfetcher if cert autorenew is turned on. Update certloader.PopulateCertCache to instantiate certfetcher and pass it on to certcache instance. * Add config file error checking for PopulateCertCache. * Add more logic to handle initial conditions with invalid cert and to address comments from gregable@. * Code refactor/cleanup involving certs. * Add DNS and TLS challenges, added them to load from config, cleaned up autorenewcert config parsing. * go mod tidy, go mod vendor updates * Fixed CSR Loading, added it to config * Fixed bugs with checking for cert expiry. * Added support for saving the fetched certs to disk and for certs to be loaded by non-auto-renewing amppackager instances. * Fixed gateway server call to certcache. Removed go module files inside gateway server dir. Re-ran go mod tidy. * Fixed certcache_test.go after merge. * Fixed bugs in certcache, also fixed unit test. * Added locking for reading/writing certs. * Ran go fmt on files that have incorrect formatting * Fix twifkak first-pass comments except the logic change comment which I will address in a later commit. * Fix twifkak comments for ocsp refresh logic and ocsp cache purge. * Fix additional twifkak comments. * Fix 2nd round of twifkak comments. * Fix gregable@ comments.

Commit:b836280
Author:Devin Mullins
Committer:Devin Mullins

Compute SXG duration based on the max-age of inline amp-scripts. PiperOrigin-RevId: 269433020

Commit:83729a6
Author:Allan Banaag
Committer:GitHub

Go module conversion (#346) Generate go mod files with replace directive to pin to desired versions.

Commit:651d55b
Author:Matt Mower
Committer:Devin Mullins

certcache: Switch to gofrs/flock Update the include to reference github.com/gofrs/flock which is the new home of github.com/theckman/go-flock. Also, update to flock.New() which is now preferred over flock.NewFlock().

Commit:1158601
Author:Googler
Committer:Devin Mullins

Add media attribute for sending image preload link header data in the following path: Preload image metadata gets converted to appropriate link http header. ^ (HTTP header) | signer.go:serveSignedExchange ^ (request.Metadata) | transformer.go:Process ^ (context.Preloads) | preload.go:PreloadImage This will eventually deprecate transformer.go:extractPreloads method. PiperOrigin-RevId: 242536309

Commit:9199aeb
Author:Amaltas
Committer:Devin Mullins

Add gateway server code and updates protobuf package. (#264)

Commit:a2e79d8
Author:Devin Mullins
Committer:Devin Mullins

Export SelectVersion() function, to be called before Process(). As soon as I tried to integrate this into the packager, I realized I need to do them separately. Imagine a request: AMP-Cache-Transform: google;v="2", any;v="1" If only version 1 is supported, then the A-C-T parser needs to determine that, and select `any` instead of `google` (without running the transforms multiple times). Incremented the minimum version to 1, since this now relies on a sentinel value of 0 to mean "not specified" in the proto3 message. Addresses #29. PiperOrigin-RevId: 218195708

Commit:1bea9db
Author:Devin Mullins
Committer:Devin Mullins

Add versioning support to the transformer library. This defines everything the library currently does as version 0. Any changes subsequent to this commit should be in an `if e.Version >= 1 { ... }` block. Addresses #29. PiperOrigin-RevId: 217617119

Commit:3513f87
Author:Devin Mullins
Committer:Devin Mullins

Add `as` attributes to the preloads, needed for a useful set of Link headers. PiperOrigin-RevId: 217262199

Commit:efd699f
Author:Devin Mullins
Committer:Devin Mullins

Return the list of preloads from transformer.Process, for use by the packager to generate Link: rel=preload headers. PiperOrigin-RevId: 216780322

Commit:3fdb956
Author:Devin Mullins
Committer:Devin Mullins

Add a field to the Request proto containing a list of allowed formats (defaulting to all existing ones -- AMP, AMP4Ads, AMP4Email). PiperOrigin-RevId: 216403657

Commit:afcaffc
Author:Devin Mullins
Committer:Devin Mullins

Rename transformer code per #28. PiperOrigin-RevId: 212678812

Commit:7520318
Author:Angie Lin
Committer:GitHub

Sync from Google (#72) * PiperOrigin-RevId: 210973919 * Switch to config-driven transformations. PiperOrigin-RevId: 211154808

Commit:e46a834
Author:Angie Lin
Committer:GitHub

Sync from Google (#70) * PiperOrigin-RevId: 210169514 * PiperOrigin-RevId: 210377103 * PiperOrigin-RevId: 210555642 * PiperOrigin-RevId: 210563116 * PiperOrigin-RevId: 210614088 * PiperOrigin-RevId: 210622857 * PiperOrigin-RevId: 210817606 * PiperOrigin-RevId: 210945381 * PiperOrigin-RevId: 210946135