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

[WIP] Dcap tdx attestation #2

Closed
wants to merge 10 commits into from
Closed

Conversation

Ruteri
Copy link
Collaborator

@Ruteri Ruteri commented Sep 2, 2024

Marked WIP again - needs a rebase and adjustments to dcap validation logic.

@Ruteri Ruteri marked this pull request as ready for review September 18, 2024 13:17
@Ruteri Ruteri force-pushed the baremetal-tdx-attestation-rebase branch from 64e1792 to a02b670 Compare September 18, 2024 13:17
)

replace github.com/edgelesssys/go-tdx-qpl => github.com/ruteri/go-tdx-qpl v0.0.0-20240705142333-1da84ccf7c1b
Copy link
Collaborator Author

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!

},
&cli.StringFlag{
Name: "attestation-type",
Value: "azure",
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Value: "azure",
Value: "azure-tdx",

Copy link
Contributor

Choose a reason for hiding this comment

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

should be consts, ideally

},
&cli.StringFlag{
Name: "attestation-type",
Value: "azure",
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Value: "azure",
Value: "azure-tdx",

Copy link
Contributor

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
Comment on lines 32 to 46
.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
Copy link
Contributor

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

Suggested change
.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
Copy link
Contributor

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?

@Ruteri Ruteri force-pushed the baremetal-tdx-attestation-rebase branch from b1319c5 to f703c80 Compare September 19, 2024 08:31
}
}

func server_side_tls_termination(cCtx *cli.Context) error {
Copy link
Contributor

Choose a reason for hiding this comment

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

could simplify?

Suggested change
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 {
Copy link
Contributor

Choose a reason for hiding this comment

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

could simplify?

Suggested change
func client_side_tls_termination(cCtx *cli.Context) error {
func run_client(cCtx *cli.Context) error {

@Ruteri Ruteri changed the title Baremetal tdx attestation [WIP] Baremetal tdx attestation Sep 20, 2024
@Ruteri Ruteri changed the title [WIP] Baremetal tdx attestation [WIP] Dcap tdx attestation Sep 20, 2024
@fnerdman
Copy link
Collaborator

closing in favour of #18

@fnerdman fnerdman closed this Oct 10, 2024
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.

3 participants