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

Don't warn on cookieSecret if authentication not used (i.e. no AuthStrategy set) #40

Open
midgleyc opened this issue Feb 24, 2021 · 0 comments

Comments

@midgleyc
Copy link

Bug report

Describe the bug

I've set up keystone to run the admin UI app behind a proxy (under a separate service with login), so I don't want keystone managing authentication itself. I'm running a server side application, so the API isn't publicly accessible and I don't use authentication for the API either. Keystone warns me when running in production mode about having not set cookieSecret (and about using MemoryStore), but I don't think it should be setting any cookies (or using a session store).

To Reproduce

  1. Set up Keystone with no authStrategy in your AdminUIApp, and no cookieSecret in the keystone object
  2. Try to start in production mode
  3. See the failure message

Expected behaviour

Keystone can be started in production mode with no authStrategy and no cookieSecret.

System information

  • OS: Ubuntu

Additional context

If I could disable session handling entirely, I think that would disable both error messages and also be a good solution? I couldn't find out how to do that.

@timleslie timleslie transferred this issue from keystonejs/keystone Mar 4, 2021
@bladey bladey self-assigned this Apr 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants