ampproject / ampproject/amppackager

Improve CLI use case

Open
#248 1 comment 0 reactions 0 assignees View on GitHub
fixit
Dominant language
Go
Stars
141
Forks
46
PR merge metrics
No merged PRs in 30d

Description

Some folks are using `cmd/transform` + `gen-signedexchange` offline, rather than running `cmd/amppkg` online. Improve this use case, filling in the gaps of the other things amppkg does with offline alternatives:

- [ ] Adding a `-version` flag to `cmd/transform` so it can output older versions.
- [ ] Specifying the proper inner headers (perhaps output as flags to `gen-signedexchange`).
- [ ] Specifying the proper outer headers. (Is there a way to do this e.g. with static files on Apache or nginx?)
- [ ] Perhaps knowing when the OCSP response needs to be refreshed. (Though [rq](https://github.com/rq/rq) + `openssl` can be used for this.)
- [ ] Maybe ACME cert renewal (unless we can confirm an existing CLI works for SXG certs).
- [ ] Anything else?

Contributor guide

Open the contributing guide

Research direction

Start by reading the cmd/transform, gen-signedexchange, and cmd/amppkg entry points and comparing the offline workflow with the online one. Review the listed gaps around version selection, inner and outer headers, OCSP refresh, and ACME renewal; done requires a decided scope and working offline alternatives for the selected capabilities.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend, cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.