Bug 1835163
| Summary: | Configure role-mapping on SSO to grafana | |||
|---|---|---|---|---|
| Product: | [oVirt] ovirt-engine-dwh | Reporter: | Yedidyah Bar David <didi> | |
| Component: | Setup | Assignee: | Yedidyah Bar David <didi> | |
| Status: | CLOSED DEFERRED | QA Contact: | Lucie Leistnerova <lleistne> | |
| Severity: | high | Docs Contact: | ||
| Priority: | high | |||
| Version: | --- | CC: | asocha, bugs, emarcus, mperina, sradco | |
| Target Milestone: | --- | |||
| Target Release: | --- | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1883476 (view as bug list) | Environment: | ||
| Last Closed: | 2021-04-26 08:16:52 UTC | Type: | Bug | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | Metrics | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | 1807323, 1835152 | |||
| Bug Blocks: | 1883476 | |||
|
Description
Yedidyah Bar David
2020-05-13 09:49:50 UTC
Tentatively targeting 4.4.1, working with platform to get grafana rebase backported to RHEL 8.2.1 Now looked a bit at this, and it seems like the engine does not provide in userinfo anything to base a decision on, regarding whether to automatically allow access - roles, groups, etc. I might be missing something. I checked grafana log (after changing its log level to 'debug') and see: t=2021-02-09T09:48:44+0200 lvl=dbug msg="HTTP GET https://FQDN/ovirt-engine/sso/openid/userinfo: 200 OK {\n \"acr\" : \"0\",\n \"authTime\" : 1612791725921,\n \"sub\" : \"admin@internal\",\n \"preferredUserName\" : \"admin@internal\",\n \"email\" : \"root@localhost\",\n \"name\" : \"admin\",\n \"familyName\" : \"admin\",\n \"givenName\" : \"admin\",\n \"jti\" : \"5dd04d3c-7a6d-4560-a1d5-3201beb8efd5\",\n \"exp\" : 1612793525921,\n \"iat\" : 1612791725921,\n \"iss\" : \"https://didi-centos8-engine.lab.eng.tlv2.redhat.com:443\",\n \"aud\" : \"ovirt-grafana\"\n}" t=2021-02-09T10:13:39+0200 lvl=dbug msg="HTTP GET https://FQDN/ovirt-engine/sso/openid/userinfo: 200 OK {\n \"acr\" : \"0\",\n \"authTime\" : 1612858143078,\n \"sub\" : \"testu1@internal\",\n \"preferredUserName\" : \"testu1@internal\",\n \"email\" : \"testu1@localhost\",\n \"name\" : \"John\",\n \"familyName\" : \"John\",\n \"givenName\" : \"John\",\n \"jti\" : \"5a6ff251-a26c-4281-a3de-d9ce6c2e7635\",\n \"exp\" : 1612859943078,\n \"iat\" : 1612858143078,\n \"iss\" : \"https://didi-centos8-engine.lab.eng.tlv2.redhat.com:443\",\n \"aud\" : \"ovirt-grafana\"\n}" Artur, is it indeed missing? Or is there a way to configure what information we provide? (In reply to Yedidyah Bar David from comment #2) > Now looked a bit at this, and it seems like the engine does not provide in > userinfo anything to base a decision on, regarding whether to automatically > allow access - roles, groups, etc. I might be missing something. > > I checked grafana log (after changing its log level to 'debug') and see: > > t=2021-02-09T09:48:44+0200 lvl=dbug msg="HTTP GET > https://FQDN/ovirt-engine/sso/openid/userinfo: 200 OK {\n \"acr\" : > \"0\",\n \"authTime\" : 1612791725921,\n \"sub\" : \"admin@internal\",\n > \"preferredUserName\" : \"admin@internal\",\n \"email\" : > \"root@localhost\",\n \"name\" : \"admin\",\n \"familyName\" : > \"admin\",\n \"givenName\" : \"admin\",\n \"jti\" : > \"5dd04d3c-7a6d-4560-a1d5-3201beb8efd5\",\n \"exp\" : 1612793525921,\n > \"iat\" : 1612791725921,\n \"iss\" : > \"https://didi-centos8-engine.lab.eng.tlv2.redhat.com:443\",\n \"aud\" : > \"ovirt-grafana\"\n}" > > t=2021-02-09T10:13:39+0200 lvl=dbug msg="HTTP GET > https://FQDN/ovirt-engine/sso/openid/userinfo: 200 OK {\n \"acr\" : > \"0\",\n \"authTime\" : 1612858143078,\n \"sub\" : \"testu1@internal\",\n > \"preferredUserName\" : \"testu1@internal\",\n \"email\" : > \"testu1@localhost\",\n \"name\" : \"John\",\n \"familyName\" : > \"John\",\n \"givenName\" : \"John\",\n \"jti\" : > \"5a6ff251-a26c-4281-a3de-d9ce6c2e7635\",\n \"exp\" : 1612859943078,\n > \"iat\" : 1612858143078,\n \"iss\" : > \"https://didi-centos8-engine.lab.eng.tlv2.redhat.com:443\",\n \"aud\" : > \"ovirt-grafana\"\n}" > > Artur, is it indeed missing? Or is there a way to configure what information > we provide? Just for the record because the discussion has been initiated on email thread. - Currently, the only way is to match 'admin@internal' on grafana side to be able to tell the user is an admin. - Under discussion: potential solutionslike returning ovirt roles in user-info response [1][2] happening over email thread. [1]https://gerrit.ovirt.org/113436 [2]https://gerrit.ovirt.org/113451 |