Skip to content

Commit 0bfab74

Browse files
authored
[Bugfix] [Platform] Improve NoAuth Identity (#1860)
1 parent e1befd0 commit 0bfab74

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## [master](https://github.com/arangodb/kube-arangodb/tree/master) (N/A)
44
- (Maintenance) Extend Documentation
5+
- (Bugfix) (Platform) Cover NoAuth Case for Identity Service
56

67
## [1.2.47](https://github.com/arangodb/kube-arangodb/tree/1.2.47) (2025-03-28)
78
- (Bugfix) Use Profile Annotations

integrations/authentication/v1/implementation.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,11 @@ func (i *implementation) CreateToken(ctx context.Context, request *pbAuthenticat
188188
}
189189

190190
func (i *implementation) Identity(ctx context.Context, _ *pbSharedV1.Empty) (*pbAuthenticationV1.IdentityResponse, error) {
191+
if !i.cfg.Enabled {
192+
// Auth is disabled, return static response
193+
return &pbAuthenticationV1.IdentityResponse{User: "root"}, nil
194+
}
195+
191196
md, ok := metadata.FromIncomingContext(ctx)
192197
if !ok {
193198
return nil, status.Error(codes.Unauthenticated, "Unauthenticated")

0 commit comments

Comments
 (0)