# One Plugin - Several Routes

**URL:** <https://discuss.konghq.com/t/one-plugin-several-routes/9519>\
**Category:** General\
**Created:** [December 19, 2021, 10:25am UTC](https://discuss.konghq.com/t/one-plugin-several-routes/9519 "2021-12-19T10:25:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nikolay\_Fominykh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/nikolay_fominykh/32/3164_2.png) [@Nikolay\_Fominykh](https://discuss.konghq.com/u/Nikolay_Fominykh)\
**Post date:** [December 19, 2021, 10:25am UTC](https://discuss.konghq.com/t/one-plugin-several-routes/9519/1 "2021-12-19T10:25:32Z")

</div>

Hello.

We have problem with kong plugins reusability.

Let’s assume that we have structure like

service:  
route1:  
route2:  
route3:

On route 1 and route 2 we have to apply key auth  
On route 3 - no key auth needed.

Since kong does not allow us to configure plugins like

```auto
requests.put(KONG_ADMIN_URL + 'routes/awesome-service/plugins/<plugin_configuration_name>', {
    'name': 'key-auth',
    'config.key_names': ['Authorization'],
})

```

And we have to use ids:

```auto
requests.put(KONG_ADMIN_URL + 'routes/awesome-service/plugins/7cd47c78-1f45-4805-b8f2-76adcf619bd8', {
    'name': 'key-auth',
    'config.key_names': ['Authorization'],
})

```

We keep local map of “plugin\_configuration” → “plugin\_id”

But it leads to huge config duplication. Can we use somehow one plugin config on several routes (without service level usage)?
