Version
v2.0.0
Describe the bug
API key created by system admin cannot write data due to get account function is the getAccountByEnvironmentID API:
|
resp, err := getAccountFunc(publicAPIEditor.Maintainer) |
|
if err != nil { |
|
return nil, err |
|
} |
usage ref:
|
resp, err := s.accountClient.GetAccountV2ByEnvironmentID(ctx, &accountproto.GetAccountV2ByEnvironmentIDRequest{ |
|
Email: email, |
|
EnvironmentId: environmentId, |
|
}) |
Example: this is called when we try to create a push with API key created by system admin account
Steps to reproduce the bug
No response
Expected behavior
No response
Relevant log output
Additional information
No response
Version
v2.0.0
Describe the bug
API key created by system admin cannot write data due to get account function is the getAccountByEnvironmentID API:
bucketeer/pkg/role/role.go
Lines 68 to 71 in a6c5494
usage ref:
bucketeer/pkg/push/api/api.go
Lines 1271 to 1274 in a6c5494
Example: this is called when we try to create a push with API key created by system admin account
Steps to reproduce the bug
No response
Expected behavior
No response
Relevant log output
Additional information
No response