Repository navigation
AUT-681 - Adding example for running autograph locally with a test signer - #1267
Conversation
There was a problem hiding this comment.
When I adjusted Remote Settings' set up to adjust to the breaking changes, I opted to do this. Do you foresee any downsides with that vs the approach you recommend in this PR?
There was a problem hiding this comment.
Is this + my-signer-config.sql the same as https://github.com/mozilla-services/autograph/blob/main/database/schema.sql, or are there any notable changes to call out?
There was a problem hiding this comment.
database/schema.sql includes all of the test signers for unit tests. my-signer-config.sql is just one example signer and one auth. It's a very stripped down to show how somebody could add their specific test signer and auth. The DB schema is the same though.
| volumes: | ||
| - ./my-service-config.yml:/app/my-service-config.yml | ||
| command: /go/bin/autograph -c /app/my-service-config.yml |
There was a problem hiding this comment.
I notice we don't have this custom config + command, and tests work for us. Is that by accident? What would this give us over the default?
There was a problem hiding this comment.
The default service config points at a different database container and has some additional properties defined. This is mainly a stripped down example.
There was a problem hiding this comment.
Line 136 in 01e387b
Here's where the default file for the config is set unless passed in the command.
If we ever change the signers/auths used in our unit tests you might break. Since this is essentially piggybacking on all of those. That is likely to happen when we start implementing quantum safe signing options. |
| volumes: | ||
| - ./my-service-config.yml:/app/my-service-config.yml | ||
| command: /go/bin/autograph -c /app/my-service-config.yml |
There was a problem hiding this comment.
Line 136 in 01e387b
Here's where the default file for the config is set unless passed in the command.
|
@alexcottner, this is a nit but you could reference this PR in the docs/configuration.md so it's easy for our customers to know which files/location can be customized to fit their purpose. |
AUT-681
As mentioned out in mozilla/remote-settings#1661 , we adjusted our config model without creating a good pattern for our clients to use for local dev work or automated testing.
This aims to fix that with a little documentation and an example docker compose.