mirror of
https://github.com/ansible/awx.git
synced 2026-05-24 00:57:48 -02:30
Include survey_passwords when validating extra_vars prompts
prompts_dict() emits survey_passwords alongside extra_vars. _accept_or_ignore_job_kwargs uses it to decrypt encrypted survey values before validation. Without it, encrypted password blobs are validated as-is against the survey spec. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -4149,6 +4149,7 @@ class LaunchConfigurationBaseSerializer(BaseSerializer):
|
|||||||
requested_prompt_fields = incoming_attr_keys & ask_mapping_keys
|
requested_prompt_fields = incoming_attr_keys & ask_mapping_keys
|
||||||
if 'extra_data' in incoming_attr_keys:
|
if 'extra_data' in incoming_attr_keys:
|
||||||
requested_prompt_fields.add('extra_vars')
|
requested_prompt_fields.add('extra_vars')
|
||||||
|
requested_prompt_fields.add('survey_passwords')
|
||||||
|
|
||||||
# prompts_dict() pulls persisted M2M state (labels, credentials,
|
# prompts_dict() pulls persisted M2M state (labels, credentials,
|
||||||
# instance_groups) via the instance pk. Only re-validate the full prompt
|
# instance_groups) via the instance pk. Only re-validate the full prompt
|
||||||
|
|||||||
Reference in New Issue
Block a user