-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Description
In some instances, a LogScale license cannot create additional accounts. The code below attempts to locate the default user in a single org environment by looking for the username admin. However, by default (docs) the username is user and thus the helper code will attempt to create a user when the license prevents it.
humio-operator/images/helper/main.go
Lines 166 to 170 in c67d431
| if user.Username == adminAccountUserName { | |
| fmt.Printf("Found user ID using single-organization query.\n") | |
| return user.Id, nil | |
| } | |
| } |
This will lead to the helper spamming with the following error
Got err trying to obtain user ID of admin user: License does not allow adding users. Please contact Humio support.
Could not validate existing admin secret: Unable to validate if kubernetes secret logscale-admin-token holds a valid humio API token
Continuing to create/update token.
Got err trying to obtain user ID of admin user: License does not allow adding users. Please contact Humio support.
Could not validate existing admin secret: Unable to validate if kubernetes secret logscale-admin-token holds a valid humio API token
Continuing to create/update token.
You can work around this today by setting SINGLE_USER_USERNAME to admin but it might make sense to update this check to look for both admin & user.
Metadata
Metadata
Assignees
Labels
No labels