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

monitor: remove the unneeded conf.env field #1083

Merged
merged 1 commit into from
Dec 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions tools/autograph-monitor/monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ type configuration struct {
origAutographURL string
requestURL string
monitoringKey string
env string
rootHashes []string
truststore *x509.CertPool

Expand Down Expand Up @@ -68,9 +67,8 @@ func main() {
// configure monitor to check responses against Fx stage or
// prod or autograph dev code signing PKI roots and CA root
// certs defined in constants.go
conf.env = os.Getenv("AUTOGRAPH_ENV")
var rootErr, depErr error
switch conf.env {
switch strings.TrimSpace(os.Getenv("AUTOGRAPH_ENV")) {
case "dev":
conf.truststore, conf.rootHashes, rootErr = loadCertsToTruststore(firefoxPkiDevRoots)
case "stage":
Expand Down
Loading