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

feat: add config field and override param for require login #5502

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

Conversation

mkhq
Copy link
Contributor

@mkhq mkhq commented Dec 4, 2023

What this PR does / why we need it:

This introduces a new Project-level config parameter that can force users of a project to login via Garden Cloud when there is a connected cloud project. The main use case is when a team is using garden together with Garden Cloud and would like to make sure that all users are logged in. Since making this change would be breaking, we introduce a config field + an env. var, GARDEN_REQUIRE_LOGIN_OVERRIDE, to override the config. The default value of the config field is false, which does not require the user to login. When transitioning to 0.14, we will make the default value true. Note, when there is no cloud project configured through the id-field in the Project-level config, garden works as usual without cloud and enforced login.

When the config contains requireLogin: true or GARDEN_REQUIRE_LOGIN_OVERRIDE=true and a user is not logged in to their cloud instance, the user will be notified that they need to be logged in. See example below:

Screenshot 2023-12-12 at 12 18 35

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

@mkhq mkhq force-pushed the feature-optional-require-login branch from 5d492b7 to 35f59ef Compare December 7, 2023 11:18
@mkhq mkhq requested a review from a team December 12, 2023 11:15
@mkhq mkhq marked this pull request as ready for review December 12, 2023 11:15
@mkhq mkhq force-pushed the feature-optional-require-login branch 2 times, most recently from c62e628 to aa47f40 Compare December 13, 2023 11:23
@vvagaytsev vvagaytsev force-pushed the feature-optional-require-login branch from 1ea9aed to 1c3690b Compare January 24, 2024 15:46
@vvagaytsev vvagaytsev force-pushed the feature-optional-require-login branch from 146ed92 to 762e57d Compare April 17, 2024 09:27
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

1 participant