Ryan Petrello
4cbdeb0d30
don't allow private key passphrases for unencrypted private ssh keys
...
see: #5311
2017-02-15 12:27:27 -05:00
Ryan Petrello
28f3f178f0
only allow single selection for LOG_AGGREGATOR_TYPE
...
see: #5000
2017-02-14 17:06:44 -05:00
Ryan Petrello
045994a472
properly detect the backend name in failed social_auth callbacks
...
don't assume that the callback URL contains the correct social_auth
backend name; instead, store it temporarily in the session at
`/login/sso/`
see: #5324
2017-02-14 16:19:39 -05:00
Ryan Petrello
ee8c82df4a
fix a test that fails due to a race between async logging requests
2017-02-14 15:18:03 -05:00
Ryan Petrello
cae8950723
don't cache social-auth-core backends
...
social-auth-core uses a global variable to cache backend settings:
https://github.com/python-social-auth/social-core/blob/78da4eb201dd22fd2d8a4e38a1d17a73beabad24/social_core/backends/utils.py#L9
when loading backends, forcibly ignore this behavior to avoid
a thread-safety issue that causes #4788 #4045
2017-02-14 11:35:42 -05:00
Ryan Petrello
5a8a647cf0
default log aggregator username and password to an empty string
...
other configuration options seem to follow this pattern; the UI code
seems to expect that it can send across an empty string
see: #5276
2017-02-13 16:09:31 -05:00
Ryan Petrello
64a973ae02
work around a unicode handling bug in python-memcached that affects py2
...
see: https://github.com/linsomniac/python-memcached/issues/79
see: #5276
2017-02-13 16:09:31 -05:00
Ryan Petrello
2c7cb4a370
add utf-8 support to utils.common.encrypt_field/decrypt_field
2017-02-13 16:09:31 -05:00
Ryan Petrello
1ebb641c1e
work around a DRF issue that causes CharField to cast None to "None"
...
see: #5322
2017-02-13 12:43:13 -05:00
Ryan Petrello
a69815faa0
fix a typo in a log handler test
2017-02-09 15:50:28 -05:00
Ryan Petrello
cee0b29fef
clarify a logging handler docstring
2017-02-09 15:16:58 -05:00
Ryan Petrello
1b9a2e4a36
correctly set the Authorization header for non-async log handling
...
see: #5276
2017-02-09 15:14:39 -05:00
Ryan Petrello
4932310ad1
map docker container ports to allow access easier to memcache
...
this eases memcached interaction from your host, e.g.,
$ echo "get :1:LICENSE" | nc localhost 11211
2017-02-09 11:00:06 -05:00
Ryan Petrello
56433fd2ca
move log handling tests from functional -> unit
2017-02-08 16:34:06 -05:00
Ryan Petrello
669012138e
refactor utils.handlers.HTTPSHandler's usage of django settings
2017-02-08 16:34:00 -05:00
Ryan Petrello
2c447942d5
add tests for our custom log aggregator/handler
2017-02-08 14:19:32 -05:00
Ryan Petrello
34492d677d
remove unnecessary hashes included in "CUSTOM_LOGO" help text
...
see: #5239
2017-02-08 13:46:55 -05:00
Ryan Petrello
866fe7e265
only loop over project OPTIONS response if the response is valid
...
see: #5194
2017-02-07 16:15:03 -05:00
Ryan Petrello
52ff35ab3f
fix a CTinT bug in static config parsing
...
see: #5223
2017-02-07 14:42:04 -05:00
Ryan Petrello
f4d55659f0
enforce a sane default OPT_NETWORK_TIMEOUT for LDAP connections
...
see: #5208
2017-02-07 12:37:05 -05:00
Ryan Petrello
ea4682e782
catch and log LDAP auth plugin misconfigurations
...
see: #5204
2017-02-06 16:27:22 -05:00
Ryan Petrello
8615c1e999
add the max_page_size value to the OPTIONS response for list views
...
see: #4356
2017-02-06 15:18:42 -05:00
Ryan Petrello
80ac25f26b
only hide scm revision for manual projects if the key already exists
...
see: #5141
2017-02-06 12:16:23 -05:00
Ryan Petrello
5bd670291b
default certain LDAP settings to None instead of an empty string
...
Related: #5148 #4678
2017-02-02 13:06:59 -05:00
Ryan Petrello
afc0f16e58
add a field to OPTIONS that tells if the setting came from a .py file
...
additionally, update help_text with a helpful message about this
See: #4876
2017-02-02 12:47:53 -05:00
Ryan Petrello
58d19ea654
add tests for encryption/decryption in awx.main.utils.common
2017-02-01 16:24:18 -05:00
Ryan Petrello
9d98ac5e37
clean up a few complicated mocks
2017-02-01 12:56:20 -05:00
Ryan Petrello
557bc8006d
automatically encrypt/decrypt CTinT settings that are stored in memcached
...
addresses #4246
2017-02-01 12:53:10 -05:00
Ryan Petrello
f4a21a2650
don't stringify source_vars['private'] for Openstack inventory updates
...
shade's OS_CLIENT_CONFIG_FILE expects the generated YAML value to be
a boolean, not a stringified boolean
Addresses #5030
2017-01-31 14:57:12 -05:00
Ryan Petrello
51b50ce735
map docker container ports to allow usage of celery.contrib.rdb
...
http://docs.celeryproject.org/en/latest/reference/celery.contrib.rdb.html
allows you to remotely debug running celery tasks with:
from celery.contrib import rdb
rdb.set_trace()
this will bind a remote Python debugger on a random TCP port between
6899-6999, which you can telnet into for remote task debugging
2017-01-31 09:13:07 -05:00
Ryan Petrello
73cbcc2de0
add awx.conf tests to our various test run environments
2017-01-30 12:37:17 -05:00
Ryan Petrello
d6857cf65a
add some more inline comments and minor refactoring to awx.conf
2017-01-30 12:37:17 -05:00
Ryan Petrello
836ca21b7e
add unit tests for awx.conf
2017-01-30 12:37:11 -05:00
Ryan Petrello
4fcc74012d
display read-only settings in the API settings endpoint
...
References #4665
2017-01-30 10:09:15 -05:00
Ryan Petrello
f061505895
move the uwsgi master FIFO from /tmp/awxfifo to /var/lib/awx/awxfifo
...
Resolves #4900
2017-01-25 16:37:11 -05:00
Ryan Petrello
f347bc5ae4
fix a typo that results in a NameError
...
Resolves #4861
2017-01-25 14:08:49 -05:00
Ryan Petrello
e7c5dfeaa4
fix a bug which causes activitystream actor assignment to be invalid
...
Resolves #4660
2017-01-25 11:45:12 -05:00
Ryan Petrello
0bcbaa5c86
allow certain LDAP settings fields to be nullable
...
necessary to completely resolve #4678
2017-01-24 09:31:44 -05:00
Ryan Petrello
40a5c6cc0b
fix an LDAP settings bug which can cause LDAP auth to fail
...
django-ldap-auth expects the "unset/empty" state of certain LDAP DN
settings (such as AUTH_LDAP_REQUIRE_GROUP and
AUTH_LDAP_USER_DN_TEMPLATE) to be NULL/None (not an empty string).
Resolves #4678
2017-01-23 15:35:23 -05:00
Ryan Petrello
afe3f1f8af
fix non-prettified extra vars on the Hosts Edit UI
...
this seems to be a duplicate of #3333 , only in a different
location.
Resolves #4700
2017-01-19 13:49:21 -05:00
Ryan Petrello
da66c3f2b8
Revert "add a test for maximum page size enforcement"
...
This reverts commit af8e6f939ff2d3ecf4658e82777dcd35c0d288a8.
This test seems to leak django.conf.settings between tests (causing the
suite to fail periodically). Rolling this back until I can figure out
why.
2017-01-19 13:08:44 -05:00
Ryan Petrello
a42216f5e2
add a test for maximum page size enforcement
...
Resolves #4356
2017-01-18 16:52:22 -05:00
Ryan Petrello
d418e41f7e
Properly encode prev/next pagination links when URL contains unicode chars.
...
Resolves #4767
2017-01-18 12:43:27 -05:00
Ryan Petrello
9e09fd38a7
Properly parse subversion revision info.
...
The ansible subversion module returns revision info in an unanticipated format:
https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/source_control/subversion.py#L194-L199
Parse out the revision number we actually care about.
Resolves #4654
2017-01-17 10:04:30 -05:00