Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to setup Authorization to Temporal UI #2493

Open
deepuec opened this issue Jan 10, 2025 · 0 comments
Open

Unable to setup Authorization to Temporal UI #2493

deepuec opened this issue Jan 10, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@deepuec
Copy link

deepuec commented Jan 10, 2025

Describe the bug
I have setup Temporal UI and Server using helm charts and deployed in AKS using mysql DB.
I am able to configure authentication using Okta, but all the users in the system able to access all the namespaces and perform write operations.

I am trying to control the access by using default claimMapper using permissions claim in the jwt token, but it is not working.

To Reproduce
I have added below environment variable to web-deployment.yml file

       - name: TEMPORAL_AUTH_ENABLED
          value: 'true'
        - name: TEMPORAL_AUTH_LABEL
          value: 'sso'
        - name: TEMPORAL_AUTH_TYPE
          value: 'oidc'
        - name: TEMPORAL_AUTH_CLIENT_ID
          value: '0oalyiqMAN5d7'
        - name: TEMPORAL_AUTH_CLIENT_SECRET
          value: 'KmudLU-'
        - name: TEMPORAL_AUTH_PROVIDER_URL
          value: 'https://server/oauth2/default'
        - name: TEMPORAL_AUTH_ISSUER_URL
          value: 'https://server/oauth2/default'
        - name: TEMPORAL_AUTH_PROVIDERS_0_AUDIENCE
          value: 'api://default'
        - name: TEMPORAL_AUTH_SCOPES
          value: 'openid,email,profile'
        - name: TEMPORAL_AUTH_AUTHORIZER
          value: default
        - name: TEMPORAL_AUTH_CLAIM_MAPPER
          value: default

And my jwt claim looks like
"permissions": [
"order-dev:write"
]

Expected behavior
After log-in to the temporal UI, I was expecting to see only order-dev namespace data, but able to see all the namespaces

  • OS: Windows
  • Browser Firefox
  • Version 2.32.0 UI
@deepuec deepuec added the bug Something isn't working label Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant