Skip to content

Commit db62961

Browse files
committed
Change default for delta_sharing_recipient_token_lifetime_in_seconds from 0 to 31536000 (1 year)
1 parent 748d779 commit db62961

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

catalog/resource_metastore.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ func ResourceMetastore() common.Resource {
7070
// Field dependencies and validation
7171
m["delta_sharing_scope"].RequiredWith = []string{"delta_sharing_recipient_token_lifetime_in_seconds"}
7272
m["delta_sharing_recipient_token_lifetime_in_seconds"].RequiredWith = []string{"delta_sharing_scope"}
73+
m["delta_sharing_recipient_token_lifetime_in_seconds"].Default = 31536000 // 1 year
7374
common.CustomizeSchemaPath(m, "delta_sharing_scope").SetValidateFunc(
7475
validation.StringInSlice([]string{"INTERNAL", "INTERNAL_AND_EXTERNAL"}, false),
7576
)

docs/resources/metastore.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ The following arguments are required:
7575
* `region` - (Mandatory for account-level) The region of the metastore
7676
* `owner` - (Optional) Username/groupname/sp application_id of the metastore owner.
7777
* `delta_sharing_scope` - (Optional) Required along with `delta_sharing_recipient_token_lifetime_in_seconds`. Used to enable delta sharing on the metastore. Valid values: `INTERNAL`, `INTERNAL_AND_EXTERNAL`. `INTERNAL` only allows sharing within the same account, and `INTERNAL_AND_EXTERNAL` allows cross account sharing and token based sharing.
78-
* `delta_sharing_recipient_token_lifetime_in_seconds` - (Optional) Required along with `delta_sharing_scope`. Used to set expiration duration in seconds on recipient data access tokens. Set to 0 for unlimited duration.
78+
* `delta_sharing_recipient_token_lifetime_in_seconds` - (Optional) Required along with `delta_sharing_scope`. Used to set expiration duration in seconds on recipient data access tokens.
7979
* `delta_sharing_organization_name` - (Optional) The organization name of a Delta Sharing entity. This field is used for Databricks to Databricks sharing. Once this is set it cannot be removed and can only be modified to another valid value. To delete this value please taint and recreate the resource.
8080
* `external_access_enabled` - (Optional) Whether to allow non-DBR clients to directly access entities under the metastore.
8181
* `force_destroy` - (Optional) Destroy metastore regardless of its contents.

0 commit comments

Comments
 (0)