Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove root_pem_file from cfg, and only allow a single file #225

Merged
merged 2 commits into from
Sep 6, 2024

Conversation

phbnf
Copy link
Contributor

@phbnf phbnf commented Sep 6, 2024

Towards #200 and #88.

This PR does two things:

  • Requires for all roots to be defined in a single file, rather than multiple
  • Moves roots_pem_file from the config, to a flag

Leaving a TODO to move the roots_pem_file check rather than deleting in this PR because I've already done it further down in the chain of commits, but rebasing these commits is a bit of a pain with all the tests.

@@ -48,9 +48,9 @@ type LogConfig struct {
// origin identifies the log. It will be used in its checkpoint, and
// is also its submission prefix, as per https://c2sp.org/static-ct-api
Origin string
// Paths to the files containing root certificates that are acceptable to the
// Paths to the file containing root certificates that are acceptable to the
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
// Paths to the file containing root certificates that are acceptable to the
// Path to the file containing root certificates that are acceptable to the

projectID = flag.String("project_id", "", "origin of the log, for checkpoints and the monitoring prefix")
bucket = flag.String("bucket", "", "name of the bucket to store the log in")
spannerDB = flag.String("spanner_db_path", "", "projects/{projectId}/instances/{instanceId}/databases/{databaseId}")
rootsPemFile = flag.String("roots_pem_file", "", "Paths to the file containing root certificates that are acceptable to the log. The certs are served through get-roots endpoint.")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
rootsPemFile = flag.String("roots_pem_file", "", "Paths to the file containing root certificates that are acceptable to the log. The certs are served through get-roots endpoint.")
rootsPemFile = flag.String("roots_pem_file", "", "Path to the file containing root certificates that are acceptable to the log. The certs are served through get-roots endpoint.")

@phbnf phbnf merged commit 0d8f472 into transparency-dev:main Sep 6, 2024
12 checks passed
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.

2 participants