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

Backstage update #771

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Backstage update #771

wants to merge 10 commits into from

Conversation

GDYendell
Copy link
Contributor

@GDYendell GDYendell commented Jan 24, 2025

This updates to use the new backend so that we get the new health check endpoints.

❯ curl 0.0.0.0:7007/.backstage/health/v1/readiness
{
  "status": "ok"
}
❯ curl 0.0.0.0:7007/.backstage/health/v1/liveness
{
  "status": "ok"
}

@GDYendell GDYendell requested a review from garryod January 24, 2025 16:28
@garryod garryod added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Jan 27, 2025
collators:
catalog:
schedule:
# Give the backend server a chance to initiaize before collators are executed
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels unnecessary 😛

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The timeout or the comment about the timeout? It was in search.tsx before.

Copy link
Member

@garryod garryod Jan 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment on the timeout 😆 Wasn't a particularly serious review point

target: ldap://ralfed.cclrc.ac.uk
bind:
dn: uid=ldap-reader-user,ou=people,ou=example,dc=example,dc=net
secret: dW5hdXRoZW50aWNhdGVkIExEQVAK
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where does this come from?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is a fake secret because the field has to be provided, but the server is unauthenticated.

Comment on lines +48 to +61
SignInPage: props => (
<SignInPage
{...props}
providers={[
'guest',
{
id: 'github-auth-provider',
title: 'GitHub',
message: 'Sign in using GitHub',
apiRef: githubAuthApiRef,
},
]}
/>
),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Am I correct in thinking this shows up before the user is able to perform any other action? If so, can we somehow make guest the default and only require additional sign-in when a privileged action is requested (e.g. component template creation)?

Copy link
Contributor Author

@GDYendell GDYendell Jan 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it does, you have to click Enter as guest user when first launched. I don't know if that is possible, but I will investigate.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Guests can go to Settings > Authentication Providers to login via GitHub.

We might need a custom auth resolver to automatically login as guest. This might also be a problem:

This provider makes all users share a single "guest" identity. This is useful for testing purposes and quickly getting started locally, but is not safe for use in production and that particular provider will refuse to work there.

Copy link
Member

@garryod garryod Jan 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A custom auth resolver sounds like a good call

The shared guest identity isn't an issue for us as we run backstage in an immutable configuration. If you were to allow people to edit things in the UI it would certainly be an issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants