Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: remove signature

d-bytebase4e99e720c605
diff --git a/backend/api/auth/auth.go b/backend/api/auth/auth.go
index 55cf9cbea4..0566d52a69 100644
--- a/backend/api/auth/auth.go
+++ b/backend/api/auth/auth.go
@@ -22,8 +22,6 @@ import (
"github.com/golang-jwt/jwt/v5"
errs "github.com/pkg/errors"
- annotationsproto "google.golang.org/genproto/googleapis/api/annotations"
-
"github.com/bytebase/bytebase/backend/common"
"github.com/bytebase/bytebase/backend/component/config"
"github.com/bytebase/bytebase/backend/component/state"
@@ -367,16 +365,10 @@ func getAuthContext(fullMethod string) (*common.AuthContext, error) {
case v1pb.AuthMethod_CUSTOM:
authMethod = common.AuthMethodCustom
}
- signatureAny := proto.GetExtension(md, annotationsproto.E_MethodSignature)
- signature, ok := signatureAny.([]string)
- if !ok {
- return nil, errs.Errorf("invalid signature extension, full method name %q", fullMethod)
- }
return &common.AuthContext{
AllowWithoutCredential: allowWithoutCredential,
Permission: permission,
AuthMethod: authMethod,
- Signature: signature,
}, nil
}
diff --git a/backend/common/context.go b/backend/common/context.go
index b83a00722f..8637fcc9cb 100644
--- a/backend/common/context.go
+++ b/backend/common/context.go
@@ -39,5 +39,4 @@ type AuthContext struct {
AllowWithoutCredential bool
Permission string
AuthMethod AuthMethod
- Signature []string
}