Affected module
openmetadata-service UI
Describe the bug
According to the documentation it is possible to setup a set of users and their passwords as a comma separated list as adminPrincipals in authorizerConfiguration (a note within https://docs.open-metadata.org/v1.4.x/deployment/security/basic-auth#authorizer-configuration claims that), however, instead of splitting the provided string by colon to get (admin_user_name, admin_user_password) pairs the entire string as passed as admin user name, with colon being the part of it.
After digging in the source code I'm pretty confident the culprit is one of the PR introduced last year, namely https://github.com/open-metadata/OpenMetadata/pull/11463/files when any mention of COLON_DELIMITER within UserUtil class was removed.
To Reproduce
The problem was noticed whie working on local minikube, so I'll provide the steps starting with the chart information, even if this error is not related to helm chart:
- please use the helm chart below to deploy OMD on local minikube, please only build the helm chart by running 'kustomize build --enable-helm > .\your_manifests.yaml'
`helmChartInflationGenerator:
- then please use kustomize to set value of key 'AUTHORIZER_ADMIN_PRINCIPALS' of k8s secret to a list of admins like presented in docuemtation note https://docs.open-metadata.org/v1.4.x/deployment/security/basic-auth#authorizer-configuration (or create/manipulate this secret manually in your_manifests.yaml).
- please apply the your_manifests.yaml to minikube instance by running ' kubectl apply -f .\your_manifests.yaml'
- observe the logs of the pod/tryto login with credentials provided in step 2. -> either the admins cannot login at all or those which can login have the same password.
Expected behavior
The expectation was that the users would be created with the passwords specified in the config.
Version:
- OS: 5.15.133.1-microsoft-standard-WSL2 (I'm running OMD on minikube on Windows)
- Python version: N/A
- OpenMetadata version: 1.3.0
- OpenMetadata Ingestion package version: N/A
- helm chart: https://helm.open-metadata.org/, chart name: openmetadata, chart version: 1.3.0
Additional context
Affected module
openmetadata-service UI
Describe the bug
According to the documentation it is possible to setup a set of users and their passwords as a comma separated list as adminPrincipals in authorizerConfiguration (a note within https://docs.open-metadata.org/v1.4.x/deployment/security/basic-auth#authorizer-configuration claims that), however, instead of splitting the provided string by colon to get (admin_user_name, admin_user_password) pairs the entire string as passed as admin user name, with colon being the part of it.
After digging in the source code I'm pretty confident the culprit is one of the PR introduced last year, namely https://github.com/open-metadata/OpenMetadata/pull/11463/files when any mention of COLON_DELIMITER within UserUtil class was removed.
To Reproduce
The problem was noticed whie working on local minikube, so I'll provide the steps starting with the chart information, even if this error is not related to helm chart:
`helmChartInflationGenerator:
chartVersion: 1.3.0
chartRepoUrl: https://helm.open-metadata.org/
releaseName: open-metadata
values: ./values.yaml`
Expected behavior
The expectation was that the users would be created with the passwords specified in the config.
Version:
Additional context