Commit Graph

20575 Commits

Author SHA1 Message Date
Ryan Petrello 42f4956a7f enforce required credential fields at job start time rather than on save
this is necessary for credential plugins support so that you can (in two
requests):

1.  Save a Credential with _no_ input values defined
2.  Create/associate one (or more) CredentialInputSource records to the
    new Credential
2019-04-02 11:21:29 -04:00
Jake McDermott e2d474ddd2 document restriction of external-external credential source linking 2019-04-02 11:21:25 -04:00
Ryan Petrello 011d7eb892 clean up access to various CredentialInputSource fields (#3336) 2019-04-02 11:21:21 -04:00
Ryan Petrello 018ff91620 add related and summary fields to the CredentialInputSource endpoint 2019-04-02 11:21:17 -04:00
Ryan Petrello 368d933799 remove association behavior from /api/v2/credentials/input_sources/ 2019-04-02 11:21:14 -04:00
Jake McDermott e9532dea8e cache dynamic input fields
Query dynamic input fields once on attribute access and then cache it for future use.
2019-04-02 11:21:10 -04:00
Ryan Petrello b911f8bf77 allow creation at /api/v2/credential_input_sources 2019-04-02 11:21:06 -04:00
Ryan Petrello e727909a61 rename the CredentialInputSource related_names so they're plural 2019-04-02 11:21:02 -04:00
Ryan Petrello 13366c1e75 Encrypt machine.ssh_public_key_data (in case users paste in signed data) 2019-04-02 11:20:58 -04:00
Ryan Petrello ca6d124417 add API examples for supported credential plugins 2019-04-02 11:20:55 -04:00
Ryan Petrello 35cca68f04 add RBAC definitions for CredentialInputSource 2019-04-02 11:20:51 -04:00
Ryan Petrello dcf17683e2 mark cred plugin strings for translation 2019-04-02 11:20:48 -04:00
Ryan Petrello b851e2be4a don't add hvac as a dependency for hashicorp vault integration
hvac is just based on requests anyways, and it doesn't support half of
what we need (like the SSH secrets engine API)
2019-04-02 11:20:44 -04:00
Ryan Petrello 69368d874e move path parameterization to the CredentialInputSource model 2019-04-02 11:20:36 -04:00
Jake McDermott 0ee223f799 add api for testing credential plugins 2019-04-02 11:20:33 -04:00
Ryan Petrello 7a43f00a5d add support for HashiCorp signed SSH certificates 2019-04-02 11:20:29 -04:00
Ryan Petrello 4ed5bca5e3 add credential plugin support for Azure Key Vault 2019-04-02 11:20:26 -04:00
Ryan Petrello 0a87469225 give credential plugins an explicit namespace 2019-04-02 11:20:22 -04:00
Ryan Petrello 63997838cd support HashiCorp Vault versioned secrets (API v2) 2019-04-02 11:20:19 -04:00
Ryan Petrello 89b731a0cb Improve the HashiCorp Vault KV name and field labels/help_text 2019-04-02 11:20:15 -04:00
Ryan Petrello 9036ba492c switch CredentialInput creation to use the associate/disassociate view 2019-04-02 11:20:10 -04:00
Jake McDermott d87144c4a7 add api for managing credential input sources 2019-04-02 11:19:56 -04:00
Jake McDermott c209955400 add credential plugin system and minimal working hashivault 2019-04-02 11:19:26 -04:00
Keith Grant e5f48bfa62 set focus on first input in modal when launching jt 2019-04-02 11:10:02 -04:00
softwarefactory-project-zuul[bot] 6e2c04e16c Merge pull request #3579 from ansible/revert-3575-update_preload_data
Revert "Add scm_branch while preloading data"

Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-04-02 13:02:19 +00:00
softwarefactory-project-zuul[bot] 8f096d11b6 Merge pull request #3569 from ansible/inv_src_venv
Use inventory source model, as opposed to organization, for update custom virtualenv

Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-04-02 12:16:50 +00:00
softwarefactory-project-zuul[bot] b98bac0ee9 Merge pull request #3580 from ryanpetrello/py3-insights-error
fix a py3 compat issue in the insights action plugin

Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-04-01 21:35:07 +00:00
Ryan Petrello 52a2ed2786 fix a py3 compat issue in the insights action plugin 2019-04-01 17:07:37 -04:00
Vismay Golwala 9710015a2f Revert "Add scm_branch while preloading data" 2019-04-01 16:56:19 -04:00
softwarefactory-project-zuul[bot] b70c354dfc Merge pull request #3575 from vismay-golwala/update_preload_data
Add scm_branch while preloading data

Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-04-01 20:39:46 +00:00
Keith Grant e943ae59b7 auto-focus first input in jt launch modal 2019-04-01 15:49:41 -04:00
softwarefactory-project-zuul[bot] 6e8809fe72 Merge pull request #3528 from elyezer/e2e-users
Add auditor and admin params to user e2e

Reviewed-by: Elyézer Rezende
             https://github.com/elyezer
2019-04-01 19:30:39 +00:00
Elyézer Rezende d2d1074e8b Add auditor and admin params to user e2e 2019-04-01 14:48:33 -04:00
softwarefactory-project-zuul[bot] 1bcda0a4cb Merge pull request #3529 from chrismeyersfsu/fix-inventory_update_deadlock
fixes inventory update deadlock

Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-04-01 18:05:36 +00:00
Marliana Lara 4e4afb4a98 Add sorting to all occurrences of the Template list 2019-04-01 13:44:24 -04:00
AlanCoding 750c8d8a6d Set ansible-inventory verbosity for Ansible 2.8 2019-04-01 13:39:20 -04:00
Vismay Golwala 74e264a6a5 Add scm_branch while preloading data
Currently, the SCM url for default project is not able to
fetch playbooks as branch is not specified. So, adding the
scm_branch value resolves this issue.

Signed-off-by: Vismay Golwala <vgolwala@redhat.com>
2019-04-01 11:53:34 -04:00
softwarefactory-project-zuul[bot] c508dc7d83 Merge pull request #3564 from wenottingham/paranormal-activity-stream
Management jobs don't produce activity stream entries; don't try and show them

Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-04-01 15:23:35 +00:00
AlanCoding ea355f6f8f change default to allow empty groups from custom sources 2019-04-01 10:53:06 -04:00
Keith Grant 95f5315fa3 prevent console errors when code mirror parses invalid syntax 2019-04-01 08:16:19 -04:00
mabashian e99e97bcb8 Adds support for custom_virutalenv on inventory sources in the UI 2019-03-31 13:45:24 -04:00
softwarefactory-project-zuul[bot] 7b16931658 Merge pull request #2736 from AlanCoding/logstash_removal
Remove python-logstash dependency

Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-03-31 02:35:45 +00:00
softwarefactory-project-zuul[bot] e395b87a1b Merge pull request #3559 from chrismeyersfsu/fix-isolated_fact_cache
process host facts for iso runs

Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-03-29 20:44:04 +00:00
chris meyers 71fcb1a82c process host facts for iso runs
* Move isolated clean to our final run hook
* ISO and non-iso code path now share the post-fact-processing code
2019-03-29 16:16:22 -04:00
softwarefactory-project-zuul[bot] 21e5179a84 Merge pull request #3563 from shanemcd/secret-secret
Move secret key from configmap to secret

Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-03-29 19:47:26 +00:00
Shane McDonald 298eaa0b32 Move secret key from configmap to secret 2019-03-29 15:24:50 -04:00
Bill Nottingham 17c0293065 Management jobs don't produce activity stream entries; don't try and show them. 2019-03-29 15:21:22 -04:00
AlanCoding 6f150f0362 Set inv src custom virtualenv directly on model 2019-03-29 14:37:28 -04:00
softwarefactory-project-zuul[bot] 71718ee2eb Merge pull request #3558 from ryanpetrello/index-job-status
index unified_job.status

Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-03-29 18:14:53 +00:00
Ryan Petrello 7ef68a03c6 index unified_job.status
this is a fairly importantj column that we join on for a number of
queries throughout AWX, particularly the task scheduler and analytics
2019-03-29 12:59:43 -04:00