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

Error when modifying IP filter in upcloud_managed_database_opensearch resource #541

Closed
TARHiS opened this issue May 13, 2024 · 2 comments
Closed
Labels

Comments

@TARHiS
Copy link

TARHiS commented May 13, 2024

Hi I got following error when modifying IP addresses in properties.ip_filter list in upcloud_managed_database_opensearch resource block.

error: message="Validation error.", type="https://developers.upcloud.com/1.3/errors#ERROR_INVALID_REQUEST", correlation_id=01HXREDW5WGY79FVXTE0JR83SQ, invalid_params_properties.saml.subject_key='Length must be >= 1, but got 0.', invalid_params_properties.saml.roles_key='Length must be >= 1, but got 0.', invalid_params_properties.openid.refresh_rate_limi
t_time_window_ms='Must be >= 10000 but found 0.', invalid_params_properties.openid.refresh_rate_limit_count='Must be >= 10 but found 0.', invalid_params_properties.openid.jwt_url_parameter='Length must be >= 1, but got 0.', invalid_params_properties.openid.header='Length must be >= 1, but got 0.', invalid_params_properties.openid.jwt_header='Length must be >= 1,
 but got 0.', invalid_params_properties.openid.roles_key='Length must be >= 1, but got 0.' 

From UpCloud's WebUI I have previously configured OpenSearch SAML and OpenID properties but disabled them afterward.

Here is terraform file I have been using

resource "upcloud_managed_database_opensearch" "opensearch_example_fi" {
  maintenance_window_dow  = "sunday"
  maintenance_window_time = "05:00:00"
  name                    = "opensearch-example-fi"
  plan                    = "3x2xCPU-14GB-420GB-3D"
  powered                 = true
  title                   = "opensearch-example-fi"
  zone                    = "de-fra1"

  properties {
    automatic_utility_network_ip_filter = true
    ip_filter                           = yamldecode(file("${path.module}/opensearch_allow_ip_list.yml"))
    public_access                       = true
    ism_enabled                         = false
    ism_history_enabled                 = false
    version                             = "2"
  }
}
@kangasta
Copy link
Contributor

Hello, thank you for the bug report! Seems like a zero vs. empty value bug in the provider. We'll take a look on how to fix that 🤔

@kangasta
Copy link
Contributor

kangasta commented Jun 4, 2024

This should now be fixed in v5.5.0. Please reopen this, if the issue persist.

@kangasta kangasta closed this as completed Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants