Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into SLK-73211-terraform-p…
Browse files Browse the repository at this point in the history
…rovider-bug-terraform-for-role-mapping-doesnt-accept-commas

# Conflicts:
#	docs/resources/role_mapping.md
  • Loading branch information
Adi Shaull committed Dec 18, 2023
2 parents d1047cf + de939b8 commit 06c718a
Show file tree
Hide file tree
Showing 50 changed files with 8 additions and 112 deletions.
2 changes: 1 addition & 1 deletion aquasec/resource_registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func resourceRegistry() *schema.Resource {
},
"type": {
Type: schema.TypeString,
Description: "Registry type (HUB / V1 / V2 / ENGINE / AWS / GCR).",
Description: "Registry type (HUB / V1 / V2 / ACR / ENGINE / AWS / GCR).",
Required: true,
},
"username": {
Expand Down
2 changes: 0 additions & 2 deletions docs/data-sources/acknowledges.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,3 @@ Read-Only:
- `resource_path` (String)
- `resource_type` (String)
- `resource_version` (String)


2 changes: 0 additions & 2 deletions docs/data-sources/application_scope.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,5 +237,3 @@ Optional:

- `attribute` (String)
- `value` (String)


2 changes: 0 additions & 2 deletions docs/data-sources/aqua_labels.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,3 @@ Read-Only:
- `created` (String)
- `description` (String)
- `name` (String)


2 changes: 0 additions & 2 deletions docs/data-sources/container_runtime_policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,5 +122,3 @@ Read-Only:
- `attribute` (String)
- `name` (String)
- `value` (String)


2 changes: 0 additions & 2 deletions docs/data-sources/enforcer_groups.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,5 +120,3 @@ Read-Only:
- `namespace` (String)
- `service_account` (String)
- `type` (String)


2 changes: 0 additions & 2 deletions docs/data-sources/firewall_policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,3 @@ Read-Only:
- `port_range` (String) Range of ports affected by firewall.
- `resource` (String) Information of the resource.
- `resource_type` (String) Type of the resource.


2 changes: 0 additions & 2 deletions docs/data-sources/function_assurance_policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,5 +199,3 @@ Read-Only:

- `imagename` (String)
- `registry` (String)


2 changes: 0 additions & 2 deletions docs/data-sources/function_runtime_policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,3 @@ Read-Only:
- `attribute` (String)
- `name` (String)
- `value` (String)


2 changes: 0 additions & 2 deletions docs/data-sources/gateways.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,3 @@ Read-Only:
- `public_address` (String)
- `status` (String)
- `version` (String)


2 changes: 0 additions & 2 deletions docs/data-sources/groups.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,3 @@ Read-Only:
- `created` (String)
- `group_id` (String)
- `name` (String)


2 changes: 0 additions & 2 deletions docs/data-sources/host_assurance_policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,5 +199,3 @@ Read-Only:

- `imagename` (String)
- `registry` (String)


2 changes: 0 additions & 2 deletions docs/data-sources/host_runtime_policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,5 +131,3 @@ Read-Only:
- `protected_paths` (List of String)
- `protected_processes` (List of String)
- `protected_users` (List of String)


2 changes: 0 additions & 2 deletions docs/data-sources/image.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,5 +169,3 @@ Read-Only:
- `vendor_severity` (String)
- `vendor_statement` (String)
- `vendor_url` (String)


2 changes: 0 additions & 2 deletions docs/data-sources/image_assurance_policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,5 +199,3 @@ Read-Only:

- `imagename` (String)
- `registry` (String)


2 changes: 0 additions & 2 deletions docs/data-sources/integration_registries.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,3 @@ Optional:
- `enabled` (Boolean)
- `un_quarantine` (Boolean)
- `url` (String)


2 changes: 0 additions & 2 deletions docs/data-sources/integration_state.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,3 @@ output "aquasec_integration_state" {
- `oidc_settings` (Boolean) OIDCSettings enabled status
- `openid_settings` (Boolean) OpenIdSettings enabled status
- `saml_settings` (Boolean) SAMLSettings enabled status


2 changes: 0 additions & 2 deletions docs/data-sources/kubernetes_assurance_policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,5 +200,3 @@ Read-Only:

- `imagename` (String)
- `registry` (String)


2 changes: 0 additions & 2 deletions docs/data-sources/notifications.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,5 +122,3 @@ Read-Only:
- `properties` (Map of String)
- `template` (Map of String)
- `type` (String)


2 changes: 0 additions & 2 deletions docs/data-sources/permissions_sets.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,3 @@ Read-Only:
- `name` (String)
- `ui_access` (Boolean)
- `updated_at` (String)


2 changes: 0 additions & 2 deletions docs/data-sources/roles.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,3 @@ Read-Only:
- `permission` (String)
- `scopes` (List of String)
- `updated_at` (String)


2 changes: 0 additions & 2 deletions docs/data-sources/roles_mapping.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,3 @@ Read-Only:
Read-Only:

- `role_mapping` (Map of String)


2 changes: 0 additions & 2 deletions docs/data-sources/roles_mapping_saas.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,3 @@ Read-Only:
- `csp_role` (String)
- `id` (Number)
- `saml_groups` (List of String)


2 changes: 0 additions & 2 deletions docs/data-sources/service.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,3 @@ Read-Only:
- `attribute` (String)
- `name` (String)
- `value` (String)


2 changes: 0 additions & 2 deletions docs/data-sources/users.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,3 @@ Read-Only:
- `type` (String)
- `ui_access` (Boolean)
- `user_id` (String)


2 changes: 0 additions & 2 deletions docs/data-sources/users_saas.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,3 @@ Read-Only:
- `id` (Number)
- `ip_address` (String)
- `user_id` (Number)


2 changes: 0 additions & 2 deletions docs/resources/acknowledge.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,3 @@ Read-Only:
- `expiration_configured_at` (String) The current dat and time when the expiration was set
- `expiration_configured_by` (String) The user who set the expiration of the issue.
- `permission` (String) The permissions of the user who acknowledged the issue.


2 changes: 0 additions & 2 deletions docs/resources/application_scope.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,5 +282,3 @@ Read-Only:

- `attribute` (String)
- `value` (String)


2 changes: 0 additions & 2 deletions docs/resources/aqua_label.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,3 @@ description: |-
- `author` (String) The name of the user who created the Aqua label.
- `created` (String) The creation date of the Aqua label.
- `id` (String) The ID of this resource.


2 changes: 0 additions & 2 deletions docs/resources/container_runtime_policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,5 +242,3 @@ Required:
Optional:

- `name` (String) Name assigned to the attribute.


2 changes: 0 additions & 2 deletions docs/resources/enforcer_groups.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,5 +173,3 @@ Read-Only:
- `kubernetes` (String)
- `swarm` (String)
- `windows` (String)


2 changes: 0 additions & 2 deletions docs/resources/firewall_policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,3 @@ Required:
Optional:

- `resource` (String) Information of the resource.


2 changes: 0 additions & 2 deletions docs/resources/function_assurance_policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,5 +202,3 @@ Optional:

- `imagename` (String)
- `registry` (String)


2 changes: 0 additions & 2 deletions docs/resources/function_runtime_policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,3 @@ Required:
Optional:

- `name` (String) Name assigned to the attribute.


2 changes: 0 additions & 2 deletions docs/resources/group.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,3 @@ resource "aquasec_group" "group" {
- `created` (String) The creation date of the group.
- `group_id` (Number) The ID of the created group.
- `id` (String) The ID of this resource.


2 changes: 0 additions & 2 deletions docs/resources/host_assurance_policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,5 +202,3 @@ Optional:

- `imagename` (String)
- `registry` (String)


2 changes: 0 additions & 2 deletions docs/resources/host_runtime_policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,5 +213,3 @@ Optional:
- `protected_paths` (List of String) List of registry paths to be protected.
- `protected_processes` (List of String) List of registry processes to be protected.
- `protected_users` (List of String) List of registry users to be protected.


2 changes: 0 additions & 2 deletions docs/resources/image.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,5 +175,3 @@ Read-Only:
- `vendor_severity` (String)
- `vendor_statement` (String)
- `vendor_url` (String)


2 changes: 0 additions & 2 deletions docs/resources/image_assurance_policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,5 +202,3 @@ Optional:

- `imagename` (String)
- `registry` (String)


14 changes: 4 additions & 10 deletions docs/resources/integration_registry.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,12 @@ resource "aquasec_integration_registry" "integration_registry" {
pull_image_tag_pattern = [":Latest", ":latest"]
pull_repo_patterns_excluded = [":xyz", ":onlytest"]
scanner_name = [
"aqua-scanner-645f867c4f-4sbtj",
"aqua-scanner-645f867c4f-8pkdd"
]
scanner_type = "specific"
url = "us-east-1"
scanner_name = []
scanner_type = "any"
username = ""
password = ""
webhook {
enabled = true
url = "https://aquasec.com/"
Expand All @@ -75,7 +71,7 @@ resource "aquasec_integration_registry" "integration_registry" {
### Required

- `name` (String) The name of the registry; string, required - this will be treated as the registry's ID, so choose a simple alphanumerical name without special signs and spaces
- `type` (String) Registry type (HUB / V1 / V2 / ENGINE / AWS / GCR).
- `type` (String) Registry type (HUB / V1 / V2 / ACR / ENGINE / AWS / GCR).

### Optional

Expand Down Expand Up @@ -127,5 +123,3 @@ Optional:
- `enabled` (Boolean)
- `un_quarantine` (Boolean)
- `url` (String)


2 changes: 0 additions & 2 deletions docs/resources/kubernetes_assurance_policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,5 +202,3 @@ Optional:

- `imagename` (String)
- `registry` (String)


2 changes: 0 additions & 2 deletions docs/resources/notification.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,5 +116,3 @@ resource "aquasec_notification" "email_with_mx" {
- `id` (String) Notification Id
- `last_updated` (String) Notification last update time
- `template` (Map of String) Notification Template


2 changes: 0 additions & 2 deletions docs/resources/permissions_sets.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,5 +131,3 @@ resource "aquasec_permissions_sets" "my_terraform_perm_set" {
- `author` (String) The name of the user who created the Permission Set.
- `id` (String) The ID of this resource.
- `updated_at` (String) The date of the last modification of the Role.


2 changes: 0 additions & 2 deletions docs/resources/role.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,3 @@ resource "aquasec_role" "IaC" {
- `author` (String) The name of the user who created the role. Only returned from the API for existing permissions, not part of the permission creation/modification structure.
- `id` (String) The ID of this resource.
- `updated_at` (String) The date of the last modification of the role.


2 changes: 0 additions & 2 deletions docs/resources/role_mapping.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,3 @@ Required:
Required:

- `role_mapping` (Map of String) Role Mapping is used to define the IdP role that the user will assume in Aqua. Use '|' as a separator for multiple roles.


2 changes: 0 additions & 2 deletions docs/resources/role_mapping_saas.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,3 @@ output "roles_mapping_saas" {
- `created` (String)
- `id` (String) The ID of this resource.
- `role_mapping_id` (Number)


2 changes: 0 additions & 2 deletions docs/resources/service.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,3 @@ Optional:
- `attribute` (String) Class of supported scope.
- `name` (String) Name assigned to the attribute.
- `value` (String) Value assigned to the attribute.


2 changes: 0 additions & 2 deletions docs/resources/user.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,3 @@ resource "aquasec_user" "IaC" {
- `role` (String) The first role that assigned to the user for backward compatibility.
- `type` (String) The user type (Aqua, LDAP, SAML, OAuth2, OpenID, Tenant Manager).
- `ui_access` (Boolean) Whether to allow UI access for users with this Permission Set.


2 changes: 0 additions & 2 deletions docs/resources/user_saas.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,3 @@ Read-Only:
- `id` (Number)
- `ip_address` (String)
- `user_id` (Number)


10 changes: 3 additions & 7 deletions examples/resources/aquasec_integration_registry/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,12 @@ resource "aquasec_integration_registry" "integration_registry" {
pull_image_tag_pattern = [":Latest", ":latest"]
pull_repo_patterns_excluded = [":xyz", ":onlytest"]

scanner_name = [
"aqua-scanner-645f867c4f-4sbtj",
"aqua-scanner-645f867c4f-8pkdd"
]

scanner_type = "specific"

url = "us-east-1"
scanner_name = []
scanner_type = "any"

username = ""
password = ""
webhook {
enabled = true
url = "https://aquasec.com/"
Expand Down

0 comments on commit 06c718a

Please sign in to comment.