Skip to content
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

Release/v1.9.0 #269

Merged
merged 115 commits into from
Dec 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
115 commits
Select commit Hold shift + click to select a range
b69167d
Pull request #481: DXE-37 update error message on hostnames
Oct 21, 2021
c31b67b
TFP-868 Set provider version in goreleaser
piotrpio Oct 21, 2021
b36a700
Pull request #484: TFP-868 Set provider version in goreleaser
piotrpio Oct 21, 2021
f2306b6
TFP-908 Add generic FieldPrefixSuppress function in tools package
piotrpio Oct 22, 2021
53e322d
Merge remote-tracking branch 'origin/develop' into merge_master_to_dev
Slonimskaia Oct 25, 2021
6daff11
TFP-903 property rule data source: allow user to select rule format
majakubiec Oct 21, 2021
c5b406c
Pull request #488: TFP-903 property rule data source: allow user to s…
majakubiec Oct 26, 2021
6c69f67
DXE-15 Fix ignoring return values from diag.Errorf and diag.FromErr
dstopka Oct 25, 2021
0f32e5b
Pull request #487: TFP-908 Add generic FieldPrefixSuppress function i…
piotrpio Oct 29, 2021
81eccc2
DXE-25 [GH#258] Fix akamai_edge_hostname forcing replacement without …
dstopka Oct 28, 2021
1e3c3e7
Merge pull request #212 from lorenzoaiello/patch-1
mgwoj Oct 27, 2021
b8857fa
Merge pull request #213 from lorenzoaiello/patch-2
mgwoj Oct 27, 2021
662fe6f
Merge pull request #250 from vietjovi/master
lkowalsk-akamai-com Nov 2, 2021
59ce285
Pull request #509: DXE-57 Merge branch 'master' into 'develop'
piotrpio Nov 10, 2021
09434f6
DXE-73 DXE-76 Fix dataset fields ordering, fix empty email_ids field …
rivit98 Nov 4, 2021
b310dc9
Pull request #507: DXE-73 DXE-76 Fix dataset fields ordering, fix emp…
rivit98 Nov 16, 2021
fae24dd
DXE-50 Add useCases attribute to akamai_edge_hostname resource
dstopka Nov 15, 2021
aa34eab
Pull request #528: TFP-1240 terraform fmt lint for travis
Nov 25, 2021
a369b92
TFP-1228 documentation updates
lkowalsk-akamai-com Nov 25, 2021
c82043d
SECKSD-11998 Adding in Evasive Path Match for Config and Policy
Jul 30, 2021
59eddc9
Merge branch 'develop' into security-v2-september
JPLodineAK Aug 17, 2021
68f000c
SECKSD-11919 fixed doc formatting
Aug 19, 2021
f53d990
SECKSD-10154 Refactor individual policy protection resources
JPLodineAK Aug 23, 2021
69e1cda
SECKSD-11538 Incorporate review comments
JPLodineAK Aug 24, 2021
4973de5
SECKSD-11340 Prevent output template table header from wrapping
JPLodineAK Aug 26, 2021
7a68a85
SECKSD-11851 Add test cases for appsec subprovider
JPLodineAK Aug 26, 2021
7b6353e
SECKSD-11950 Refactor to avoid using deprecated methods and structs
JPLodineAK Aug 30, 2021
7a64d13
Merge branch 'develop' into security-v2-september
JPLodineAK Aug 31, 2021
99a2df3
Adding evasivePathMatch import template
Sep 2, 2021
fe37b0b
Merge branch 'security-v2-september' into security-v2-september
Sep 2, 2021
39f8026
SECKSD-11998 Fix "NonEmptyPlanExpected" attribute in unit test
JPLodineAK Sep 1, 2021
b770684
Updating evasive path match template for export
Sep 3, 2021
55a870e
SECKSD-11950 Refactor individual policy protection resources
JPLodineAK Sep 1, 2021
fac83a6
Removing config level resource generation for evasive path match import
Sep 3, 2021
3fb6343
SECKSD-11998 Fix "NonEmptyPlanExpected" attribute in unit test
JPLodineAK Sep 3, 2021
851de66
Merge branch 'security-v2-september' into security-v2-september
JPLodineAK Sep 7, 2021
a434cc3
SECKSD-11930 tunning recommendations datasource
Sep 24, 2021
b77a393
SECKSD-12098 Revert special character evasion feature
JPLodineAK Sep 7, 2021
c51b6e7
SECKSD-12502 fixed advanced exceptions update in ASE auto mode
Oct 21, 2021
db69465
SECKSD-12502 make rule_action required again
Oct 22, 2021
39021aa
SECKSD-12502 ASE rules advanced exception
Nov 8, 2021
7efb373
SECKSD-12623 Update WAP bypass network lists for multi-policy WAP;
JPLodineAK Nov 9, 2021
9d27876
Merge branch 'develop' into security-v2-october
JPLodineAK Nov 9, 2021
c7b85d5
SECKSD-12624 Deprecate WAP-only datasource & resources
JPLodineAK Nov 9, 2021
037357f
SECKSD-12502 doc update
Nov 17, 2021
1d966e1
SECKSD-11930 Tuning recommendations datasource
Sep 24, 2021
70fb1a6
Merge branch 'security-v2-october' into security-v2-october
mgwoj Nov 26, 2021
c303bd4
DXE-87 Post rebase fixes
mgwoj Nov 26, 2021
a13ae1a
DXE-87 Security v2 october
robertolopezlopez Nov 26, 2021
e799d77
DXE-53 Fix travisCI pipeline
dstopka Nov 29, 2021
6e47b4f
TFP-1133 Updated CHANGELOG for security
JPLodineAK Nov 29, 2021
10a9f99
Pull request #526: TFP-1236 Datastream output and import fixes
Slonimskaia Nov 29, 2021
383b529
DXE-87 December AppSec documentation updates.
gregstemp Nov 22, 2021
716073a
Pull request #525: TFP-1239 Jenkins pipeline with terraform fmt and t…
Nov 30, 2021
fc8ffe4
TFP-909 Cloudlets subprovider initial structure
piotrpio Aug 26, 2021
5f66e0b
TFP-921 Terraform provider - data source akamai_cloudlets_edge_redire…
mgwoj Sep 14, 2021
9627cd6
TFP-1032 fix UseRelativeURL variable name
majakubiec Sep 15, 2021
3bf4a6e
TFP-920 data source akamai_cloudlets_application_load_balancer_match_…
robertolopezlopez Sep 16, 2021
1787fd6
TFP-923 Terraform provider - data source akamai_cloudlets_policy
majakubiec Sep 15, 2021
2b70eda
TFP-910 Add akamai_cloudlets_policy resource
piotrpio Sep 17, 2021
0b2ed5c
TFP-910 Remove 'aka_rule_id' and 'location' fields from rule generati…
piotrpio Sep 17, 2021
fb2bdd7
TFP-921 Remove not needed "id" field
mgwoj Sep 20, 2021
0339bf2
TFP-1068 map match_operator from schema to MatchCriteriaALB
robertolopezlopez Sep 24, 2021
b57bc0d
TFP-1068 Fix adding empty 'objectMatchValue' object to generated json
piotrpio Sep 27, 2021
3435382
TFP-924 Implementation of data source for load balancer.
Slonimskaia Sep 23, 2021
92069cd
TFP-924 Changed unit tests, added docs for data source.
Slonimskaia Sep 30, 2021
e011d00
TFP-924 Description refactor.
Slonimskaia Sep 30, 2021
41bf6ab
TFP-918 Add akamai_cloudlets_application_load_balancer resource
piotrpio Oct 1, 2021
97cd771
TFP-1068 forward settings and origin ID should be required
robertolopezlopez Sep 28, 2021
f8c01e9
TFP-944 resource akamai_cloudlets_policy - import
majakubiec Sep 27, 2021
ddc7fc7
TFP-924 Implementation of data source for load balancer.
Slonimskaia Sep 23, 2021
493f8cd
TFP-1061 add description information to cloudlets schemas
majakubiec Oct 1, 2021
e6ef625
TFP-966 resource akamai_cloudlets_application_load_balancer import
Slonimskaia Oct 5, 2021
5fbd3de
TFP-918 remove import-on-create functionality
majakubiec Oct 5, 2021
13b8947
TFP-966 Pull description from origin configuration, not from origin
Slonimskaia Oct 6, 2021
cdd1996
TFP-915 resource akamai_cloudlets_policy_activation
robertolopezlopez Sep 22, 2021
121fb43
TFP-1105 resource akamai_cloudlets_policy wrong description
majakubiec Oct 7, 2021
cfc589a
TFP-1087 data source akamai_cloudlets_policy fix missing version in s…
majakubiec Oct 11, 2021
cbdcadc
TFP-1123 parse prod network for policy activation
robertolopezlopez Oct 14, 2021
248d223
TFP-1097 Remove "match_rules" from state file after API error for aka…
dstopka Oct 13, 2021
e262ad5
TFP-1107 change akamai_cloudlets_edge_redirector_match_rule.type fiel…
majakubiec Oct 18, 2021
a7519ba
TFP-776 Unit tests and coverage tests for jenkins build
Oct 19, 2021
631534d
TFP-1115 add liveness_hosts verification for akamaized origins
majakubiec Oct 18, 2021
fbe0802
TFP-1165 Add setting warnings in akamai_cloudlets_policy resource
dstopka Oct 18, 2021
902dbe9
TFP-1146 remove akaRuleId and location from the schema
mgwoj Oct 25, 2021
a755449
TFP-1165 Fix missing warnings in akamai_cloudlets_policy resource output
dstopka Oct 22, 2021
d7bbe5d
TFP-915 refactor cloudlets policy activation update
robertolopezlopez Oct 18, 2021
39cfa65
TFP-919 Terraform provider - resource akamai_cloudlets_application_lo…
mgwoj Oct 22, 2021
ee04ca3
TFP-1182 akamai_cloudlets_application_load_balancer_activation don't …
mgwoj Oct 29, 2021
6faf371
TFP-919 Terraform provider - resource akamai_cloudlets_application_lo…
mgwoj Oct 29, 2021
63f3447
TFP-1160 refactor cloudlets to adopt edgegrid changes
majakubiec Nov 3, 2021
786f40d
TFP-1178 Terraform provider - data source ALB & ER match_rule - ensur…
majakubiec Nov 4, 2021
e6396db
TFP-1184 Change match_rules type from Set to List
dstopka Nov 5, 2021
378f1f9
TFP-1202 Use paging in policy import
piotrpio Nov 8, 2021
d71ba8f
TFP-1203 Use pagination when fetching policy versions
dstopka Nov 9, 2021
09e2d48
TFP-1183 activation post update
Nov 10, 2021
b342417
TFP-915 TFP-1195 TFP-1148 resource akamai_cloudlets_policy_activation
robertolopezlopez Nov 17, 2021
38a47df
TFP-1214 revert version and associated_properties to previous value i…
robertolopezlopez Nov 18, 2021
03193d8
TFP-1175 Changed implementation for ALB match rules according to chan…
Slonimskaia Nov 19, 2021
cca4bee
TFP-1233 Customize error message if policy removal was unsuccessful
piotrpio Nov 23, 2021
ec401b0
TFP-1175 cloudlets add objectMatchValue field for matchCriteriaER
Slonimskaia Nov 24, 2021
72cb4ff
TFP-1232 Multiple matches in akamai_cloudlets_edge_redirector_match_r…
majakubiec Nov 24, 2021
094db23
TFP-1237 create a guide for the cloudlets module
Slonimskaia Nov 25, 2021
2890b53
TFP-1241 Change use_relative_url to optional
dstopka Nov 25, 2021
6928258
TFP-1248 Changed error messages in ALB to be consistent with ER
Slonimskaia Nov 26, 2021
6dbda89
TFP-1049 documentation for cloudlets data sources and resources
igkoprow Nov 3, 2021
cdf4a41
TFP-1234 Added StatusDetail to be checked while polling
Nov 26, 2021
cb12793
TFP-1244 remove use_incoming_scheme_and_host
majakubiec Nov 26, 2021
9535271
TFP-1239 Jenkins pipeline with terraform fmt and tflint
mgwoj Nov 30, 2021
3ae8470
TFP-1131 fix tf lint issues + bump edgegrid version
robertolopezlopez Nov 30, 2021
b7219e1
TFP-1133 Added release documentation
Slonimskaia Nov 29, 2021
c2bfe08
DXE-39 CPS - wait until pending changes propagate on enrollment
piotrpio Nov 29, 2021
08592f2
TFP-1228 Add missing rule_format attribute
Nov 30, 2021
f2d89fe
TFP-1133 Changed last update month
Slonimskaia Nov 30, 2021
dc46afc
Merge remote-tracking branch 'github/master' into merge-master-to-rel…
piotrpio Dec 6, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ builds:
- -trimpath
- -tags=all
ldflags:
- '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}'
- -s -w -X github.com/akamai/terraform-provider-akamai/v2/version.ProviderVersion={{.Version}}
goos:
- windows
- linux
Expand Down
12 changes: 8 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,20 @@ branches:

language: go
go:
- "1.12.9"
- "1.14"

env:
- GO111MODULE=on
GOFLAGS=-mod=vendor
- GOBIN=$GOPATH/bin

install:
- make tools
- make init
- make tools.terraform
- make dummy-edgerc

script:
- make check
- make test
- make build
- make website-test
- make terraform-fmt
- make terraform-lint
37 changes: 37 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,42 @@
# RELEASE NOTES

## 1.9.0 (Dec 6, 2021)

#### FEATURES/ENHANCEMENTS
* [IMPORTANT] Added Cloudlets API support
* Added resources allowing management of policy and policy activations:
* `akamai_cloudlets_policy` - create, read, update, delete and import policy
* `akamai_cloudlets_policy_activation` - create, read, update and delete policy activations
* Added resources allowing management of application load balancer configuration and application load balancer activations:
* `akamai_cloudlets_application_load_balancer` - create, read, update, delete and import application load balancer configuration
* `akamai_cloudlets_application_load_balancer_activation` - create, read, update and delete application load balancer activations
* Added data sources:
* `akamai_cloudlets_policy` - lists information about policy
* `akamai_cloudlets_application_load_balancer` - lists information about application load balancer configuration
* `akamai_cloudlets_application_load_balancer_match_rule` - lists information about application load balancer match rules
* `akamai_cloudlets_edge_redirector_match_rule` - lists information about edge redirector match rules
* APPSEC
* Add group/contract ID support to network list resource ([#243](https://github.com/akamai/terraform-provider-akamai/issues/243))
* Add tuning recommendations data source
* Add support for advanced exceptions in ASE rules
* Update WAP bypass network lists for multi-policy WAP
* Deprecate WAP-only datasource & resources
* PAPI
* Updated documentation for data source akamai_property_rules
* Allowed user to select a rule format in `resource akamai_property`
* Added optional `use_cases` attribute for `akamai_edge_hostname` resource
#### BUG FIXES:
* Fixed example usage for provider import ([#212](https://github.com/akamai/terraform-provider-akamai/pull/212))
* PAPI
* Removing default value for `ip_behavior` in `akamai_edge_hostname` resource ([#213](https://github.com/akamai/terraform-provider-akamai/pull/213))
* Returned an error if `edge_hostname` attribute in `akamai_edge_hostname` resource does not exist ([#258](https://github.com/akamai/terraform-provider-akamai/issues/258))
* CPS
* Attribute `dns_challenges` should not be empty on initial apply for `akamai_cps_dv_enrollment` resource ([#253](https://github.com/akamai/terraform-provider-akamai/issues/253))
* DATASTREAM
* Attribute `dataset_fields_ids` should not be sorted numerically in `akamai_datastream` resource ([#263](https://github.com/akamai/terraform-provider-akamai/issues/263))
* GTM
* Attribute `datacenter_id` should be required in `akamai_gtm_geomap` resource ([#259](https://github.com/akamai/terraform-provider-akamai/issues/259))

## 1.8.0 (Oct 25, 2021)

#### FEATURES/ENHANCEMENTS:
Expand Down
31 changes: 27 additions & 4 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,17 @@ check: errcheck fmtcheck lint vet

.PHONY: test
test: fmtcheck
go test $(TEST) -v $(TESTARGS) -timeout 10m
go test $(TEST) -v $(TESTARGS) -timeout 20m 2>&1

.PHONY: testacc
testacc: fmtcheck
TF_ACC=1 go test $(TEST) -v $(TESTARGS) -timeout 300m

.PHONY: vet
vet:
@echo "go vet ."
@go vet $$(go list ./...); if [ $$? -eq 1 ]; then \
@echo "==> Checking source code against vet"
# Appsec package excluded until https://track.akamai.com/jira/browse/SECKSD-12824 is done
@go vet $$(go list ./... | grep -v appsec); if [ $$? -ne 0 ]; then \
echo ""; \
echo "Vet found suspicious constructs. Please check the reported constructs"; \
echo "and fix them if necessary before submitting the code for review."; \
Expand All @@ -51,6 +52,10 @@ vet:
fmt:
gofmt -w $(GOFMT_FILES)

.PHONY: terraform-fmt
terraform-fmt:
terraform fmt -recursive -check

.PHONY: fmtcheck
fmtcheck:
@sh -c "'$(CURDIR)/scripts/gofmtcheck.sh'"
Expand All @@ -64,6 +69,11 @@ lint:
@echo "==> Checking source code against golangci-lint"
@$$(go env GOPATH)/bin/golangci-lint run

.PHONY: terraform-lint
terraform-lint:
@echo "==> Checking source code against tflint"
@find ./examples -type f -name "*.tf" | xargs -I % dirname % | sort -u | xargs -I @ sh -c "echo @ && tflint @"

.PHONY: test-compile
test-compile:
go test -c ./akamai $(TESTARGS)
Expand All @@ -73,5 +83,18 @@ tools.golangci-lint:
@echo Installing golangci-lint
@curl -sSfL https://github.com/raw/golangci/golangci-lint/master/install.sh | sh -s -- -b $$(go env GOPATH)/bin $(golangci-lint-version)

.PHONY: tools.tflint
tools.tflint:
@echo Installing tf-lint
@curl -s https://github.com/raw/terraform-linters/tflint/master/install_linux.sh | bash

.PHONY: init
init: tools.golangci-lint
init: tools.golangci-lint tools.tflint

.PHONY: dummy-edgerc
dummy-edgerc:
@sh -c "'$(CURDIR)/scripts/dummyedgerc.sh'"

.PHONY: tools.terraform
tools.terraform:
@sh -c "'$(CURDIR)/scripts/install_terraform.sh'"
17 changes: 15 additions & 2 deletions build/internal/docker_jenkins.bash
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,18 @@
# This script will build the provider and associated library after checking out from git on jenkins.
#
# It uses the same docker image for all builds unless RELOAD_DOCKER_IMAGE parameter is set true.

# Script will end immediately when some command exits with a non-zero exit code.
set -e

PROVIDER_BRANCH_NAME="${1:-develop}"
EDGEGRID_BRANCH_NAME_V2="${2:-v2}"
EDGEGRID_BRANCH_NAME_V1="${3:-develop}"
RELOAD_DOCKER_IMAGE="${4:-false}"

# Recalculate DOCKER_IMAGE_SIZE if any changes to dockerfile.
TIMEOUT="20m"
DOCKER_IMAGE_SIZE="642345946"

SSH_PRV_KEY="$(cat ~/.ssh/id_rsa)"
SSH_PUB_KEY="$(cat ~/.ssh/id_rsa.pub)"
Expand Down Expand Up @@ -41,7 +48,8 @@ if [[ "$RELOAD_DOCKER_IMAGE" == true ]]; then
docker image rm -f terraform/akamai:terraform-provider-akamai 2> /dev/null || true
fi

if [[ "$(docker images -q terraform/akamai:terraform-provider-akamai 2> /dev/null)" == "" ]]; then
if [[ "$(docker images -q terraform/akamai:terraform-provider-akamai 2> /dev/null)" == "" ||
"$(docker inspect -f '{{ .Size }}' terraform/akamai:terraform-provider-akamai)" != "$DOCKER_IMAGE_SIZE" ]]; then
echo "Building new image terraform/akamai:terraform-provider-akamai"
DOCKER_BUILDKIT=1 docker build \
-f build/internal/package/Dockerfile \
Expand All @@ -50,7 +58,6 @@ if [[ "$(docker images -q terraform/akamai:terraform-provider-akamai 2> /dev/nul
-t terraform/akamai:terraform-provider-akamai .
fi


echo "Creating docker container"
docker run -d -it --name akatf-container --entrypoint "/usr/bin/tail" \
-e TF_LOG=DEBUG \
Expand Down Expand Up @@ -109,4 +116,10 @@ docker exec akatf-container sh -c 'cd terraform-provider-akamai; go install -tag
mkdir -p /root/.terraform.d/plugins/registry.terraform.io/akamai/akamai/${PROVIDER_VERSION}/linux_amd64;
cp /root/go/bin/terraform-provider-akamai /root/.terraform.d/plugins/registry.terraform.io/akamai/akamai/${PROVIDER_VERSION}/linux_amd64/terraform-provider-akamai_v${PROVIDER_VERSION}'

echo "Running terraform fmt"
docker exec akatf-container sh -c 'cd terraform-provider-akamai; terraform fmt -recursive -check'

echo "Running tflint on examples"
docker exec akatf-container sh -c 'cd terraform-provider-akamai; find ./examples -type f -name "*.tf" | xargs -I % dirname % | sort -u | xargs -I @ sh -c "echo @ && tflint @"'

docker rm -f akatf-container 2> /dev/null || true
5 changes: 3 additions & 2 deletions build/internal/package/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ ARG SSH_PUB_KEY
ARG SSH_KNOWN_HOSTS
WORKDIR $GOPATH/src/github.com/akamai

RUN apk add --update git bash openssh go gcc musl-dev openssl-dev ca-certificates && \
RUN apk add --update git bash sudo openssh go gcc musl-dev openssl-dev ca-certificates unzip curl && \
go get -u github.com/jstemmer/go-junit-report && \
go get -u github.com/axw/gocov/... && \
go get -u github.com/AlekSi/gocov-xml && \
mkdir -p /root/.ssh
mkdir -p /root/.ssh && \
curl -s https://github.com/raw/terraform-linters/tflint/master/install_linux.sh | bash

ADD build/internal/package/AkamaiCorpRoot-G1.pem /usr/local/share/ca-certificates/AkamaiCorpRoot-G1.pem
RUN update-ca-certificates
10 changes: 7 additions & 3 deletions build/internal/package/nexus-release.bash
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ find_branch() {
do
echo "Checking branch '${branch}'"
EDGEGRID_BRANCH=$branch

if [[ "$EDGEGRID_BRANCH" == "develop" ]]; then
EDGEGRID_BRANCH="v2"
fi
Expand All @@ -66,14 +67,15 @@ clone_edgegrid() {
echo "Repository 'akamaiopen-edgegrid-golang' already exists, so only cleaning and updating it"
pushd akamaiopen-edgegrid-golang
git reset --hard
git fetch
git fetch -p
popd
fi
}

checkout_edgegrid() {
pushd akamaiopen-edgegrid-golang
git checkout $EDGEGRID_BRANCH
git checkout $EDGEGRID_BRANCH -f
git reset --hard origin/$EDGEGRID_BRANCH
git pull
popd
}
Expand Down Expand Up @@ -132,6 +134,8 @@ if [[ "$RELEASE_TYPE" == "snapshot" ]]; then
else
mod_edit
fi
./build/internal/docker_jenkins.bash "$CURRENT_BRANCH" "$EDGEGRID_BRANCH"
if ! ./build/internal/docker_jenkins.bash "$CURRENT_BRANCH" "$EDGEGRID_BRANCH"; then
exit 1
fi
build
nexus_push
6 changes: 4 additions & 2 deletions docs/data-sources/appsec_eval_hostnames.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ description: |-

**Scopes**: Security configuration

Returns the evaluation hostnames for a configuration. In evaluation mode, you use evaluation hosts to monitor how well your configuration settings protects host traffic. (Note that the evaluation host isn't actually protected, and the host takes no action other than recording the actions it would have taken had it been on the production network).
**Important**: This data source is deprecated and may be removed in a future release. You may use the `akamai_appsec_wap_selected_hostnames` data source instead.

Evaluation mode for hostnames is only available for organizations running Web Application Protector.
Returns the evaluation hostnames for a configuration. In evaluation mode, you use evaluation hosts to monitor how well your configuration settings protect host traffic. (Note that the evaluation host isn't actually protected, and the host takes no action other than recording the actions it would have taken had it been on the production network.)

Evaluation mode for hostnames is available only for organizations running Web Application Protector.

**Related API Endpoint**: [/appsec/v1/configs/{configId}/versions/{versionNumber}/selected-hostnames/eval-hostnames](https://developer.akamai.com/api/cloud_security/application_security/v1.html#getevaluationhostnames)

Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/appsec_eval_rules.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
layout: "akamai"
page_title: "Akamai: KRS Eval Rule"
page_title: "Akamai: Evaluation Rule"
subcategory: "Application Security"
description: |-
KRS Eval Rules
Evaluation Rules
---


Expand Down
79 changes: 79 additions & 0 deletions docs/data-sources/appsec_tuning_recommendation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
---
layout: "akamai"
page_title: "Akamai: TuningRecommendation"
subcategory: "Application Security"
description: |-
TuningRecommendation
---

# akamai_appsec_tuning_recommendation

**Scopes**: Security policy; attack group

Returns tuning recommendations for the specified attack group (or, if the **attack_group** argument is not included, returns tuning recommendations for all the attack groups in the specified security policy). Tuning recommendations help minimize the number of false positives triggered by a security policy; with a false positive, a client request is marked as having violated the security policy restrictions even though it didn't actually violate those restrictions. Tuning recommendations are returned as attack group exceptions: if you choose, you can copy the response and use the [akamai_appsec_attack_group](https://registry.terraform.io/providers/akamai/akamai/latest/docs/resources/appsec_attack_group) resource to add the recommended exception to a security policy or attack group

If the data source response is empty, that means that there are no further recommendations for tuning your security policy or attack group.

If you need to, you can manually merge a recommended exception for an attack group with the exception previously configured in the attack group resource.
Additional information is available in the [Application Security API v1 documentation](https://developer.akamai.com/api/cloud_security/application_security/v1.html#getrecommendations).

**Related API endpoint**: [/appsec/v1/configs/{configId}/versions/{versionNumber}/security-policies/{policyId}/recommendation](https://developer.akamai.com/api/cloud_security/application_security/v1.html#gettuningrecommendationsforanattackgroup)s

## Example usage

```
terraform {
required_providers
akamai = {
source = "akamai/akamai"

}
}

provider "akamai" {
edgerc = "~/.edgerc"
}

// USE CASE: user wants to view tuning recommendations for the specified security policy or for the specified attack group

data "akamai_appsec_configuration" "configuration" {
name = "Documentation"
}

data "akamai_appsec_tuning_recommendations" "policy_recommendations" {
config_id = data.akamai_appsec_configuration.configuration.config_id
security_policy_id = "gms1_134637"
}

output "policy_recommendations_json" {
value = data.akamai_appsec_tuning_recommendations.policy_recommendations.jso
}

data "akamai_appsec_tuning_recommendations" "attack_group_recommendations" {
config_id = data.akamai_appsec_configuration.configuration.config_id
security_policy_id = "gms1_134637"
attack_group = "SQL"
}

output "attack_group_recommendations_json" {
value = data.akamai_appsec_tuning_recommendations.attack_group_recommendations.json
}
```



## Argument reference

This data source supports the following arguments:

- **config_id** (required). Unique identifier of the security configuration you want to return tuning recommendations for.
- **security_policy_id** (required). Unique identifier of the security policy you want to return tuning recommendations for.
- **attack_group** (optional). Unique name of the attack group you want to return tuning recommendations for. If not included, recommendations are returned for all your attack groups.



## Output options

The following options can be used to determine the information returned, and how that returned information is formatted:

- **json**. JSON-formatted list of the tuning recommendations for the security policy or the attack group.
Loading