-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Support special characters in passwords, redacted logs & debug config #4057
Conversation
frigate/const.py
Outdated
# Regex Consts | ||
|
||
REGEX_CAMERA_NAME = "^[a-zA-Z0-9_-]+$" | ||
REGEX_CAMERA_USER_PASS = "[a-zA-Z0-9_-]+:[a-zA-Z0-9!$_-]+@" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know we can't have special characters in password right now but figured might as well filter them out in case that changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm sure we can fix that too. Might as well look at doing that here. They probably just need to be properly escaped when opening the subprocess.
This one needs a rebase |
d0f85b5
to
9c41ce1
Compare
✅ Deploy Preview for frigate-docs ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
…blakeblackshear#4057) * Consts for regex * Add regex for camera username and password * Redact user:pass from ffmpeg logs * Redact ffmpeg commands * Move common function to util * Add tests * Formatting * Remove unused imports * Fix test * Add port to test * Support special characters in passwords * Add tests for special character handling * Remove docs about not supporting special characters
Redact user:pass from cameras in logs and ffmpeg commands in debug
Example: