Uploaded image for project: 'Red Hat Developer Hub Bugs'
  1. Red Hat Developer Hub Bugs
  2. RHDHBUGS-1595

Failed to Sign in as a guest using the auth backend

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • 1.2
    • Core platform
    • None
    • 2
    • False
    • Hide

      None

      Show
      None
    • False
    • Hide
      Moving to backstage 1.25 introduced a breaking change to the way guest authentication is enabled. In previous versions guest authentication is enabled and available by default until disabled. After 1.25, guest authentication needs to be explicitly enabled. This change makes the guest authentication provider available in the backend so that the provider can be configured for development purposes as needed.
      Show
      Moving to backstage 1.25 introduced a breaking change to the way guest authentication is enabled. In previous versions guest authentication is enabled and available by default until disabled. After 1.25, guest authentication needs to be explicitly enabled. This change makes the guest authentication provider available in the backend so that the provider can be configured for development purposes as needed.
    • Hide

      I added a 2nd commit to this PR that adds this provider and also removes the workaround turning off authentication in the tests.

      Show
      I added a 2nd commit to this PR that adds this provider and also removes the workaround turning off authentication in the tests.
    • RHDH Core Team 3256

      After Sign In as guest and click on the message popup (attached) I can't see anything on backstage instance, I can't see anything from catalog and so on

      https://rhdh-backstage-showcase.rhdh-pr-os-a9805650830b22c3aee243e51d79565d-0000.us-east.containers.appdomain.cloud/

      app-config-rhdh.yaml

      app:   title: Red Hat Developer Hub
      backend:   auth:     keys:       - secret: temp
      integrations:   # Plugin: GitHub
        github:     - host: github.com
            apps:         - appId: ${GITHUB_APP_APP_ID}
                clientId: ${GITHUB_APP_CLIENT_ID}
                clientSecret: ${GITHUB_APP_CLIENT_SECRET}
                webhookUrl: ${GITHUB_APP_WEBHOOK_URL}
                webhookSecret: ${GITHUB_APP_WEBHOOK_SECRET}
                privateKey: |
                  ${GITHUB_APP_PRIVATE_KEY}
        bitbucketServer:     - host: bitbucket.com
            apiBaseUrl: temp
            username: temp
            password: temp
        gitlab:     - host: gitlab.com
            token: temp
      auth:   # see https://backstage.io/docs/auth/ to learn about auth providers
        environment: development
        providers:     # Plugin: GitHub
          github:       development:         clientId: ${GITHUB_APP_CLIENT_ID}
              clientSecret: ${GITHUB_APP_CLIENT_SECRET}
          google:       development:         clientId: ${GOOGLE_CLIENT_ID}
              clientSecret: ${GOOGLE_CLIENT_SECRET}
      
      proxy:   skipInvalidProxies: true
        # endpoints: {}
        endpoints:     # Other Proxies
          # customize developer hub instance
          '/developer-hub':
            target: ${DH_TARGET_URL}
            changeOrigin: true
            # Change to "false" in case of using self hosted cluster with a self-signed certificate
            secure: false
          '/acr/api':
            target: 'https://rhdhqetest.azurecr.io/acr/v1/'
            changeOrigin: true
            headers:         # If you use Bearer Token for authorization, please replace the 'Basic' with 'Bearer' in the following line.
              Authorization: '${ACR_SECRET}'
            # Change to "false" in case of using self hosted artifactory instance with a self-signed certificate
            secure: false
      
      catalog:   import:     entityFilename: catalog-info.yaml
          # pullRequestBranchName: rhdh-integration
          pullRequestBranchName: backstage-integration
        rules:     - allow: [API, Component, Group, Location, Resource, System, Template]
        locations:     - type: url
            target: https://github.com/janus-idp/backstage-showcase/blob/main/catalog-entities/all.yaml
          - type: url
            target: https://github.com/redhat-developer/red-hat-developer-hub-software-templates/blob/main/templates.yaml
          - type: url
            target: https://github.com/janus-qe/acr-catalog/blob/main/catalog-info.yaml
          - type: url
            target: https://github.com/janus-qe/rhdh-test/blob/main/user.yml
            rules:         - allow: [User]
          - type: url
            target: https://github.com/backstage/backstage/blob/master/packages/catalog-model/examples/acme-corp.yaml
            rules:         - allow: [User, Group]
      
      
      dynatrace:   baseUrl: temp
      argocd:   appLocatorMethods:     - type: 'config'
            instances:         - name: argoInstance1
                url: temp
                token: temp
              - name: argoInstance2
                url: temp
                token: temp
      permission:   enabled: false # Disabling the permission until we can use RBAC to test the pages using login as Guest.
        rbac:     policies-csv-file: './rbac/rbac-policy.csv'
          admin:       users:         - name: user:default/rhdh-qe
      

      Accordingly with ktsao@redhat.com  

      Looks like the message got introduced in this PR.  This comment says the message will get thrown if you’re on the old backend system…we should be on the new backend system starting in 1.1

      This is the version that I'm using

        1. image (3).png
          17 kB
          Gustavo Lira Silva
        2. image-2024-04-17-11-35-35-295.png
          11 kB
          Gustavo Lira Silva

              stlewis_2 Stan Lewis
              gustavolira Gustavo Lira Silva
              RHIDP - Install
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: