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

Add a server option to specify the default authentication method #2936

Merged
merged 1 commit into from Sep 14, 2021

Conversation

elprans
Copy link
Member

@elprans elprans commented Sep 14, 2021

The current default authentication method is hardcoded to SCRAM and if
one wants a different default, something like this is currently
required:

CONFIGURE INSTANCE INSERT Auth {
    priority := 0,
    method := (INSERT Trust),
};

This is problematic because this configuration is persistent, so it's
harder to start an insecure server temporarily.

This patch adds the new --default-auth-method argument as well as its
companion EDGEDB_SERVER_DEFAULT_AUTH_METHOD environment variable to
set the default authentication method. SCRAM is still the default,
but devmode servers (edb cli) now set to --default-auth-method=Trust
as before.

The current default authentication method is hardcoded to `SCRAM` and if
one wants a different default, something like this is currently
required:

    CONFIGURE INSTANCE INSERT Auth {
        priority := 0,
        method := (INSERT Trust),
    };

This is problematic because this configuration is persistent, so it's
harder to start an insecure server temporarily.

This patch adds the new `--default-auth-method` argument as well as its
companion `EDGEDB_SERVER_DEFAULT_AUTH_METHOD` environment variable to
set the default authentication method.  `SCRAM` is still the default,
but devmode servers (`edb cli`) now set to `--default-auth-method=Trust`
as before.
@elprans elprans merged commit eebe504 into master Sep 14, 2021
@elprans elprans deleted the default_auth_method branch September 14, 2021 15:59
@Neustradamus

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants