Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/github_actions/actions/checkout-4…
Browse files Browse the repository at this point in the history
….1.5
  • Loading branch information
RavinderReddyF5 authored May 14, 2024
2 parents 3222acf + 2c8e380 commit f444fbf
Show file tree
Hide file tree
Showing 23 changed files with 2,505 additions and 75 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
with:
# Allow goreleaser to access older tag information.
fetch-depth: 0
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version-file: 'go.mod'
cache: true
Expand All @@ -32,7 +32,7 @@ jobs:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 # v5.0.0
uses: goreleaser/goreleaser-action@5742e2a039330cbb23ebf35f046f814d4c6ff811 # v5.1.0
with:
args: release --rm-dist
env:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,21 @@ jobs:
timeout-minutes: 5
steps:
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version-file: 'go.mod'
cache: true
- run: go build -v .
- name: Run linters
uses: golangci/golangci-lint-action@3cfe3a4abbb849e10058ce4af15d205b6da42804 # v4.0.0
uses: golangci/golangci-lint-action@a4f60bb28d35aeee14e6880718e0c85ff1882e64 # v6.0.1
with:
version: latest

generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version-file: 'go.mod'
cache: true
Expand All @@ -63,11 +63,11 @@ jobs:
- '1.2.*'
steps:
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version-file: 'go.mod'
cache: true
- uses: hashicorp/setup-terraform@a1502cd9e758c50496cc9ac5308c4843bcd56d36 # v3.0.0
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8 # v3.1.1
with:
terraform_version: ${{ matrix.terraform }}
terraform_wrapper: false
Expand Down
6 changes: 3 additions & 3 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ provider "bigipnext" {

### Optional

- `host` (String) URI for BIG-IP Next Central Manager Device. May also be provided via `BIGIPNEXT_HOST` environment variable.
- `password` (String, Sensitive) Password for BIG-IP Next Central Manager Device. May also be provided via `BIGIPNEXT_PASSWORD` environment variable.
- `host` (String) URI for BigipNext Device. May also be provided via `BIGIPNEXT_HOST` environment variable.
- `password` (String, Sensitive) Password for BigipNext Device. May also be provided via `BIGIPNEXT_PASSWORD` environment variable.
- `port` (Number) Port Number to be used to make API calls to HOST
- `username` (String) Username for BIG-IP Next Central Manager Device. May also be provided via `BIGIPNEXT_USERNAME` environment variable.
- `username` (String) Username for BigipNext Device. May also be provided via `BIGIPNEXT_USERNAME` environment variable.
40 changes: 40 additions & 0 deletions docs/resources/cm_discover_next.md
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: "bigipnext_cm_discover_next Resource - terraform-provider-bigipnext"
subcategory: ""
description: |-
Resource used for add (discover) BIG-IP Next instance to BIG-IP Next Central Manager for management
---

# bigipnext_cm_discover_next (Resource)

Resource used for add (discover) BIG-IP Next instance to BIG-IP Next Central Manager for management

## Example Usage

```terraform
resource "bigipnext_cm_discover_next" "test" {
address = "10.10.10.10"
port = 5443
device_user = "admin"
device_password = "admin123"
management_user = "admin-cm"
management_password = "admin@123"
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `address` (String) IP Address of the BIG-IP Next instance to be discovered
- `device_password` (String, Sensitive) The password that the BIG-IP Next Central Manager uses before Instance discovery for BIG-IP Next management
- `device_user` (String) The username that the BIG-IP Next Central Manager uses before Instance discovery for BIG-IP Next management
- `management_password` (String, Sensitive) The password that the BIG-IP Next Central Manager uses after Instance Discovery for BIG-IP Next management
- `management_user` (String) The username that the BIG-IP Next Central Manager uses after Instance Discovery for BIG-IP Next management
- `port` (Number) Port number of the BIG-IP Next instance to be discovered

### Read-Only

- `id` (String) Unique Identifier for the resource
80 changes: 80 additions & 0 deletions docs/resources/cm_waf_policy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "bigipnext_cm_waf_policy Resource - terraform-provider-bigipnext"
subcategory: ""
description: |-
Resource used to manage(CRUD) WAF Policy resources onto BIG-IP Next CM.
---

# bigipnext_cm_waf_policy (Resource)

Resource used to manage(CRUD) WAF Policy resources onto BIG-IP Next CM.

## Example Usage

```terraform
resource "bigipnext_cm_waf_policy" "sample" {
name = "new_waf_policy"
description = "new_waf_policy desc"
tags = ["test3", "test4"]
enforcement_mode = "blocking"
application_language = "utf-8"
template_name = "Rating-Based-Template"
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `application_language` (String) The character encoding for the web application. Character encoding determines how the policy processes the character sets.
- `enforcement_mode` (String) Specifies How BIG-IP MA processes a request that triggers a security policy violation.
*Blocking: When the enforcement mode is set to blocking, any triggered violation is blocked (configured for blocking).
*Transparent: When the enforcement mode is set to transparent, traffic is not blocked even if a violation is triggered.
- `name` (String) The unique user-given name of the policy. Policy names cannot contain spaces or special characters. Allowed characters are a-z, A-Z, 0-9, dot, dash (-), colon (:) and underscore (_).
- `template_name` (String) The name of the template used to create the WAF policy. Template cannot be updated

### Optional

- `blocking_settings` (Attributes) Specifies whether the blocking setting is to be enabled or not. The default value of blocking_settings is True. (see [below for nested schema](#nestedatt--blocking_settings))
- `bot_defense` (Attributes) Specifies whether the bot defense for Policy is to be enabled or not. The default value of bot_defense is True. (see [below for nested schema](#nestedatt--bot_defense))
- `description` (String) Specifies the description of the policy.
- `dos_protection` (Attributes) Specifies whether the dos protection for Policy is to be enabled or not. The default value of dos_protection is False. (see [below for nested schema](#nestedatt--dos_protection))
- `ip_intelligence` (Attributes) Specifies whether the bot ip_intelligence for Policy is to be enabled or not. The default value of ip_intelligence is True. (see [below for nested schema](#nestedatt--ip_intelligence))
- `tags` (List of String) Specifies the Tags for marking policies.

### Read-Only

- `id` (String) Unique Identifier for the resource

<a id="nestedatt--blocking_settings"></a>
### Nested Schema for `blocking_settings`

Optional:

- `enabled` (Boolean)


<a id="nestedatt--bot_defense"></a>
### Nested Schema for `bot_defense`

Optional:

- `enabled` (Boolean)


<a id="nestedatt--dos_protection"></a>
### Nested Schema for `dos_protection`

Optional:

- `enabled` (Boolean)


<a id="nestedatt--ip_intelligence"></a>
### Nested Schema for `ip_intelligence`

Optional:

- `enabled` (Boolean)
40 changes: 40 additions & 0 deletions docs/resources/cm_waf_policy_import.md
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: "bigipnext_cm_waf_policy_import Resource - terraform-provider-bigipnext"
subcategory: ""
description: |-
Resource used to Import WAF Policy using policy json ( available local system disk )
---

# bigipnext_cm_waf_policy_import (Resource)

Resource used to Import WAF Policy using policy json ( available local system disk )

## Example Usage

```terraform
resource "bigipnext_cm_waf_policy_import" "sample" {
name = "new_waf_policy"
description = "new_waf_policy desc"
file_path = "/Users/r.chinthalapalli/Downloads/testwaf5_awaf.json"
file_md5 = md5(file("/Users/r.chinthalapalli/Downloads/testwaf5_awaf.json"))
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `file_md5` (String) MD5 value for WAF Policy Json file ( available on local system disk path )
- `file_path` (String) Specifies WAF Policy Json file path ( available on local system disk path )
- `name` (String) The unique user-given name of the policy. Policy names cannot contain spaces or special characters. Allowed characters are a-z, A-Z, 0-9, dot, dash (-), colon (:) and underscore (_).

### Optional

- `description` (String) Specifies the description of the policy.
- `override` (String) Specifies Confirmation to override an existing policy with the same name.

### Read-Only

- `id` (String) Unique Identifier for the resource
71 changes: 71 additions & 0 deletions docs/resources/cm_waf_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "bigipnext_cm_waf_report Resource - terraform-provider-bigipnext"
subcategory: ""
description: |-
Resource used to manage(CRUD) WAF Security Report resources onto BIG-IP Next CM.
---

# bigipnext_cm_waf_report (Resource)

Resource used to manage(CRUD) WAF Security Report resources onto BIG-IP Next CM.

## Example Usage

```terraform
resource "bigipnext_cm_waf_report" "sample" {
name = "sample"
description = "WAF security report description"
request_type = "illegal"
time_frame_in_days = 7
top_level = 5
categories = []
scope = {
entity = "applications",
all = false
names = ["test_policy", "test"]
}
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `name` (String) The name of the security report.
- `request_type` (String) Specifies the number of the top level items of the report.
- `scope` (Attributes) Specify the Policies/Applications for the WAF security report (see [below for nested schema](#nestedatt--scope))
- `time_frame_in_days` (Number) Specifies the report time period.
- `top_level` (Number) Specifies the number of the top level items of the report.

### Optional

- `categories` (Attributes List) List of Categories (see [below for nested schema](#nestedatt--categories))
- `description` (String) Specifies the description of the security report. Description should be less than 255 character

### Read-Only

- `created_by` (String) The creator of the security report. This is a computed value.
- `id` (String) Unique Identifier for the resource
- `user_defined` (Boolean) Specifies whether the report is user defined. This is a computed value.

<a id="nestedatt--scope"></a>
### Nested Schema for `scope`

Required:

- `all` (Boolean) Specifies whether All policies/applications are to be taken or selected ones. 'names' must not be empty if 'all' is set to false.
- `entity` (String) Entity value can be policies or applications

Optional:

- `names` (List of String) Specifies the names of the scoped entities.


<a id="nestedatt--categories"></a>
### Nested Schema for `categories`

Optional:

- `name` (String) Specifies the name of the Categories.
1 change: 0 additions & 1 deletion examples/resources/bigipnext_cm_deploy_f5os/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,3 @@ resource "bigipnext_cm_deploy_f5os" "velos01" {

}
}

2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ require (
github.com/hashicorp/terraform-plugin-go v0.22.1
github.com/hashicorp/terraform-plugin-log v0.9.0
github.com/hashicorp/terraform-plugin-testing v1.7.0
gitswarm.f5net.com/terraform-providers/bigipnext v0.0.0-20240328113634-8bad24af1a5b
gitswarm.f5net.com/terraform-providers/bigipnext v0.0.0-20240514153444-13e5ae1515eb
)

require (
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,8 @@ github.com/yuin/goldmark-meta v1.1.0 h1:pWw+JLHGZe8Rk0EGsMVssiNb/AaPMHfSRszZeUei
github.com/yuin/goldmark-meta v1.1.0/go.mod h1:U4spWENafuA7Zyg+Lj5RqK/MF+ovMYtBvXi1lBb2VP0=
github.com/zclconf/go-cty v1.14.3 h1:1JXy1XroaGrzZuG6X9dt7HL6s9AwbY+l4UNL8o5B6ho=
github.com/zclconf/go-cty v1.14.3/go.mod h1:VvMs5i0vgZdhYawQNq5kePSpLAoz8u1xvZgrPIxfnZE=
gitswarm.f5net.com/terraform-providers/bigipnext v0.0.0-20240328113634-8bad24af1a5b h1:MSGAkYGdAPgj+Vyl3V/qZS1yUVF0DS6ddqPsdMlnhp4=
gitswarm.f5net.com/terraform-providers/bigipnext v0.0.0-20240328113634-8bad24af1a5b/go.mod h1:SLwUYHgvE++OJL3tdWyNT4vbu094xMq8sQZyei0r3So=
gitswarm.f5net.com/terraform-providers/bigipnext v0.0.0-20240514153444-13e5ae1515eb h1:I87EGdKcGsZFze6obJmGM3fVNB8+NTSdY4xHpXPjBEc=
gitswarm.f5net.com/terraform-providers/bigipnext v0.0.0-20240514153444-13e5ae1515eb/go.mod h1:SLwUYHgvE++OJL3tdWyNT4vbu094xMq8sQZyei0r3So=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
golang.org/x/crypto v0.3.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4=
Expand Down
Loading

0 comments on commit f444fbf

Please sign in to comment.