# Cisco Meraki webhooks integration fails when using shared secrets

**URL:** https://discuss.elastic.co/t/cisco-meraki-webhooks-integration-fails-when-using-shared-secrets/347007
**Category:** Elastic Agent
**Created:** [November 13, 2023, 11:59am UTC](https://discuss.elastic.co/t/cisco-meraki-webhooks-integration-fails-when-using-shared-secrets/347007 "2023-11-13T11:59:53Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![brynjar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brynjar/32/127491_2.png) [@brynjar](https://discuss.elastic.co/u/brynjar)
#### Post date: [November 13, 2023, 11:59am UTC](https://discuss.elastic.co/t/cisco-meraki-webhooks-integration-fails-when-using-shared-secrets/347007/1 "2023-11-13T11:59:53Z")

</div>

Hello,

I've been testing the Cisco Meraki webhooks integration lately, and while it works just fine without specifying a shared secret, it stops working immediately once any text is entered in `secret_value` as described in [https://docs.elastic.co/en/integrations/cisco\_meraki#configure-the-cisco-meraki-integration](https://docs.elastic.co/en/integrations/cisco_meraki#configure-the-cisco-meraki-integration)

As far as I can tell, this is because Cisco Meraki sends the shared secret as a JSON attribute `sharedSecret`, as shown in the [test-mx-events.json](https://github.com/elastic/integrations/blob/34242b32eaca2fca20535aa861d54c8d3073cc69/packages/cisco_meraki/data_stream/events/_dev/test/pipeline/test-mx-events.json#L6) file included in the integration package:

```auto
{
    "events": [
        {
            "json": {
                "version": "0.1",
                "sharedSecret": "secret",
                "sentAt": "2021-10-07T08:42:00.926325Z",
[...]

```

http\_endpoint.yml.hbs, on the other hand, [looks for the shared secret](https://github.com/elastic/integrations/blob/34242b32eaca2fca20535aa861d54c8d3073cc69/packages/cisco_meraki/data_stream/events/agent/stream/http_endpoint.yml.hbs#L15-L18) in a non-existing `Authorization` header:

```auto
{{#if secret_value}}
secret.header: Authorization
secret.value: "{{secret_value}}"
{{/if}}

```

I'm mostly posting this to see if this is a confirmed bug, before creating an issue on Github, but please let me know if I'm misunderstanding the way the http\_endpoint input module works or if anyone else has been able to make this module work with shared secrets. Thank you!

---

<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: [December 11, 2023, 12:00pm UTC](https://discuss.elastic.co/t/cisco-meraki-webhooks-integration-fails-when-using-shared-secrets/347007/2 "2023-12-11T12:00:49Z")

</div>

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

---

<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: [June 10, 2024, 3:20pm UTC](https://discuss.elastic.co/t/cisco-meraki-webhooks-integration-fails-when-using-shared-secrets/347007/3 "2024-06-10T15:20:13Z")

</div>



---

<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: [June 10, 2024, 3:27pm UTC](https://discuss.elastic.co/t/cisco-meraki-webhooks-integration-fails-when-using-shared-secrets/347007/4 "2024-06-10T15:27:22Z")

</div>


