#How to Remove guest login in prod via config?

8 messages · Page 1 of 1 (latest)

tepid lily
#

I have an app-config and an app-config.production.yaml.

In my app-config.yaml I have

auth:
providers:
guest: {}
GitHub:…

Is there a way to override this in app-config.production such that guest is not available ?

I don’t want to do the “conditionally render sign-in provider” shown here unless that’s the only way to do it. https://backstage.io/docs/auth/

It would be much simpler and more maintainable if we could just disable guest login in prod via config settings.

gaunt halo
#

You can provide guest: null in the production config. That deletes the key

#

(This is a general config system feature - not just for the guest provider)

honest helm
#

Wouldn't it make more sense to have a app-config.local.yaml file where you add the guest provider?

gaunt halo
#

True. That's the most common setup.

tepid lily
#

Yeah … we currently have just app-config and app-config.prod

tepid lily
#

For now I’ll just remove it entirely tbh