Compile telegraf without exec plugin

I’m not sure if this is “working as designed” so I’m asking for advice.

We compile telegraf for s390x platform (mainframe) and for security reasons we want to exclude the exec plugin. If I compile with a select list of input tags and complete list of output plugins I still see exec in the output list (that is understandable) but a colleague reported he can also use exec as an input (that part I don’t grok).

So if I completely want to remove the exec feature do I really have to give the explicit list of all input and output plugins?

Hello @tseeling,
Yes I believe you are correct. If you want to reduce the binary size and compile with selected plugins you have to specify what those are.