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

[8.11] [Fleet] Support integration secrets with required: false (#172078) #172201

Merged
merged 2 commits into from
Nov 29, 2023

Conversation

kpollich
Copy link
Member

Backport

This will backport the following commits from main to 8.11:

Questions ?

Please refer to the Backport tool documentation

…72078)

## Summary

Support secrets with `required: false` in package manifests.

Closes elastic#172061

## To test

1. Set up an integration in a local package registry with a variable
that has `secret: true` and `required: false`, e.g.

```yml
- name: secret_token
  type: password
  title: (Test) Secret Token
  description: |
    Test non-required secret
  show_user: true
  secret: true
  required: false
```

2. Create a package policy for your test package and note the optional
secret is rendered properly
3. Submit the policy editor form without filling out a value for the
optional secret
4. Observe the request is successful
5. Edit the package policy and set a value for the optional secret
6. Observe that the secret creation logic works as expected

## Screen recording

https://github.com/elastic/kibana/assets/6766512/36e271c5-29d0-49f8-91e8-abc6a7871b20
(cherry picked from commit e64f475)
@kpollich kpollich enabled auto-merge (squash) November 29, 2023 17:13
@botelastic botelastic bot added the Team:Fleet Team label for Observability Data Collection Fleet team label Nov 29, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@apmmachine
Copy link
Contributor

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • /oblt-deploy-serverless : Deploy a serverless Kibana instance using the Observability test environments.
  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@kibana-ci
Copy link
Collaborator

kibana-ci commented Nov 29, 2023

💔 Build Failed

Failed CI Steps

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
fleet 1.2MB 1.2MB +31.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@kpollich
Copy link
Member Author

@elasticmachine merge upstream

@kpollich kpollich merged commit c4b7c82 into elastic:8.11 Nov 29, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Team:Fleet Team label for Observability Data Collection Fleet team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants