Skip to content

Commit

Permalink
PMM-12293 fix platform auth. (#2359)
Browse files Browse the repository at this point in the history
* PMM-12293 fix platform auth.

* Update managed/services/supervisord/supervisord.go

* Update managed.yml

* Update managed.yml

* Update managed.yml
  • Loading branch information
BupycHuk authored Jul 11, 2023
1 parent 03d5997 commit f7772e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/managed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ jobs:
- name: Initialize CI environment
run: make env-compose-up

- name: Mark the root directory of pmm as safe
run: docker exec -i pmm-managed-server git config --global --add safe.directory /root/go/src/github.com/percona/pmm

- name: Restore Go build cache
if: ${{ fromJSON(env.DEVCONTAINER_CACHE_ENABLED) }}
Expand Down
1 change: 1 addition & 0 deletions managed/services/supervisord/supervisord.go
Original file line number Diff line number Diff line change
Expand Up @@ -799,6 +799,7 @@ command =
cfg:default.auth.generic_oauth.api_url="{{ .PerconaSSODetails.IssuerURL }}/userinfo"
cfg:default.auth.generic_oauth.role_attribute_path="(contains(portal_admin_orgs[*], '{{ .PerconaSSODetails.OrganizationID }}') || contains(pmm_demo_ids[*], '{{ .PMMServerID }}')) && 'Admin' || 'Viewer'"
cfg:default.auth.generic_oauth.use_pkce="true"
cfg:default.auth.oauth_allow_insecure_email_lookup="true"
{{- end}}
environment =
PERCONA_TEST_POSTGRES_ADDR="{{ .PostgresAddr }}",
Expand Down

0 comments on commit f7772e8

Please sign in to comment.