-
Notifications
You must be signed in to change notification settings - Fork 975
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
Define Elastic Agent Extension v5 #5937
Comments
…v5 (gocd#5937) * Introduce following new extension API calls: - get-cluster-profile-metadata - get-cluster-profile-view - validate-cluster-profile * Modify Cluster Profile API to validate cluster profiles upon creation and update.
…v5 (#5937) * Introduce following new extension API calls: - get-cluster-profile-metadata - get-cluster-profile-view - validate-cluster-profile * Modify Cluster Profile API to validate cluster profiles upon creation and update.
* Modify elastic agent extension v5 create-agent request to pass along cluster_profile_properties as part of request body.
…v5 (gocd#5937) * Introduce following new extension API calls: - get-cluster-profile-metadata - get-cluster-profile-view - validate-cluster-profile * Modify Cluster Profile API to validate cluster profiles upon creation and update.
* Modify 'supports_status_report' to 'supports_plugin_status_report'. * Introduce 'supports_cluster_status_report' in v5 extension. * 'supports_agent_status_report' remains unchanged.
* Modify 'supports_status_report' to 'supports_plugin_status_report'. * Introduce 'supports_cluster_status_report' in v5 extension. * 'supports_agent_status_report' remains unchanged.
* Modify 'supports_status_report' to 'supports_plugin_status_report'. * Introduce 'supports_cluster_status_report' in v5 extension. * 'supports_agent_status_report' remains unchanged.
* Modify 'supports_status_report' to 'supports_plugin_status_report'. * Introduce 'supports_cluster_status_report' in v5 extension. * 'supports_agent_status_report' remains unchanged.
…ocd#5538) * On plugin load, make a config migration call to all elastic agent plugins to migrate cluster profile(s) and elastic agent profile(s) providing plugin settings, cluster profile(s) and elastic agent profile(s). * Save received migrated config back to the xml. * Migrate will always be made to plugin on plugin load even if the latest available config has already been migrated.
…ocd#5538) * On plugin load, make a config migration call to all elastic agent plugins to migrate cluster profile(s) and elastic agent profile(s) providing plugin settings, cluster profile(s) and elastic agent profile(s). * Save received migrated config back to the xml. * Migrate will always be made to plugin on plugin load even if the latest available config has already been migrated.
For adding support for cluster-status-report, we are thinking of the following URLs for all status reports:
Is it fine or someone has any other suggestion? |
…ocd#5538) * On plugin load, make a config migration call to all elastic agent plugins to migrate cluster profile(s) and elastic agent profile(s) providing plugin settings, cluster profile(s) and elastic agent profile(s). * Save received migrated config back to the xml. * Migrate will always be made to plugin on plugin load even if the latest available config has already been migrated.
#5538) (#6040) * Introduce elastic agent extension v5 migrate-config call (#5937) (#5538) * On plugin load, make a config migration call to all elastic agent plugins to migrate cluster profile(s) and elastic agent profile(s) providing plugin settings, cluster profile(s) and elastic agent profile(s).
@GaneshSPatil @ketan Not sure if this is the right place to discuss about elastic agents or not.
let me your thoughts on this ? |
It is not possible to replace the IAM user with a role as credentials are used by ECS plugin to communicate with the AWS API. We are considering following approaches of passing Profile/Role to the agent:
Second is a preferred approach. We may take that up in a future release.
We are working on introducing
Same as described for point 1. /cc @arvindsv @gocd/committers |
To add to what @bdpiparva mentioned, we're planning to introduce more granular authorization soon (something similar to this). This should happen over the next two or three releases, once we finish secrets management support. That might allow finer control over elastic agent profiles. But, as @bdpiparva mentioned, currently, pipeline group administrators can manage them. |
@bdpiparva May be I was not clear with step 1. But you pretty much mentioned the same. Since you're already launching Ec2 instance and spinning up docker go-agents inside it. The launched Ec2 instance should have an IAM instance profile and while go-server triggers to launch a new docker go-agent, generate iam credentials using sts from the Ec2 instance's IAM role and pass them to docker go-agent. I don't know how the docker go-agent will utilize the role and do aws api calls. correct me if i'm wrong.
The docker go-agents have a pre-installed version on go-agent. will those agents be upgraded or we need to pull-in the latest docker images from docker hub ? I thought we need to update them. @bdpiparva With AWS fargate (for launching instances-less containers )being more cheaper. Does your elastic agent have capacity to support it? if not can you please add it to your roadmap ? @arvindsv when are you planning on to release the granular auth ? |
@zerolaser As I mentioned, it should happen over the next two or three releases, once we finish secrets management support. No known date yet. |
Verified on 19.3.0 (8959-259d1f79e361875995072e5c1fcc9cbda7ccc600) |
|
Issue Type
Summary
Introduce elastic agent extension v5 to support cluster configuration related calls.
Introduce following new API calls related to cluster profile:
Introduce following new API calls related GoCD config migration:
Modify following API calls to send along associated cluster configuration:
Modify following API calls to send along all cluster configurations:
Following API calls remain unchanged:
Capabilities API call changes have following capabilities:
Indicates supports getting a status report at the plugin level. (An aggregated view of all the clusters)
Indicates supports getting status report for a cluster.
Indicates supports getting a status report for a single Elastic agent.
Following messages will not be sent to the plugins implementing v5 extension:
The text was updated successfully, but these errors were encountered: