Preserve audit app migration label
This commit is contained in:
parent
6fec682e12
commit
18d8fb7f1a
9 changed files with 10 additions and 10 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
# CMMC Audit Plugin
|
# CMMC Audit Plugin
|
||||||
|
|
||||||
The in-tree package is named `coldfront.plugins.cmmc_audit`, and the user-facing Django admin label is **CMMC Audit**.
|
The in-tree package is named `coldfront.plugins.cmmc_audit`, the Django app label remains `carc_audit` for migration compatibility, and the user-facing Django admin label is **CMMC Audit**.
|
||||||
|
|
||||||
This plugin records append-only operational evidence for ColdFront workflows. It keeps raw forensic data such as `old_values`, `new_values`, target type/id, request path, IP address, source, and source id while adding CMMC-oriented admin columns for reviewers.
|
This plugin records append-only operational evidence for ColdFront workflows. It keeps raw forensic data such as `old_values`, `new_values`, target type/id, request path, IP address, source, and source id while adding CMMC-oriented admin columns for reviewers.
|
||||||
|
|
||||||
|
|
|
||||||
2
apps.py
2
apps.py
|
|
@ -4,7 +4,7 @@ from django.apps import AppConfig
|
||||||
class CmmcAuditConfig(AppConfig):
|
class CmmcAuditConfig(AppConfig):
|
||||||
default_auto_field = 'django.db.models.BigAutoField'
|
default_auto_field = 'django.db.models.BigAutoField'
|
||||||
name = 'coldfront.plugins.cmmc_audit'
|
name = 'coldfront.plugins.cmmc_audit'
|
||||||
label = 'cmmc_audit'
|
label = 'carc_audit'
|
||||||
verbose_name = 'CMMC Audit'
|
verbose_name = 'CMMC Audit'
|
||||||
|
|
||||||
def ready(self):
|
def ready(self):
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ from django.db import migrations, models
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
('cmmc_audit', '0001_initial'),
|
('carc_audit', '0001_initial'),
|
||||||
]
|
]
|
||||||
|
|
||||||
operations = [
|
operations = [
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ from django.db import migrations, models
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
('cmmc_audit', '0002_alter_auditevent_action'),
|
('carc_audit', '0002_alter_auditevent_action'),
|
||||||
]
|
]
|
||||||
|
|
||||||
operations = [
|
operations = [
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ from django.db import migrations, models
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
('cmmc_audit', '0003_alter_auditevent_action'),
|
('carc_audit', '0003_alter_auditevent_action'),
|
||||||
]
|
]
|
||||||
|
|
||||||
operations = [
|
operations = [
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ from django.db import migrations, models
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
('cmmc_audit', '0004_alter_auditevent_action'),
|
('carc_audit', '0004_alter_auditevent_action'),
|
||||||
]
|
]
|
||||||
|
|
||||||
operations = [
|
operations = [
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ ACTION_EVIDENCE_MAP = {
|
||||||
|
|
||||||
|
|
||||||
def backfill_cmmc_fields(apps, schema_editor):
|
def backfill_cmmc_fields(apps, schema_editor):
|
||||||
AuditEvent = apps.get_model("cmmc_audit", "AuditEvent")
|
AuditEvent = apps.get_model("carc_audit", "AuditEvent")
|
||||||
for event in AuditEvent.objects.all().iterator():
|
for event in AuditEvent.objects.all().iterator():
|
||||||
evidence_category, control_family, source = ACTION_EVIDENCE_MAP.get(event.action, ("", "", "runtime"))
|
evidence_category, control_family, source = ACTION_EVIDENCE_MAP.get(event.action, ("", "", "runtime"))
|
||||||
event.event_time = event.timestamp
|
event.event_time = event.timestamp
|
||||||
|
|
@ -53,7 +53,7 @@ def backfill_cmmc_fields(apps, schema_editor):
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
('cmmc_audit', '0005_alter_auditevent_action'),
|
('carc_audit', '0005_alter_auditevent_action'),
|
||||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ from django.db import migrations, models
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
('cmmc_audit', '0006_add_cmmc_evidence_fields'),
|
('carc_audit', '0006_add_cmmc_evidence_fields'),
|
||||||
]
|
]
|
||||||
|
|
||||||
operations = [
|
operations = [
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ from django.db import migrations, models
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
('cmmc_audit', '0007_backfillrun_alter_auditevent_source'),
|
('carc_audit', '0007_backfillrun_alter_auditevent_source'),
|
||||||
]
|
]
|
||||||
|
|
||||||
operations = [
|
operations = [
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue