-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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] Add a is_managed field to package policy #136183
[Fleet] Add a is_managed field to package policy #136183
Conversation
…ged-integerations
…31/kibana into externally-managed-integerations
…ged-integerations
@shahzad31 How is this functionally different than the |
cc @nchaulet I think you would be best to guide this |
Pinging @elastic/fleet (Team:Fleet) |
i wasn't aware of |
…ged-integerations
i can't find |
Hi @shahzad31, I am not sure the
|
Those are totally valid question, and thank you so much for taking a quick look
I think it would be complex, potentially it can be done since we control the synthetics fleet ui by custom controllers we have in uptime app. But i don't think we see any value in that. Since we want 100% of our users to interact from monitor management.
No it shouldn't be. User shouldn't be able to delete these externally managed policies from FLeet UI. I think this PR does prevent that. Is there any other way to delete these from fleet UI?
So for now yes, since we want our changes to be backward compatible. And user may have existing synthetics policies or may want to ad new from fleet ui. So that means they will be able to edit/delete those from fleet UI. |
Pinging @elastic/uptime (Team:uptime) |
…31/kibana into externally-managed-integerations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved changes to cloud_security_posture
plugin
I saw potentially a bunch of issues with this that are currently not addressed and we probably need to discuss:
I am still trying to understand your saved object and the link to package policy, can you give more info on what do you save in saved object and how|when you transform this in package policy? |
@shahzad31 as we discussed offline I tried to play with frozen input but it seems too limited for what you want to achieve this allow to have some variable non editable but it does not allow to block package policy deletion. I think it will make sense to allow the
|
|
also renamed it to |
💚 Build Succeeded
Metrics [docs]Public APIs missing comments
Async chunks
Saved Objects .kibana field count
History
To update your PR or re-run it, just comment with: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uptime changes LGTM
Thanks, i will do a follow up PR or an issue to cover that. Though i will add tests from synthetics perspective in follow up PR as well. |
props.isManaged ? ( | ||
<EuiToolTip | ||
title={i18n.translate('xpack.fleet.externallyManagedLabel', { | ||
defaultMessage: 'This is externally managed integration policy.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This message should go in the content
prop. Only use the title
prop if content
is being used. The title prop adds a horizontal divider, and looks bad when no context exists below.
Summary
This requirement came out of elastic/uptime#475 and it's to support #135782
i separated out in a separate PR to make code review easier.
In synthetics we want to control to synthetics integration policies from Synthetics plugin. When user adds a monitor, we create a respective integration policy in synthetics package. Since that is entirely managed by synthetics plugin, we don't want users to edit those in view. Since source of truth in this case will be uptime monitor saved object.
This PR adds
is_externally_managed
a flag in policies, which will indicate if this is externally managed integration.When this flag is set to true, we will disable actions
And also when user is editing, we disable editing and adds a link to uptime
If user has existing synthetics monitors, they will keep working same or if they add them via fleet ui, they will continue working same.