# Fleet/Elastic-Agent trusted information from certificate

**URL:** <https://discuss.elastic.co/t/fleet-elastic-agent-trusted-information-from-certificate/281028>\
**Category:** Beats\
**Tags:** fleet, elastic-agent\
**Created:** [August 11, 2021, 9:35am UTC](https://discuss.elastic.co/t/fleet-elastic-agent-trusted-information-from-certificate/281028 "2021-08-11T09:35:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wsnet](https://avatars.discourse-cdn.com/v4/letter/w/b5ac83/32.png) [@wsnet](https://discuss.elastic.co/u/wsnet)\
**Post date:** [August 11, 2021, 9:35am UTC](https://discuss.elastic.co/t/fleet-elastic-agent-trusted-information-from-certificate/281028/1 "2021-08-11T09:35:26Z")

</div>

Hello,

With 7.14.0 Elasticsearch has started validating `agent.id` using the `.fleet_final_pipeline-1` [(see the PR)](https://github.com/elastic/kibana/pull/100973), which greatly improves security.

While using Elastic-Agent to fetch information from servers, e.g. web-logs, we would like to make sure that the hostname of the web-server the agent runs on is trusted and has not been tampered with. This would allow us to confidently link events to servers without looking up the `agent.id`. The certificate issued to the Elastic-Agent to converse with Fleet has `cn=<hostname>` as the subject name, so there is a trusted source of this information (the signed certificate).

Is there a way to associate that certificate subject name with the API key given to the Elastic-Agent (in the same way the `agent.id` is) so the `.fleet_final_pipeline-1` can check the `hostname` or certificate subject name as well as just the `agent.id`?

Thanks

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [August 12, 2021, 7:21am UTC](https://discuss.elastic.co/t/fleet-elastic-agent-trusted-information-from-certificate/281028/2 "2021-08-12T07:21:12Z")

</div>

I don't think it is something that can be done today. What do you think about opening a Github issue as a feature request for this?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 9, 2021, 9:21am UTC](https://discuss.elastic.co/t/fleet-elastic-agent-trusted-information-from-certificate/281028/3 "2021-09-09T09:21:49Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
