Skip to content

AUT-681 - Adding example for running autograph locally with a test signer - #1267

Merged
alexcottner merged 4 commits into
mainfrom
aut-681
Oct 21, 2026
Merged

alexcottner merged 4 commits into
mainfrom
aut-681

Conversation

@alexcottner

@alexcottner alexcottner commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

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.

@alexcottner
alexcottner requested review from a team as code owners October 21, 2026 15:46

@grahamalama grahamalama left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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?

@alexcottner alexcottner Oct 21, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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.

Comment on lines +24 to +26
volumes:
- ./my-service-config.yml:/app/my-service-config.yml
command: /go/bin/autograph -c /app/my-service-config.yml

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The default service config points at a different database container and has some additional properties defined. This is mainly a stripped down example.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

fset.StringVar(&serviceFile, "c", "autograph-service.yaml", "Path to service configuration file")

Here's where the default file for the config is set unless passed in the command.

@alexcottner

Copy link
Copy Markdown
Contributor Author

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?

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.

Comment on lines +24 to +26
volumes:
- ./my-service-config.yml:/app/my-service-config.yml
command: /go/bin/autograph -c /app/my-service-config.yml

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

fset.StringVar(&serviceFile, "c", "autograph-service.yaml", "Path to service configuration file")

Here's where the default file for the config is set unless passed in the command.

@say-yawn

Copy link
Copy Markdown
Contributor

@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.

@alexcottner
alexcottner enabled auto-merge (squash) October 21, 2026 20:50
@alexcottner
alexcottner merged commit d3c31f2 into main Oct 21, 2026
15 checks passed
@alexcottner
alexcottner deleted the aut-681 branch October 21, 2026 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants