-
Notifications
You must be signed in to change notification settings - Fork 4
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 Sudo Commands Bundle #132
Merged
shrirangadgaonkar-okta
merged 39 commits into
master
from
ulfat/terraformImplementationFrSudoOKTA-707627
Jul 18, 2024
Merged
Changes from all commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
712970a
go modules
UlfatSayyed-okta 734b73a
changes from the old pr
UlfatSayyed-okta f68d6b0
working code and needs pagination
UlfatSayyed-okta 1291dff
pagination support
UlfatSayyed-okta c14025e
latest version
UlfatSayyed-okta 7f0f74e
fix test
UlfatSayyed-okta 7734144
Added test for updating sudo command bundle
UlfatSayyed-okta 4fa63ec
Add scb on security policy privileges
UlfatSayyed-okta c20dadb
Add test validation
UlfatSayyed-okta dd657ac
Add sudo to security policy client code
UlfatSayyed-okta 4991dc2
fix test
UlfatSayyed-okta d8d470f
fix test
UlfatSayyed-okta 077871c
fix test
UlfatSayyed-okta 0f98f65
fix test
UlfatSayyed-okta 1cfc3b7
fix test
UlfatSayyed-okta 5b54f2f
fix test
UlfatSayyed-okta 02f540d
fix test
UlfatSayyed-okta f1ff1a2
fix test
UlfatSayyed-okta 001648f
fix test
UlfatSayyed-okta 0328117
fix test
UlfatSayyed-okta 2356a26
fix test
UlfatSayyed-okta 893bf1c
Fix test and update the docs
UlfatSayyed-okta 7c88804
Change diff package
UlfatSayyed-okta 7a63666
Change diff package
UlfatSayyed-okta 2822c3e
Debug
UlfatSayyed-okta 77231fe
Fix test
UlfatSayyed-okta ec8f1d6
Fix test
UlfatSayyed-okta 1badde6
Fix test
UlfatSayyed-okta ba3ac3c
Debug
UlfatSayyed-okta 544c74c
Debug
UlfatSayyed-okta 1ac93b3
Debug
UlfatSayyed-okta 7280c78
Debug
UlfatSayyed-okta 19dbcda
Debug
UlfatSayyed-okta 52a457c
Debug
UlfatSayyed-okta 9a446d4
Debug
UlfatSayyed-okta 20e49c9
Revert CI
UlfatSayyed-okta 57c9013
Revert CI
UlfatSayyed-okta c520f3d
saving prog
UlfatSayyed-okta 30d2822
fix test
UlfatSayyed-okta File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,40 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "oktapam_cloud_connection Data Source - terraform-provider-oktapam" | ||
subcategory: "" | ||
description: |- | ||
Returns an existing PAM Cloud Connection. For details, see Cloud Connection https://help.okta.com/okta_help.htm?type=oie&id=ext-pam-entitlement-aws-connect. | ||
--- | ||
|
||
# oktapam_cloud_connection (Data Source) | ||
|
||
Returns an existing PAM Cloud Connection. For details, see [Cloud Connection](https://help.okta.com/okta_help.htm?type=oie&id=ext-pam-entitlement-aws-connect). | ||
|
||
|
||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Read-Only | ||
|
||
- `cloud_connection_details` (List of Object) More data about the cloud connection to be able to connect to the cloud provider (see [below for nested schema](#nestedatt--cloud_connection_details)) | ||
- `id` (String) The ID of this resource. | ||
- `name` (String) The human-readable name of the resource. Values are case-sensitive. | ||
|
||
<a id="nestedatt--cloud_connection_details"></a> | ||
### Nested Schema for `cloud_connection_details` | ||
|
||
Read-Only: | ||
|
||
- `aws` (List of Object) (see [below for nested schema](#nestedobjatt--cloud_connection_details--aws)) | ||
|
||
<a id="nestedobjatt--cloud_connection_details--aws"></a> | ||
### Nested Schema for `cloud_connection_details.aws` | ||
|
||
Read-Only: | ||
|
||
- `account_id` (String) | ||
- `external_id` (String) | ||
- `role_arn` (String) | ||
|
||
|
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,27 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "oktapam_cloud_connections Data Source - terraform-provider-oktapam" | ||
subcategory: "" | ||
description: |- | ||
Returns a list of Cloud Connections. For details, see Cloud Connection https://help.okta.com/okta_help.htm?type=oie&id=ext-pam-entitlement-aws-connect. | ||
--- | ||
|
||
# oktapam_cloud_connections (Data Source) | ||
|
||
Returns a list of Cloud Connections. For details, see [Cloud Connection](https://help.okta.com/okta_help.htm?type=oie&id=ext-pam-entitlement-aws-connect). | ||
|
||
|
||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Optional | ||
|
||
- `name` (String) The name of the resource | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The ID of this resource. | ||
- `ids` (List of String) | ||
|
||
|
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,41 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "oktapam_sudo_commands_bundle Data Source - terraform-provider-oktapam" | ||
subcategory: "" | ||
description: |- | ||
Returns an existing PAM Sudo Commands Bundle. For details, see Sudo Commands Bundle https://help.okta.com/okta_help.htm?type=oie&id=csh-pam-sudo-commands. | ||
--- | ||
|
||
# oktapam_sudo_commands_bundle (Data Source) | ||
|
||
Returns an existing PAM Sudo Commands Bundle. For details, see [Sudo Commands Bundle](https://help.okta.com/okta_help.htm?type=oie&id=csh-pam-sudo-commands). | ||
|
||
|
||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Read-Only | ||
|
||
- `add_env` (List of String) A list of environment variables to include when running sudo commands. See [the sudo documentation](https://www.sudo.ws/man/1.8.13/sudoers.man.html#Command_environment). | ||
- `id` (String) The ID of this resource. | ||
- `name` (String) The name of the Sudo Command bundle. This controls the ordering of all bundles within your Team. | ||
- `no_exec` (Boolean) Whether to allow commands to execute child processes | ||
- `no_passwd` (Boolean) Whether to require a password when sudo is run. This should generally not be used as Users don't require a password. | ||
- `run_as` (String) A non-root user account used to run the command | ||
- `set_env` (Boolean) Whether to allow overriding environment variables to commands | ||
- `structured_commands` (List of Object) A list of commands to allow (see [below for nested schema](#nestedatt--structured_commands)) | ||
- `sub_env` (List of String) A list of environment variables to ignore when running the commands. See [the sudo documentation](https://www.sudo.ws/man/1.8.13/sudoers.man.html#Command_environment). | ||
|
||
<a id="nestedatt--structured_commands"></a> | ||
### Nested Schema for `structured_commands` | ||
|
||
Read-Only: | ||
|
||
- `args` (String) | ||
- `args_type` (String) | ||
- `command` (String) | ||
- `command_type` (String) | ||
- `rendered_command` (String) | ||
|
||
|
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,27 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "oktapam_sudo_commands_bundles Data Source - terraform-provider-oktapam" | ||
subcategory: "" | ||
description: |- | ||
Returns a list of Sudo Commands Bundles. For details, see Sudo Commands Bundle https://help.okta.com/okta_help.htm?type=oie&id=csh-pam-sudo-commands. | ||
--- | ||
|
||
# oktapam_sudo_commands_bundles (Data Source) | ||
|
||
Returns a list of Sudo Commands Bundles. For details, see [Sudo Commands Bundle](https://help.okta.com/okta_help.htm?type=oie&id=csh-pam-sudo-commands). | ||
|
||
|
||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Optional | ||
|
||
- `name` (String) The name of the resource | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The ID of this resource. | ||
- `ids` (List of String) | ||
|
||
|
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,43 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "oktapam_cloud_connection Resource - terraform-provider-oktapam" | ||
subcategory: "" | ||
description: |- | ||
A PAM construct that connects PAM with cloud providers. For details, see Cloud Connection https://help.okta.com/okta_help.htm?type=oie&id=ext-pam-entitlement-aws-connect. | ||
--- | ||
|
||
# oktapam_cloud_connection (Resource) | ||
|
||
A PAM construct that connects PAM with cloud providers. For details, see [Cloud Connection](https://help.okta.com/okta_help.htm?type=oie&id=ext-pam-entitlement-aws-connect). | ||
|
||
|
||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `cloud_connection_details` (Block List, Min: 1, Max: 1) More data about the cloud connection to be able to connect to the cloud provider (see [below for nested schema](#nestedblock--cloud_connection_details)) | ||
- `name` (String) The human-readable name of the resource. Values are case-sensitive. | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The ID of this resource. | ||
|
||
<a id="nestedblock--cloud_connection_details"></a> | ||
### Nested Schema for `cloud_connection_details` | ||
|
||
Required: | ||
|
||
- `aws` (Block List, Min: 1, Max: 1) More data about the AWS cloud connection to be able to connect to the cloud provider (see [below for nested schema](#nestedblock--cloud_connection_details--aws)) | ||
|
||
<a id="nestedblock--cloud_connection_details--aws"></a> | ||
### Nested Schema for `cloud_connection_details.aws` | ||
|
||
Required: | ||
|
||
- `account_id` (String) | ||
- `external_id` (String) | ||
- `role_arn` (String) | ||
|
||
|
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,50 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "oktapam_sudo_commands_bundle Resource - terraform-provider-oktapam" | ||
subcategory: "" | ||
description: |- | ||
A PAM construct that allows fine grained access. For details, see Sudo Commands Bundle https://help.okta.com/okta_help.htm?type=oie&id=csh-pam-sudo-commands. | ||
--- | ||
|
||
# oktapam_sudo_commands_bundle (Resource) | ||
|
||
A PAM construct that allows fine grained access. For details, see [Sudo Commands Bundle](https://help.okta.com/okta_help.htm?type=oie&id=csh-pam-sudo-commands). | ||
|
||
|
||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `name` (String) The human-readable name of the resource. Values are case-sensitive. | ||
- `structured_commands` (Block List, Min: 1, Max: 64) A list of commands to allow (see [below for nested schema](#nestedblock--structured_commands)) | ||
|
||
### Optional | ||
|
||
- `add_env` (List of String) | ||
- `no_exec` (Boolean) | ||
- `no_passwd` (Boolean) | ||
- `run_as` (String) | ||
- `set_env` (Boolean) | ||
- `sub_env` (List of String) | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The ID of this resource. | ||
|
||
<a id="nestedblock--structured_commands"></a> | ||
### Nested Schema for `structured_commands` | ||
|
||
Required: | ||
|
||
- `command` (String) | ||
- `command_type` (String) | ||
|
||
Optional: | ||
|
||
- `args` (String) | ||
- `args_type` (String) | ||
- `rendered_command` (String) | ||
|
||
|
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to update the makefile with these or was this locally added to test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No this was suggested by Evan to easily update the pam sudo sdk version and other dependencies.