-
Notifications
You must be signed in to change notification settings - Fork 122
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
After upgrading provider from 0.11.8 to 0.11.10 it want to replace api key due to whitespace changes. Api key role_descriptors are not changed
To Reproduce
- Create api key with 0.11.8
- Upgrade provider to 0.11.10
- Run plan
# elasticstack_elasticsearch_security_api_key.telegraf must be replaced
-/+ resource "elasticstack_elasticsearch_security_api_key" "telegraf" {
~ api_key = (sensitive value)
~ encoded = (sensitive value)
~ expiration_timestamp = 0 -> (known after apply)
~ id = "25opFie5T1qs3JS9dz9YFA/daCobZIBlhlmOGXYaM3k" -> (known after apply)
~ key_id = "daCobZIBlhlmOGXYaM3k" -> (known after apply)
~ metadata = jsonencode({}) -> (known after apply)
name = "telegraf"
~ role_descriptors = jsonencode( # whitespace changes
{
telegraf = {
cluster = [
"monitor",
"cluster:admin/snapshot/status",
"cluster:admin/repository/get",
"manage_slm",
]
indices = [
{
allow_restricted_indices = true
names = [
"*",
]
privileges = [
"monitor",
"view_index_metadata",
]
},
]
}
}
)
# (1 unchanged attribute hidden)
}
Plan: 1 to add, 0 to change, 1 to destroy.
Expected behavior
Whitespaces shouldn't force api key replacement
Debug output
N/A
Screenshots
N/A
Versions (please complete the following information):
- OS: macos 15
- terraform 1.8.0
- provider registry.terraform.io/elastic/elasticstack v0.11.10
- elasticsearch 8.14.3 on elastic.co
Additional context
N/A
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working