-
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
[Cloud Security] fix agent version on cloudformation template in Cloud Security integrations #166485
Conversation
Pinging @elastic/kibana-cloud-security-posture (Team:Cloud Security) |
cloudFormationUrl = templateURL | ||
.replace('FLEET_ENROLLMENT_TOKEN', enrollmentToken) | ||
.replace('FLEET_URL', fleetUrl) | ||
.replace('KIBANA_VERSION', kibanaVersion); | ||
.replace('KIBANA_VERSION', agentVersion); |
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.
it's a bit confusing that we chose KIBANA_VERSION
for tempating here, but I guess we will need to live with it. The alternative would be to rename the templating varible to AGENT_VERSION
and then replace both KIBANA_VERSION
and AGENT_VERSION
for backwards compatibility which might be even more confusing. Leaving a comment to give the context for this naming mismatch
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.
So just to get it straight, what we actually wanted to pass was the agent version but instead we passed a kibana version only because they used to be the same? in this case this fix was needed regardless. and yes i completely agree the naming here is confusing
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.
yep, it was always the agent version really, it just used to match the Kibana version before serverless
Pinging @elastic/fleet (Team:Fleet) |
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.
LGTM
cloudFormationUrl = templateURL | ||
.replace('FLEET_ENROLLMENT_TOKEN', enrollmentToken) | ||
.replace('FLEET_URL', fleetUrl) | ||
.replace('KIBANA_VERSION', kibanaVersion); | ||
.replace('KIBANA_VERSION', agentVersion); |
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.
So just to get it straight, what we actually wanted to pass was the agent version but instead we passed a kibana version only because they used to be the same? in this case this fix was needed regardless. and yes i completely agree the naming here is confusing
💚 Build Succeeded
Metrics [docs]Canvas Sharable Runtime
Page load bundle
History
To update your PR or re-run it, just comment with: |
Summary
fixes
using the new
useAgentVersion
hook to get the agent version to prefill in the Cloudformation templateThere is already a PR with the same fix #166198 but as it also changes the logic of
useAgentVersion
itself, it might take some time to align. This PR only fixes the immediate issue we have in Serverless