Skip to content

Conversation

lukedirtwalker
Copy link
Collaborator

@lukedirtwalker lukedirtwalker commented Jan 9, 2020

This moves the new TRC, Cert v2 code into the place of the old code.
Also moves v2 in the scion-pki to the parent folder.

This PR deletes cryptosyncer of the PS and custpk-load tool, because they used the old API.
Those removed processes have to be rewritten against the new version of the code.


This change is Reviewable

@lukedirtwalker lukedirtwalker requested a review from oncilla January 9, 2020 14:36
@lukedirtwalker lukedirtwalker added the i/breaking change PR that breaks forwards or backwards compatibility label Jan 9, 2020
Copy link
Contributor

@oncilla oncilla left a comment

Choose a reason for hiding this comment

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

Reviewed 310 of 310 files at r1.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @lukedirtwalker)


go/tools/scion-pki/internal/certs/cmd.go, line 84 at r1 (raw file):

the TRC referenced by the issuer certificate must also be present.

See 'scion-pki help v2 certs' for information on the selector.

drop v2

go/tools/scion-pki/internal/certs/cmd.go:See 'scion-pki help v2 certs' for information on the selector.
go/tools/scion-pki/internal/certs/cmd.go:See 'scion-pki help v2 certs' for information on the selector.
go/tools/scion-pki/internal/keys/cmd.go:file structure. See 'scion-pki help v2' for more information.
go/tools/scion-pki/internal/keys/cmd.go:See 'scion-pki help v2 keys' for information on the selector.
go/tools/scion-pki/internal/keys/cmd.go:See 'scion-pki help v2 keys' for information on the selector.

go/lib/scrypto/trc/update_test.go, line 25 at r1 (raw file):

	"github.com/scionproto/scion/go/lib/addr"
	"github.com/scionproto/scion/go/lib/scrypto"
	trc "github.com/scionproto/scion/go/lib/scrypto/trc"

drop named import

go/lib/scrypto/trc/primary_json_test.go:        trc "github.com/scionproto/scion/go/lib/scrypto/trc"
go/lib/scrypto/trc/primary_test.go:     trc "github.com/scionproto/scion/go/lib/scrypto/trc"
go/lib/scrypto/trc/signed_json_test.go: trc "github.com/scionproto/scion/go/lib/scrypto/trc"
go/lib/scrypto/trc/signed_test.go:      trc "github.com/scionproto/scion/go/lib/scrypto/trc"
go/lib/scrypto/trc/trc_json_test.go:    trc "github.com/scionproto/scion/go/lib/scrypto/trc"
go/lib/scrypto/trc/trc_test.go: trc "github.com/scionproto/scion/go/lib/scrypto/trc"
go/lib/scrypto/trc/update_test.go:      trc "github.com/scionproto/scion/go/lib/scrypto/trc"
go/lib/scrypto/trc/verify_test.go:      trc "github.com/scionproto/scion/go/lib/scrypto/trc"

This moves the new TRC, Cert v2 code into the place of the old code.
Also moves v2 in the scion-pki to the parent folder.

This PR deletes cryptosyncer of the PS and custpk-load tool, because they used the old API.
Those removed processes have to be rewritten against the new version of the code.
Copy link
Collaborator Author

@lukedirtwalker lukedirtwalker left a comment

Choose a reason for hiding this comment

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

Reviewable status: 300 of 310 files reviewed, 2 unresolved discussions (waiting on @oncilla)


go/tools/scion-pki/internal/certs/cmd.go, line 84 at r1 (raw file):

Previously, Oncilla wrote…

drop v2

go/tools/scion-pki/internal/certs/cmd.go:See 'scion-pki help v2 certs' for information on the selector.
go/tools/scion-pki/internal/certs/cmd.go:See 'scion-pki help v2 certs' for information on the selector.
go/tools/scion-pki/internal/keys/cmd.go:file structure. See 'scion-pki help v2' for more information.
go/tools/scion-pki/internal/keys/cmd.go:See 'scion-pki help v2 keys' for information on the selector.
go/tools/scion-pki/internal/keys/cmd.go:See 'scion-pki help v2 keys' for information on the selector.

Done.


go/lib/scrypto/trc/update_test.go, line 25 at r1 (raw file):

Previously, Oncilla wrote…

drop named import

go/lib/scrypto/trc/primary_json_test.go:        trc "github.com/scionproto/scion/go/lib/scrypto/trc"
go/lib/scrypto/trc/primary_test.go:     trc "github.com/scionproto/scion/go/lib/scrypto/trc"
go/lib/scrypto/trc/signed_json_test.go: trc "github.com/scionproto/scion/go/lib/scrypto/trc"
go/lib/scrypto/trc/signed_test.go:      trc "github.com/scionproto/scion/go/lib/scrypto/trc"
go/lib/scrypto/trc/trc_json_test.go:    trc "github.com/scionproto/scion/go/lib/scrypto/trc"
go/lib/scrypto/trc/trc_test.go: trc "github.com/scionproto/scion/go/lib/scrypto/trc"
go/lib/scrypto/trc/update_test.go:      trc "github.com/scionproto/scion/go/lib/scrypto/trc"
go/lib/scrypto/trc/verify_test.go:      trc "github.com/scionproto/scion/go/lib/scrypto/trc"

Done.

Copy link
Contributor

@oncilla oncilla left a comment

Choose a reason for hiding this comment

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

Reviewed 10 of 10 files at r2.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@lukedirtwalker lukedirtwalker merged commit b3dba4a into scionproto:master Jan 10, 2020
@lukedirtwalker lukedirtwalker deleted the pubSPKIV2 branch January 10, 2020 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
i/breaking change PR that breaks forwards or backwards compatibility
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants