-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1043 from MaibornWolff/dev
chore: merge to main for release 1.6.0
- Loading branch information
Showing
145 changed files
with
3,440 additions
and
3,125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ on: | |
push: | ||
branches: | ||
- main | ||
- chore/doc-about | ||
- fix/doc_api_base_url | ||
|
||
permissions: | ||
contents: write | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Security Policy | ||
|
||
## Reporting a Vulnerability | ||
|
||
Please use the ["Report a vulnerability"](https://github.com/MaibornWolff/SecObserve/security/advisories/new) button in the GitHub repository (under the "Security" tab) to report a vulnerability. | ||
|
||
**Please do not report security vulnerabilities through public GitHub issues, discussions, or pull requests.** | ||
|
||
Please include as much of the information listed below as you can to help us better understand and resolve the issue: | ||
|
||
* The type of issue (e.g., buffer overflow, SQL injection, or cross-site scripting) | ||
* Full paths of source file(s) related to the manifestation of the issue | ||
* The location of the affected source code (tag/branch/commit or direct URL) | ||
* Any special configuration required to reproduce the issue | ||
* Step-by-step instructions to reproduce the issue | ||
* Proof-of-concept or exploit code (if possible) | ||
* Impact of the issue, including how an attacker might exploit the issue | ||
|
||
This information will help us triage your report more quickly. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "1.5.0" | ||
__version__ = "1.6.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from rest_framework.permissions import BasePermission | ||
|
||
from application.access_control.api.permissions import check_object_permission | ||
from application.access_control.services.roles_permissions import Permissions | ||
|
||
|
||
class UserHasNotificationPermission(BasePermission): | ||
def has_object_permission(self, request, view, obj): | ||
if obj.product: | ||
return check_object_permission( | ||
request, | ||
obj.product, | ||
Permissions.Product_View, | ||
None, | ||
Permissions.Product_Delete, | ||
) | ||
|
||
if request.user and request.user.is_superuser: | ||
return True | ||
|
||
return False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
backend/application/core/migrations/0030_observation_origin_docker_image_digest.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 4.2.9 on 2024-01-28 08:45 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("core", "0029_adjust_observation_hashes"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="observation", | ||
name="origin_docker_image_digest", | ||
field=models.CharField(blank=True, max_length=255), | ||
), | ||
] |
34 changes: 34 additions & 0 deletions
34
backend/application/core/migrations/0031_observation_issue_tracker_issue_closed_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Generated by Django 4.2.9 on 2024-02-03 07:25 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("core", "0030_observation_origin_docker_image_digest"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="observation", | ||
name="issue_tracker_issue_closed", | ||
field=models.BooleanField(default=False), | ||
), | ||
migrations.AddField( | ||
model_name="product", | ||
name="issue_tracker_minimum_severity", | ||
field=models.CharField( | ||
blank=True, | ||
choices=[ | ||
("Unkown", "Unkown"), | ||
("None", "None"), | ||
("Low", "Low"), | ||
("Medium", "Medium"), | ||
("High", "High"), | ||
("Critical", "Critical"), | ||
], | ||
max_length=12, | ||
), | ||
), | ||
] |
Oops, something went wrong.