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

feat(kas): collect metrics #1702

Open
wants to merge 39 commits into
base: main
Choose a base branch
from
Open

feat(kas): collect metrics #1702

wants to merge 39 commits into from

Conversation

sujankota
Copy link
Contributor

No description provided.

@sujankota sujankota changed the title feat(kas) - collect metrics feat(kas): collect metrics Nov 6, 2024
@sujankota sujankota marked this pull request as ready for review November 6, 2024 18:37
@sujankota sujankota requested review from a team as code owners November 6, 2024 18:37
pflynn-virtru
pflynn-virtru previously approved these changes Nov 8, 2024
@sujankota sujankota requested a review from a team as a code owner November 13, 2024 21:54
Copy link
Member

@dmihalcik-virtru dmihalcik-virtru left a comment

Choose a reason for hiding this comment

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

Just some nits about cleaning up the imports.

service/go.mod Outdated Show resolved Hide resolved
service/kas/access/publicKey.go Outdated Show resolved Hide resolved
service/main.go Show resolved Hide resolved
@@ -31,7 +31,7 @@ func init() {

func newSDK() (*sdk.SDK, error) {
resolver.SetDefaultScheme("passthrough")
opts := []sdk.Option{sdk.WithStoreCollectionHeaders()}
Copy link
Member

Choose a reason for hiding this comment

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

Is this causing failures in integration test?

@@ -31,7 +31,7 @@ func init() {

func newSDK() (*sdk.SDK, error) {
resolver.SetDefaultScheme("passthrough")
opts := []sdk.Option{sdk.WithStoreCollectionHeaders()}
opts := []sdk.Option{sdk.WithStoreCollectionHeaders(), sdk.WithInsecurePlaintextConn()}
Copy link
Contributor

@imdominicreed imdominicreed Nov 21, 2024

Choose a reason for hiding this comment

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

you probably want to drop sdk.WithStoreCollectionHeaders().

There is no way to determine if a nanoTDF is part of a collection or not, with this option on, it will always assume its part of a collection.

Since you are decrypting the same nanoTDF, it will store the key with the header and future decrypts will skip the rewrap call.

It's probably best that you remove this option for benchmarking.

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.

4 participants