-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(platform): support non-interactive auth
Added support for non-interactive authentication with the platform via a new environment variable: `GARDEN_AUTH_TOKEN`. In some contexts where interactive login is not feasible (e.g. CI), a valid client auth token may still be available before logging in, Furthermore, storing the client auth token in the local config DB is not always desirable in these contexts. To handle these situations, a client auth token can now be provided to garden commands making use of platform features (such as secrets) by populating the `GARDEN_AUTH_TOKEN` environment variable with the client auth token before running the command.
- Loading branch information
Showing
7 changed files
with
92 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
kind: Project | ||
name: cloud | ||
id: test-project-id | ||
domain: test.cloud.com | ||
environments: | ||
- name: local | ||
- name: other | ||
providers: | ||
- name: test-plugin | ||
environments: [local] | ||
- name: test-plugin-b | ||
environments: [local] | ||
variables: | ||
some: variable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"contentHash": "1234567890" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
kind: Module | ||
name: module-a | ||
type: test | ||
services: | ||
- name: service-a | ||
build: | ||
command: [echo, A] | ||
tests: | ||
- name: unit | ||
command: [echo, OK] | ||
- name: integration | ||
command: [echo, OK] | ||
dependencies: | ||
- service-a | ||
tasks: | ||
- name: task-a | ||
command: [echo, OK] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
kind: Module | ||
name: module-b | ||
type: test | ||
services: | ||
- name: service-b | ||
dependencies: | ||
- service-a | ||
build: | ||
command: [echo, B] | ||
dependencies: | ||
- module-a | ||
tests: | ||
- name: unit | ||
command: [echo, OK] | ||
tasks: | ||
- name: task-b | ||
command: [echo, OK] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
kind: Module | ||
name: module-c | ||
type: test | ||
services: | ||
- name: service-c | ||
dependencies: [task-c] | ||
build: | ||
dependencies: | ||
- module-b | ||
tests: | ||
- name: unit | ||
command: [echo, OK] | ||
- name: integ | ||
command: [echo, OK] | ||
tasks: | ||
- name: task-c | ||
command: [echo, OK] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters