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 v0.8.28 #268

Merged
merged 3 commits into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ jobs:
run: git fetch --prune --unshallow
-
name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: 1.17
go-version: 1.18
-
name: Import GPG key
id: import_gpg
Expand Down
2 changes: 1 addition & 1 deletion DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ In order to test the provider installed locally, the provider block will have to
terraform {
required_providers {
aquasec = {
version = "0.8.27"
version = "0.8.28"
source = "terraform-provider-aquasec/aquasec/aquasec"
}
}
Expand Down
2 changes: 1 addition & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ HOSTNAME := github.com
NAMESPACE := aquasec
NAME := aquasec
BINARY := terraform-provider-${NAME}
VERSION := 0.8.27
VERSION := 0.8.28
OS_ARCH := $(shell go env GOOS)_$(shell go env GOARCH)

default: build
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ To quickly get started using the Aquasec provider for Terraform, configure the p
terraform {
required_providers {
aquasec = {
version = "0.8.27"
version = "0.8.28"
source = "aquasecurity/aquasec"
}
}
Expand Down
2 changes: 2 additions & 0 deletions aquasec/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,8 @@ func isSaasEnv() bool {
return true
case consts.SaasAsia2Url:
return true
case consts.SaaSAu2Url:
return true
default:
return false
}
Expand Down
7 changes: 7 additions & 0 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ func NewClient(url, user, password string, verifyTLS bool, caCertByte []byte) *C
c.clientType = Saas
c.tokenUrl = consts.SaasAsia2TokenUrl
break
case consts.SaaSAu2Url:
c.clientType = Saas
c.tokenUrl = consts.SaasAu2TokenUrl
break
case consts.SaasDevUrl:
c.clientType = SaasDev
c.tokenUrl = consts.SaasDevTokenUrl
Expand Down Expand Up @@ -150,6 +154,9 @@ func (cli *Client) GetUSEAuthToken() (string, string, error) {
case consts.SaasAsia2Url:
provUrl = consts.SaasAsia2ProvUrl
break
case consts.SaaSAu2Url:
provUrl = consts.SaasAu2ProvUrl
break
case consts.SaasDevUrl:
provUrl = consts.SaasDevProvUrl
break
Expand Down
3 changes: 3 additions & 0 deletions consts/consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,20 @@ const (
SaasEu1Url = "https://eu-1.cloud.aquasec.com"
SaasAsia1Url = "https://asia-1.cloud.aquasec.com"
SaasAsia2Url = "https://asia-2.cloud.aquasec.com"
SaaSAu2Url = "https://ap-2.cloud.aquasec.com/"
SaasDevUrl = "https://cloud-dev.aquasec.com"
SaasDevTokenUrl = "https://stage.api.cloudsploit.com"
SaasDevProvUrl = "https://prov-dev.cloud.aquasec.com"
SaasTokenUrl = "https://api.cloudsploit.com"
SaasEu1TokenUrl = "https://eu-1.api.cloudsploit.com"
SaasAsia1TokenUrl = "https://asia-1.api.cloudsploit.com"
SaasAsia2TokenUrl = "https://asia-2.api.cloudsploit.com"
SaasAu2TokenUrl = "https://ap-2.api.cloudsploit.com"
SaasProvUrl = "https://prov.cloud.aquasec.com"
SaasEu1ProvUrl = "https://prov-eu-1.cloud.aquasec.com"
SaasAsia1ProvUrl = "https://prov-asia-1.cloud.aquasec.com"
SaasAsia2ProvUrl = "https://prov-asia-2.cloud.aquasec.com"
SaasAu2ProvUrl = "https://prov-ap-2.cloud.aquasec.com"
SamlSettingsApiPath = "/api/v1/settings/SAMLSettings/SAMLSettings"
OIDCSettingsApiPath = "/api/v1/settings/OIDCSettings/OIDCSettings"
OpenIdSettingsApiPath = "/api/v1/settings/OIDCSettings/OpenIdSettings"
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Use the navigation to the left to read about the available resources and data so
terraform {
required_providers {
aquasec = {
version = "0.8.27"
version = "0.8.28"
source = "aquasecurity/aquasec"
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/data-sources/main.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
aquasec = {
// version = "0.8.27"
// version = "0.8.28"
source = "aquasecurity/aquasec"
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/provider/provider.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
aquasec = {
version = "0.8.27"
version = "0.8.28"
source = "aquasecurity/aquasec"
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/resources/main.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
aquasec = {
// version = "0.8.27"
// version = "0.8.28"
source = "aquasecurity/aquasec"
}
}
Expand Down
Loading