Skip to content
This repository was archived by the owner on Oct 11, 2024. It is now read-only.

Comments

Remove old key generation scripts#1447

Merged
gdbelvin merged 3 commits intogoogle:masterfrom
gdbelvin:keys
Feb 21, 2020
Merged

Remove old key generation scripts#1447
gdbelvin merged 3 commits intogoogle:masterfrom
gdbelvin:keys

Conversation

@gdbelvin
Copy link
Contributor

@gdbelvin gdbelvin commented Feb 4, 2020

Replace some very funky scripts with with golang's cleaner generate_cert.go

Replace with golang's `generate_cert.go`
@gdbelvin gdbelvin requested a review from a team as a code owner February 4, 2020 15:20
@gdbelvin gdbelvin requested a review from NatalieDoduc February 4, 2020 15:20
@codecov
Copy link

codecov bot commented Feb 4, 2020

Codecov Report

Merging #1447 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1447   +/-   ##
=======================================
  Coverage   67.83%   67.83%           
=======================================
  Files          54       54           
  Lines        4026     4026           
=======================================
  Hits         2731     2731           
  Misses        893      893           
  Partials      402      402

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2d0083c...aece388. Read the comment docs.

Copy link

@NatalieDoduc NatalieDoduc left a comment

Choose a reason for hiding this comment

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

Is this idempotent in functionality?

@gdbelvin
Copy link
Contributor Author

gdbelvin commented Feb 5, 2020

It's the same functionality, but much more readable / maintainable.

./scripts/gen_monitor_keys.sh -f
kubectl create secret generic kt-monitor --from-file=genfiles/monitor_sign-key.pem
kubectl create secret tls kt-tls --cert=genfiles/server.crt --key=genfiles/server.key
go run "$(go env GOROOT)/src/crypto/tls/generate_cert.go" --host localhost,127.0.0.1,::

Choose a reason for hiding this comment

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

with go modules now, is there a way to express this without needing to set the GOROOT?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

go env GOROOT does not require the $GOROOT environment variable to be set.

GOROOT points to the go source tree, not the place where software is developed

@NatalieDoduc NatalieDoduc removed their assignment Feb 6, 2020
Copy link

@NatalieDoduc NatalieDoduc left a comment

Choose a reason for hiding this comment

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

Thanks!

@gdbelvin gdbelvin merged commit 843f369 into google:master Feb 21, 2020
@gdbelvin gdbelvin deleted the keys branch February 21, 2020 17:19
gdbelvin added a commit to gdbelvin/keytransparency that referenced this pull request May 26, 2020
`scripts/preare_server` was replaced with  `$(go env
GOROOT)/src/crypto/tls/generate_cert.go` in google#1447
gdbelvin added a commit that referenced this pull request May 27, 2020
`scripts/preare_server` was replaced with  `$(go env
GOROOT)/src/crypto/tls/generate_cert.go` in #1447
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants