apply sensitive field filtering to /api/v2/hosts/?host_filter

see: https://github.com/ansible/tower/issues/2874
see: https://github.com/ansible/tower/issues/2889
This commit is contained in:
Ryan Petrello
2018-08-20 10:30:51 -04:00
parent d995068396
commit 4eeb62766e
3 changed files with 54 additions and 6 deletions

View File

@@ -238,11 +238,11 @@ class JobTemplate(UnifiedJobTemplate, JobOptions, SurveyJobTemplateMixin, Resour
app_label = 'main'
ordering = ('name',)
host_config_key = models.CharField(
host_config_key = prevent_search(models.CharField(
max_length=1024,
blank=True,
default='',
)
))
ask_diff_mode_on_launch = AskForField(
blank=True,
default=False,