Beta - Databricks token has indefinite lifetime
This product is not supported for your selected
Datadog site. (
).
このページは日本語には対応しておりません。随時翻訳に取り組んでいます。
翻訳に関してご質問やご意見ございましたら、
お気軽にご連絡ください。
Id: 7d05ca25-91b4-42ee-b6f6-b06611a87ce8
Cloud Provider: Databricks
Platform: Terraform
Severity: Medium
Category: Insecure Defaults
Learn More
Description
The databricks_token resource is missing the lifetime_seconds attribute, resulting in a token with an indefinite lifetime.
This attribute defines the token’s validity period and should be set to enforce expiration.
Compliant Code Examples
resource "databricks_token" "negative" {
provider = databricks.created_workspace
comment = "Terraform Provisioning"
// 100 day token
lifetime_seconds = 8640000
}
Non-Compliant Code Examples
resource "databricks_token" "positive" {
provider = databricks.created_workspace
comment = "Terraform Provisioning"
}