Add approved users/domains as an environment variable #276

Closed
opened 2024-08-30 19:51:21 +02:00 by kmanwar89 · 0 comments
kmanwar89 commented 2024-08-30 19:51:21 +02:00 (Migrated from github.com)

Using the logic here, can you add in an environment variable in Docker that allows a user to implement approved users and/or domains? This would allow non @cisco.com domains to interact with the bot.

Currently, if a non-approved domain email contacts the bot, the message is silently ignored (no output returned) and the following log appears in docker-compose:

app-1 | 2024-08-30T17:20:11.886377567Z 2024-08-30 17:20:11 [WARNING] [webex_bot.webex_bot.webex_bot.check_user_approved]:159 XXXXXXXXXXXXX@gmail.com is not approved to interact at this time. Ignoring.

The variable could be called ADDITIONAL_APPROVED_USERS and permit a comma-separate list of user ID strings and/or email addresses that can interact with the bot.

Using the logic [here](https://github.com/fbradyirl/webex_bot/blob/main/webex_bot/webex_bot.py#L87), can you add in an environment variable in Docker that allows a user to implement approved users and/or domains? This would allow non @cisco.com domains to interact with the bot. Currently, if a non-approved domain email contacts the bot, the message is silently ignored (no output returned) and the following log appears in docker-compose: `app-1 | 2024-08-30T17:20:11.886377567Z 2024-08-30 17:20:11 [WARNING] [webex_bot.webex_bot.webex_bot.check_user_approved]:159 XXXXXXXXXXXXX@gmail.com is not approved to interact at this time. Ignoring.` The variable could be called ADDITIONAL_APPROVED_USERS and permit a comma-separate list of user ID strings and/or email addresses that can interact with the bot.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: repos/roboluke#276
No description provided.