-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #161 from zitadel/generate_machine_secret
feat: generate machine secret
- Loading branch information
Showing
10 changed files
with
93 additions
and
7 deletions.
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 |
---|---|---|
|
@@ -17,6 +17,7 @@ resource "zitadel_machine_user" "default" { | |
user_name = "[email protected]" | ||
name = "name" | ||
description = "a machine user" | ||
with_secret = false | ||
} | ||
``` | ||
|
||
|
@@ -33,9 +34,12 @@ resource "zitadel_machine_user" "default" { | |
- `access_token_type` (String) Access token type, supported values: ACCESS_TOKEN_TYPE_BEARER, ACCESS_TOKEN_TYPE_JWT | ||
- `description` (String) Description of the user | ||
- `org_id` (String) ID of the organization | ||
- `with_secret` (Boolean) Generate machine secret, only applicable if creation or change from false | ||
|
||
### Read-Only | ||
|
||
- `client_id` (String, Sensitive) Value of the client ID if withSecret is true | ||
- `client_secret` (String, Sensitive) Value of the client secret if withSecret is true | ||
- `id` (String) The ID of this resource. | ||
- `login_names` (List of String) Loginnames | ||
- `preferred_login_name` (String) Preferred login name | ||
|
@@ -44,6 +48,6 @@ resource "zitadel_machine_user" "default" { | |
## Import | ||
|
||
```terraform | ||
# The resource can be imported using the ID format `<id[:org_id]>`, e.g. | ||
terraform import machine_user.imported '123456789012345678:123456789012345678' | ||
# The resource can be imported using the ID format `<id:has_secret[:org_id][:client_id][:client_secret]>`, e.g. | ||
terraform import machine_user.imported '123456789012345678:123456789012345678:true:my-machine-user:j76mh34CHVrGGoXPQOg80lch67FIxwc2qIXjBkZoB6oMbf31eGMkB6bvRyaPjR2t' | ||
``` |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# The resource can be imported using the ID format `<id[:org_id]>`, e.g. | ||
terraform import machine_user.imported '123456789012345678:123456789012345678' | ||
# The resource can be imported using the ID format `<id:has_secret[:org_id][:client_id][:client_secret]>`, e.g. | ||
terraform import machine_user.imported '123456789012345678:123456789012345678:true:my-machine-user:j76mh34CHVrGGoXPQOg80lch67FIxwc2qIXjBkZoB6oMbf31eGMkB6bvRyaPjR2t' |
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 |
---|---|---|
|
@@ -3,4 +3,5 @@ resource "zitadel_machine_user" "default" { | |
user_name = "[email protected]" | ||
name = "name" | ||
description = "a machine user" | ||
with_secret = false | ||
} |
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
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
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