mirror of
https://github.com/ansible/awx.git
synced 2026-02-16 02:30:01 -03:30
* Add `opa_query_path field` for Inventory, Organization and JobTemplate models (#6850) Add `opa_query_path` model field to Inventory, Organizatio and JobTemplate. Add migration file and expose opa_query_path field in the related API serializers. * Gather and evaluate `opa_query_path` fields and raise violation exceptions (#6864) gather and evaluate all opa query related to a job execution during policy evaluation phase * Add OPA_AUTH_CUSTOM_HEADERS support (#6863) * Extend policy input data serializers (#6890) * Extend policy input data serializers * Update help text for PaC related fields (#6891) * Remove encrypted from OPA_AUTH_CUSTOMER_HEADER Unable to encrypt a dict field --------- Co-authored-by: Jiří Jeřábek (Jiri Jerabek) <Jerabekjirka@email.cz> Co-authored-by: Alexander Saprykin <cutwatercore@gmail.com> Co-authored-by: Tina Tien <98424339+tiyiprh@users.noreply.github.com>
47 lines
1.5 KiB
Python
47 lines
1.5 KiB
Python
# Generated by Django 4.2.18 on 2025-03-17 16:10
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('main', '0196_indirect_managed_node_audit'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name='inventory',
|
|
name='opa_query_path',
|
|
field=models.CharField(
|
|
blank=True,
|
|
default=None,
|
|
help_text='The query path for the OPA policy to evaluate prior to job execution. The query path should be formatted as package/rule.',
|
|
max_length=128,
|
|
null=True,
|
|
),
|
|
),
|
|
migrations.AddField(
|
|
model_name='jobtemplate',
|
|
name='opa_query_path',
|
|
field=models.CharField(
|
|
blank=True,
|
|
default=None,
|
|
help_text='The query path for the OPA policy to evaluate prior to job execution. The query path should be formatted as package/rule.',
|
|
max_length=128,
|
|
null=True,
|
|
),
|
|
),
|
|
migrations.AddField(
|
|
model_name='organization',
|
|
name='opa_query_path',
|
|
field=models.CharField(
|
|
blank=True,
|
|
default=None,
|
|
help_text='The query path for the OPA policy to evaluate prior to job execution. The query path should be formatted as package/rule.',
|
|
max_length=128,
|
|
null=True,
|
|
),
|
|
),
|
|
]
|