duosecurity / duo_log_sync

MIT License
37 stars 28 forks source link

DuoLogSync: Shutting down due to [telephony producer: [Received 401 Invalid integration key in request credentials]] #14

Open szahri opened 4 years ago

szahri commented 4 years ago

Hi there, In DUO admin I created an application called DuoSyncLog with type "Auth API" and used the integration key and secret key shown in the config.yml. However when I started duo sync log I received the following error:

2020-10-30 00:12:37 INFO     Starting DuoLogSync
2020-10-30 00:12:37 INFO     DuoLogSync: Opening connection to mysyslogserver:514
2020-10-30 00:12:37 INFO     duo_client Admin initialized for ikey: DIIR45GSRB91OIDAA58C, host: api-12345.duosecurity.com
2020-10-30 00:12:37 INFO     telephony producer: fetching next logs after 120 seconds
2020-10-30 00:12:37 INFO     telephony consumer: waiting for logs

2020-10-30 00:14:37 INFO     telephony producer: fetching logs
2020-10-30 00:14:38 ERROR    DuoLogSync: check that the duoclient ikey and skey in the config file are correct
2020-10-30 00:14:38 WARNING  DuoLogSync: Shutting down due to [telephony producer: [Received 401 Invalid integration key in request credentials]]
2020-10-30 00:14:38 INFO     telephony producer: shutting down
2020-10-30 00:14:38 INFO     telephony consumer: shutting down

What could I be doing wrong? Am I using the wrong application type here in DUO?

appreciate any feedback!

Thanks J

rohanbendre commented 4 years ago

Hi @szahri! This error usually indicates you might be using incorrect integration key. I see in your description you used Auth API. You should be using Admin API and grant appropriate permissions within it.