-
Notifications
You must be signed in to change notification settings - Fork 0
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
[WIP] Dcap tdx attestation #2
Conversation
64e1792
to
a02b670
Compare
) | ||
|
||
replace github.com/edgelesssys/go-tdx-qpl => github.com/ruteri/go-tdx-qpl v0.0.0-20240705142333-1da84ccf7c1b |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is hopefully not needed any more, but needs testing!
cmd/proxy-client/main.go
Outdated
}, | ||
&cli.StringFlag{ | ||
Name: "attestation-type", | ||
Value: "azure", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Value: "azure", | |
Value: "azure-tdx", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be consts, ideally
cmd/proxy-server/main.go
Outdated
}, | ||
&cli.StringFlag{ | ||
Name: "attestation-type", | ||
Value: "azure", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Value: "azure", | |
Value: "azure-tdx", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
forgot about this one i guess?
Makefile
Outdated
.PHONY: lint | ||
lint: | ||
gofmt -d -s . | ||
gofumpt -d -extra . | ||
go vet ./... | ||
staticcheck ./... | ||
golangci-lint run | ||
nilaway ./... | ||
|
||
.PHONY: fmt | ||
fmt: | ||
gofmt -s -w . | ||
gci write . | ||
gofumpt -w -extra . | ||
go mod tidy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lint + fmt should ignore internal
.PHONY: lint | |
lint: | |
gofmt -d -s . | |
gofumpt -d -extra . | |
go vet ./... | |
staticcheck ./... | |
golangci-lint run | |
nilaway ./... | |
.PHONY: fmt | |
fmt: | |
gofmt -s -w . | |
gci write . | |
gofumpt -w -extra . | |
go mod tidy | |
.PHONY: lint | |
lint: | |
gofmt -d -s . | |
gofumpt -d -extra cmd common proxy tdx | |
go vet ./... | |
staticcheck ./... | |
golangci-lint run | |
nilaway ./... | |
.PHONY: fmt | |
fmt: | |
gofmt -s -w cmd common proxy tdx | |
gci write cmd common proxy tdx | |
gofumpt -w -extra cmd common proxy tdx | |
go mod tidy |
go.mod
Outdated
go 1.22.4 | ||
|
||
toolchain go1.23.0 | ||
go 1.23 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why increase the minimum go version?
b1319c5
to
f703c80
Compare
} | ||
} | ||
|
||
func server_side_tls_termination(cCtx *cli.Context) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could simplify?
func server_side_tls_termination(cCtx *cli.Context) error { | |
func run_server(cCtx *cli.Context) error { |
} | ||
} | ||
|
||
func client_side_tls_termination(cCtx *cli.Context) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could simplify?
func client_side_tls_termination(cCtx *cli.Context) error { | |
func run_client(cCtx *cli.Context) error { |
closing in favour of #18 |
Marked WIP again - needs a rebase and adjustments to dcap validation logic.