Add approved users/domains as an environment variable #276
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.