Currently, Kong supports Global and service\route\api level plugins. is there a way to enable a plugin at a set of api level rather than individual or gloabl level. For example, if I have 100 apis, i would like to enable OIDC authentiation for 80 apis whereas enable key auth for 5 apis and basic auth for 15 apis. Is this possible without enabling plugin at individual api level?
Not yet. We will be working on this in the near future, stay tuned!
@kongj2ee I’m guessing that part of what you are trying to achieve here is avoiding having to configure a given plugin many times on many different APIs - you want to avoid duplication, and gain consistency.
One thing that may be helpful is to use the new Routes and Services entities, instead of the deprecated API entity. Part of the motivation for us to create these new entities was to solve your problem!
Depending on how your Routes and Services are configured, you may be able to add a plugin to many Routes by configuring it just once on a single Service (that serves all the Routes).