-
Notifications
You must be signed in to change notification settings - Fork 25
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
Nebula 6 #19
Nebula 6 #19
Conversation
# TODO: authentication using a path parameter | ||
|
||
video_path = f"/mnt/nebula_01/.nx/proxy/{int(id_asset/1000):04d}/{id_asset}.mp4" | ||
if not os.path.exists(video_path): |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression
def range_requests_response(request: Request, file_path: str, content_type: str): | ||
"""Returns StreamingResponse using Range Requests of a given file""" | ||
|
||
file_size = os.stat(file_path).st_size |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression
status_code = status.HTTP_206_PARTIAL_CONTENT | ||
|
||
return StreamingResponse( | ||
send_bytes_range_requests(open(file_path, mode="rb"), start, end), |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression
|
||
def hash_password(password: str): | ||
if config.password_hashing == "legacy": | ||
return hashlib.sha256(password.encode("ascii")).hexdigest() |
Check failure
Code scanning / CodeQL
Use of a broken or weak cryptographic hashing algorithm on sensitive data
Merge pull request #19 from nebulabroadcast/develop
Nebula 6 is a major release which breaks compatibility with the old API and settings (DB structure as well as the rest of the data remain the same tho, so it is possible to just update settings and upgrade).
nebulabroadcast/nebula becomes a monorepo of nebula-server, which is the API part of the system. Along with the API, it provides React-based web interface for the MAM part.