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

[Fleet] Cannot create integration with multi secret input #205102

Open
2 tasks
jillguyonnet opened this issue Dec 23, 2024 · 1 comment
Open
2 tasks

[Fleet] Cannot create integration with multi secret input #205102

jillguyonnet opened this issue Dec 23, 2024 · 1 comment
Labels
bug Fixes for quality problems that affect the customer experience Team:Fleet Team label for Observability Data Collection Fleet team

Comments

@jillguyonnet
Copy link
Contributor

jillguyonnet commented Dec 23, 2024

Ref.: https://elastic.slack.com/archives/CNMNXV4RG/p1734936907785719

Description

There doesn't seem to be an existing case of an integration with an input that has both multi: true and secret: true. The above attempt reports the following Fleet error:

Error creating secrets: ResponseError: x_content_parse_exception Root causes: x_content_parse_exception: [1:10] [post_secret_request] value doesn't support values of type: START_ARRAY

This comes from

const msg = `Error creating secrets: ${err}`;

and arises from passing an array value to the secret creation API:

POST /_fleet/secret/
{
  "value": ["mysecret"]
}

I did a local try and found I had a working multi input, but no secrets. I probably configured something differently.

Relevant PRs:
#163075
elastic/elasticsearch#97728

Acceptance criteria

  • Validate whether it is possible for an integration to have a multi secret field.
  • If so, address above bug.
@jillguyonnet jillguyonnet added bug Fixes for quality problems that affect the customer experience Team:Fleet Team label for Observability Data Collection Fleet team labels Dec 23, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Team:Fleet Team label for Observability Data Collection Fleet team
Projects
None yet
Development

No branches or pull requests

2 participants