janus-idp / backstage-showcase

This repo is moving to https://github.com/redhat-developer/red-hat-developer-hub
https://showcase.janus-idp.io
Apache License 2.0
110 stars 143 forks source link

Github auth is requested even if we chose as auth provider: guest #1243

Open cmoulliard opened 5 months ago

cmoulliard commented 5 months ago

Describe the bug

There is an auth issue as backstage requires to be authenticated using Github when we open the Component view - see screenshot.

Expected Behavior

No github auth should be requested

What are the steps to reproduce this bug?

git clone https://github.com/janus-idp/backstage-showcase; cd backstage-showcase 
yarn install
yarn export-dynamic -- -- --dev
mkdir dynamic-plugins-root/_notused
cd dynamic-plugins-root
mv backstage-plugin-azure-devops _notused
mv backstage-plugin-azure-devops-backend-dynamic _notused
mv backstage-plugin-scaffolder-backend-module-azure-dynamic _notused

integrations: gitlab:

proxy: skipInvalidProxies: true endpoints: '/argocd/api': target: https://openshift-gitops-server-openshift-gitops.apps.qshift.snowdrop.dev/api/v1/ changeOrigin: true secure: false headers: Cookie: $env: "argocd.token=eyJhbGciOiJIUz..EktDnyZbQA="

auth: environment: development providers: guest: {}

catalog: import: entityFilename: catalog-info.yaml rules:

argocd: baseUrl: https://openshift-gitops-server-openshift-gitops.apps.qshift.snowdrop.dev username: admin password: hU5ksdnFxK1qiH9gflR6jZIbz7BGQDEX appLocatorMethods:

kubernetes: serviceLocatorMethod: type: 'multiTenant' clusterLocatorMethods:

Content hereafter is coming from the file: app-config.dynamic-plugins.yaml

dynamicPlugins: frontend: backstage.plugin-azure-devops: mountPoints:

Screenshot 2024-05-08 at 09 44 08

Versions of software used and environment

cmoulliard commented 4 months ago

According to @gashcrumb => "This popup occurs as we're using a component that's trying to fetch data from github on the overview page."

cmoulliard commented 4 months ago

Same behavior observed too using the PR image - https://github.com/janus-idp/backstage-showcase/pull/1253#issuecomment-2114810648

gashcrumb commented 4 months ago

Think this is by design for this particular github plugin, but probably we could add a conditional to the default config for these that hides the component if the current user is user:development/guest