autograph icon indicating copy to clipboard operation
autograph copied to clipboard

X5U urls are sent as inaccessible `file://` URLs in development

Open mythmon opened this issue 5 years ago • 6 comments

STR

  1. Run Autograph from docker: docker run mozilla/autograph
  2. Request a signature using the Normandy development credentials: curl -XPOST -d '{...}' https://localhost:8765/sign/data
  3. Query the returned x5u to validate the key.

Expected results

The x5u URL is accessible without additional, undocumented configuration.

Actual results

The x5u URL is a file:// URL that is inaccessible in the documented configuration.

This makes it impossible to use Normandy and Autograph in development, making Normandy development significantly harder to get right.

mythmon avatar Oct 02 '19 16:10 mythmon

@mythmon where does the normandy dev autograph config live?

g-k avatar Oct 02 '19 16:10 g-k

OK so the planned fix is:

  • [ ] always return http:// or https:// X5Us
  • [ ] in dev mode, have autograph serve the files referenced by X5Us from a local static directory localhost/static/. This might require changes to https://github.com/mozilla-services/autograph/blob/master/tools/genpki/genpki.go too.

g-k avatar Oct 02 '19 17:10 g-k

@mythmon where does the normandy dev autograph config live?

The default autograph config includes the Normandy development config.

mythmon avatar Oct 02 '19 17:10 mythmon

I missed the conversation on Slack, but I share this need :)

This is what devs have to do when setting up a local Remote Settings server: https://remote-settings.readthedocs.io/en/latest/tutorial-local-server.html#configure-multi-signoff

leplatrem avatar Oct 14 '19 13:10 leplatrem

Where are we on this? I remember the conversation but not the resolution. Is that still blocking normandy and kinto?

jvehent avatar Mar 26 '20 13:03 jvehent

It makes local development setup quite tedious, it would be nice to fix. But it's not blocking per-se

leplatrem avatar Mar 27 '20 09:03 leplatrem