Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(security): fix access to public envs when bot is unmounted #374

Merged
merged 1 commit into from
Jul 28, 2022

Conversation

laurentlp
Copy link
Contributor

This PR fixes an issue where unmounting a bot would prevent the user from accessing the bot settings page.

The issue came from the checkBotVisibility middleware that checks whether or not the bot is accessible (mounted). It contains an exception for the /env route and placeholder bots (___). Meaning that we were missing the exception for the public-env route.

@laurentlp laurentlp requested a review from sebburon July 27, 2022 15:23
Copy link
Contributor

@sebburon sebburon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@laurentlp laurentlp merged commit 7a6ff2e into master Jul 28, 2022
@laurentlp laurentlp deleted the llp_fix_bot_unmounted_issue branch July 28, 2022 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants