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

Prep v4.11.0 #2089

Merged
merged 5 commits into from
Sep 16, 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
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# Changelog

## 4.11.0 (Sep 16, 2024)

### NEW - RESOURCES, DATA SOURCES, PROPERTIES, ATTRIBUTES, ENV VARS:

* Add `GroupOwner` resource [#2079](https://github.com/okta/terraform-provider-okta/pull/2079). Thanks, [@arvindkrishnakumar-okta](https://github.com/arvindkrishnakumar-okta)!
* add support for custom role in okta_group_role [#2074](https://github.com/okta/terraform-provider-okta/pull/2074). Thanks, [@duytiennguyen-okta](https://github.com/duytiennguyen-okta)!
* add userVerificationMethods to API Payload [#2061](https://github.com/okta/terraform-provider-okta/pull/2061). Thanks, [@pro4tlzz](https://github.com/pro4tlzz)!
* additional app_oauth grant types [#2067](https://github.com/okta/terraform-provider-okta/pull/2067). Thanks, [@duytiennguyen-okta](https://github.com/duytiennguyen-okta)!

### IMPROVEMENTS
* fix resource_set example in docs [#2075](https://github.com/okta/terraform-provider-okta/pull/2075). Thanks, [@exitcode0](https://github.com/exitcode0)!
* Documentation: fix square bracket character encoding [#2056](https://github.com/okta/terraform-provider-okta/pull/2056). Thanks, [@exitcode0](https://github.com/exitcode0)!

### BUG FIXES

* fix issue when content security policy is null [#2043](https://github.com/okta/terraform-provider-okta/pull/2043). Thanks, [@duytiennguyen-okta](https://github.com/duytiennguyen-okta)!
* fix customized sign in import [#2051](https://github.com/okta/terraform-provider-okta/pull/2051). Thanks, [@duytiennguyen-okta](https://github.com/duytiennguyen-okta)!
* fix import okta_domain [#2062](https://github.com/okta/terraform-provider-okta/pull/2062). Thanks, [@duytiennguyen-okta](https://github.com/duytiennguyen-okta)!
* bugfix name format resource_okta_idp_saml.go [#2050](https://github.com/okta/terraform-provider-okta/pull/2050). Thanks, [@aemard](https://github.com/aemard)!

## 4.10.0 (Aug 6, 2024)

### NEW - RESOURCES, DATA SOURCES, PROPERTIES, ATTRIBUTES, ENV VARS:
Expand Down
1 change: 1 addition & 0 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ vet:
fmt: tools # Format the code
@echo "formatting the code with $(GOFMT)..."
@$(GOFMT) -l -w .
@terraform fmt -recursive ./examples/

fmtcheck:
@gofumpt -d -l .
Expand Down
8 changes: 8 additions & 0 deletions dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
- package-ecosystem: gomod
directory: "/"
schedule:
interval: daily
ignore:
- dependency-name: github.com/hashicorp/terraform-plugin-docs
versions:
- ">=0.14.0"
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ terraform {
required_providers {
okta = {
source = "okta/okta"
version = "~> 4.10.0"
version = "~> 4.11.0"
}
}
}
Expand Down
49 changes: 49 additions & 0 deletions docs/resources/group_owner.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
page_title: "Resource: okta_group_owner"
description: |-
Manages group owner resource.
---

# Resource: okta_group_owner

Manages group owner resource.

## Example Usage

```terraform
resource "okta_user" "test" {
first_name = "TestAcc"
last_name = "Smith"
login = "[email protected]"
email = "[email protected]"
}

resource "okta_group" "test" {
name = "testAcc_replace_with_uuid"
}

resource "okta_group_owner" "test" {
group_id = okta_group.test.id
id_of_group_owner = okta_user.test.id
type = "USER"
}
```

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

### Required

- `group_id` (String) The id of the group
- `id_of_group_owner` (String) The user id of the group owner
- `type` (String) The entity type of the owner. Enum: "GROUP" "USER"

### Read-Only

- `display_name` (String) The display name of the group owner
- `id` (String) The id of the group owner resource
- `origin_id` (String) The ID of the app instance if the originType is APPLICATION. This value is NULL if originType is OKTA_DIRECTORY.
- `origin_type` (String) The source where group ownership is managed. Enum: "APPLICATION" "OKTA_DIRECTORY"
- `resolved` (Boolean) If originType is APPLICATION, this parameter is set to FALSE until the owner's originId is reconciled with an associated Okta ID.


8 changes: 4 additions & 4 deletions examples/data-sources/okta_log_stream/datasource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ resource "okta_log_stream" "test_splunk" {
}

data "okta_log_stream" "test_by_name" {
name = okta_log_stream.test_splunk.name
depends_on = [ okta_log_stream.test_splunk, okta_log_stream.test_aws ]
name = okta_log_stream.test_splunk.name
depends_on = [okta_log_stream.test_splunk, okta_log_stream.test_aws]
}

data "okta_log_stream" "test_by_id" {
id = okta_log_stream.test_aws.id
depends_on = [ okta_log_stream.test_splunk, okta_log_stream.test_aws ]
id = okta_log_stream.test_aws.id
depends_on = [okta_log_stream.test_splunk, okta_log_stream.test_aws]
}
6 changes: 3 additions & 3 deletions examples/resources/okta_group_owner/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ resource "okta_group" "test" {
}

resource "okta_group_owner" "test" {
group_id = okta_group.test.id
id_of_group_owner = okta_user.test.id
type = "USER"
group_id = okta_group.test.id
id_of_group_owner = okta_user.test.id
type = "USER"
}
20 changes: 10 additions & 10 deletions examples/resources/okta_log_stream/basic.tf
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
resource "okta_log_stream" "eventbridge" {
name = "testAcc_replace_with_uuid EventBridge"
type = "aws_eventbridge"
status = "ACTIVE"
name = "testAcc_replace_with_uuid EventBridge"
type = "aws_eventbridge"
status = "ACTIVE"
settings {
account_id = "123456789012"
region = "eu-west-3"
account_id = "123456789012"
region = "eu-west-3"
event_source_name = "testAcc_replace_with_uuid"
}
}

resource "okta_log_stream" "splunk" {
name = "testAcc_replace_with_uuid Splunk"
type = "splunk_cloud_logstreaming"
status = "INACTIVE"
name = "testAcc_replace_with_uuid Splunk"
type = "splunk_cloud_logstreaming"
status = "INACTIVE"
settings {
host = "acme.splunkcloud.com"
host = "acme.splunkcloud.com"
edition = "aws"
token = "58A7C8D6-4E2F-4C3B-8F5B-D4E2F3A4B5C6"
token = "58A7C8D6-4E2F-4C3B-8F5B-D4E2F3A4B5C6"
}
}
20 changes: 10 additions & 10 deletions examples/resources/okta_log_stream/basic_updated.tf
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
resource "okta_log_stream" "eventbridge" {
name = "testAcc_replace_with_uuid EventBridge Updated"
type = "aws_eventbridge"
status = "INACTIVE"
name = "testAcc_replace_with_uuid EventBridge Updated"
type = "aws_eventbridge"
status = "INACTIVE"
settings {
account_id = "123456789012"
region = "eu-west-3"
account_id = "123456789012"
region = "eu-west-3"
event_source_name = "testAcc_replace_with_uuid"
}
}

resource "okta_log_stream" "splunk" {
name = "testAcc_replace_with_uuid Splunk Updated"
type = "splunk_cloud_logstreaming"
status = "ACTIVE"
name = "testAcc_replace_with_uuid Splunk Updated"
type = "splunk_cloud_logstreaming"
status = "ACTIVE"
settings {
host = "acme.splunkcloud.com"
host = "acme.splunkcloud.com"
edition = "aws"
token = "58A7C8D6-4E2F-4C3B-8F5B-D4E2F3A4B5C6"
token = "58A7C8D6-4E2F-4C3B-8F5B-D4E2F3A4B5C6"
}
}
13 changes: 3 additions & 10 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ require (
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320
github.com/hashicorp/go-hclog v1.6.3
github.com/hashicorp/go-retryablehttp v0.7.7
github.com/hashicorp/terraform-plugin-docs v0.19.4
github.com/hashicorp/terraform-plugin-docs v0.14.0
github.com/hashicorp/terraform-plugin-framework v1.8.0
github.com/hashicorp/terraform-plugin-framework-validators v0.12.0
github.com/hashicorp/terraform-plugin-go v0.22.2
Expand All @@ -34,7 +34,6 @@ require (
)

require (
github.com/Kunde21/markdownfmt/v3 v3.1.0 // indirect
github.com/Masterminds/goutils v1.1.1 // indirect
github.com/Masterminds/semver/v3 v3.2.0 // indirect
github.com/Masterminds/sprig/v3 v3.2.3 // indirect
Expand All @@ -44,7 +43,6 @@ require (
github.com/armon/go-radix v1.0.0 // indirect
github.com/beevik/etree v1.1.0 // indirect
github.com/bgentry/speakeasy v0.1.0 // indirect
github.com/bmatcuk/doublestar/v4 v4.6.1 // indirect
github.com/cloudflare/circl v1.3.7 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 // indirect
Expand All @@ -53,7 +51,6 @@ require (
github.com/goccy/go-json v0.10.2 // indirect
github.com/golang/protobuf v1.5.4 // indirect
github.com/google/go-cmp v0.6.0 // indirect
github.com/hashicorp/cli v1.1.6 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-checkpoint v0.5.0 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
Expand All @@ -79,7 +76,7 @@ require (
github.com/mattermost/xml-roundtrip-validator v0.1.0 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mattn/go-runewidth v0.0.9 // indirect
github.com/mitchellh/cli v1.1.5 // indirect
github.com/mitchellh/copystructure v1.2.0 // indirect
github.com/mitchellh/go-testing-interface v1.14.1 // indirect
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
Expand All @@ -90,17 +87,14 @@ require (
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/posener/complete v1.2.3 // indirect
github.com/russellhaering/goxmldsig v1.3.0 // indirect
github.com/russross/blackfriday v1.6.0 // indirect
github.com/shopspring/decimal v1.3.1 // indirect
github.com/spf13/cast v1.5.0 // indirect
github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect
github.com/vmihailenco/msgpack/v5 v5.4.1 // indirect
github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect
github.com/yuin/goldmark v1.7.1 // indirect
github.com/yuin/goldmark-meta v1.1.0 // indirect
github.com/zclconf/go-cty v1.14.4 // indirect
go.abhg.dev/goldmark/frontmatter v0.2.0 // indirect
golang.org/x/crypto v0.22.0 // indirect
golang.org/x/exp v0.0.0-20230809150735-7b3493d9a819 // indirect
golang.org/x/mod v0.17.0 // indirect
golang.org/x/net v0.24.0 // indirect
golang.org/x/oauth2 v0.17.0 // indirect
Expand All @@ -110,5 +104,4 @@ require (
google.golang.org/genproto/googleapis/rpc v0.0.0-20240227224415-6ceb2ff114de // indirect
google.golang.org/grpc v1.63.2 // indirect
google.golang.org/protobuf v1.33.0 // indirect
gopkg.in/yaml.v2 v2.3.0 // indirect
)
Loading