Ryan Petrello
306f504fb7
optimize the callback receiver to buffer writes on high throughput
...
additionaly, optimize away several per-event host lookups and
changed/failed propagation lookups
we've always performed these (fairly expensive) queries *on every event
save* - if you're processing tens of thousands of events in short
bursts, this is way too slow
this commit also introduces a new command for profiling the insertion
rate of events, `awx-manage callback_stats`
see: https://github.com/ansible/awx/issues/5514
2020-01-14 12:04:26 -05:00
Shane McDonald
2f77c67a62
Changes to enable tests in k8s
2019-05-28 13:22:15 -04:00
AlanCoding
07def62373
clear the test cache at end of every test
2019-02-20 14:02:36 -05:00
Ryan Petrello
daeeaf413a
clean up unnecessary usage of the six library (awx only supports py3)
2019-01-25 00:19:48 -05:00
Ryan Petrello
f223df303f
convert py2 -> py3
2019-01-15 14:09:01 -05:00
Ryan Petrello
28cd762dd7
properly validate cert data that happens to contain an END substring
2018-11-06 15:57:35 -05:00
Ryan Petrello
6ff1fe8548
allow users to specify BROKER_URL with passwords that contain : and @
2018-10-16 11:56:57 -04:00
Ryan Petrello
28a42850a2
allow AUTH_LDAP_USER_FLAGS_BY_GROUP to specify an OR'd list for a flag
...
see: https://github.com/ansible/tower/issues/968
2018-05-23 14:45:46 -04:00
AlanCoding
ac20aa954a
Replace logging-related restart with dynamic handler
...
refactor existing handlers to be the related
"real" handler classes, which are swapped
out dynamically by external logger "proxy" handler class
real handler swapout only done on setting change
remove restart_local_services method
get rid of uWSGI fifo file
change TCP/UDP return type contract so that it mirrors
the request futures object
add details to socket error messages
2018-05-02 09:47:22 -04:00
Matthew Jones
9dbcc5934e
Merge remote-tracking branch 'tower/release_3.2.2' into devel
2017-12-13 12:25:47 -05:00
Ryan Petrello
4187d02b8a
make settings.AWX_ISOLATED_KEY_GENERATION readonly
...
see: https://github.com/ansible/ansible-tower/issues/7380
2017-11-16 13:35:37 -05:00
Alan Rominger
ad0e43dc52
Merge pull request #379 from AlanCoding/awx160
...
Enforce max line length of 160 characters
2017-10-12 14:05:31 -04:00
AlanCoding
f03b40aa50
enforce max line length of 160 characters
2017-10-11 12:38:39 -04:00
Aaron Tan
9dd4c7aaa3
Add extra encoding to ldap_dn verification
...
Relates #391 .
Upstream `python-ldap` (surprisingly) does not support utf-8 DN. So
explicit encoding is needed.
Signed-off-by: Aaron Tan <jangsutsr@gmail.com >
2017-10-11 12:28:26 -04:00
Aaron Tan
1e77f909a5
Force providing TACACSPLUS_SECRET when TACACSPLUS_HOST is set
2017-08-07 12:12:05 -04:00
Ryan Petrello
b4d69cb5c7
don't delete settings that are marked as read_only
2017-08-04 10:06:35 -04:00
Ryan Petrello
568986b39f
force isolated timeout settings to be positive integers
...
see: https://github.com/ansible/ansible-tower/issues/7328
2017-07-28 12:24:21 -04:00
Matthew Jones
8e8324983b
Merge branch 'license_module_switch' into devel
...
* license_module_switch:
Hide eula if stub license is used
Fix up some issues on feature validation for licenses
Remove any references to internal licensing utilities
Switch out existing obfuscated license with external module
2017-07-13 11:08:47 -04:00
Matthew Jones
c1ce79d0a5
Fix up some issues on feature validation for licenses
...
Also purging and fixing up some unit test behavior
2017-07-13 10:27:43 -04:00
Matthew Jones
96a9d048b8
Remove any references to internal licensing utilities
2017-07-12 16:20:35 -04:00
Ryan Petrello
6996b16d5a
add additional field validation to AWX_TASK_ENV
...
AWX_TASK_ENV should only allow simple key-value assignment (since we're
using it to set environment variables).
see: #3508
2017-07-10 17:29:38 -04:00
Ryan Petrello
1c066d478b
substitute "$encrypted$" for actual password on logging config test
...
see: #6780
2017-07-03 12:14:43 -04:00
AlanCoding
c1ff41fa45
get logging test endpoint to work again
...
The handler and formatter classes are expecting an object
and the previous method passed a dict, so this change converts
the data into a mock settings object.
2017-06-28 15:10:18 -04:00
Aaron Tan
8d2ee8c30f
Refactor log handler and support TCP/UDP communications
2017-04-25 11:07:57 -04:00
AlanCoding
ec21505fea
update test to fact that logger port is not required
2017-04-03 11:56:41 -04:00
Ryan Petrello
95ea370e5e
add API versioning for /api/v2/
2017-03-30 15:11:12 -04:00
Ryan Petrello
8c1de7f109
add an API endpoint for testing external log aggregrator connectivity
...
see: #5164
2017-03-09 13:19:56 -05:00
Ryan Petrello
94ad12ab0d
set the default in OPTIONS for TOWER_URL_BASE to the request hostname
...
see: #5470
2017-02-22 11:16:08 -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
Chris Church
41553c879c
Make AWX_PROOT_HIDE_PATHS, AWX_PROOT_SHOW_PATHS and AWX_ANSIBLE_CALLBACK_PLUGINS not required.
2017-01-20 16:02:33 -05:00
Chris Church
6a02ca1de0
Add support for encrypting settings that are passwords.
2016-11-30 11:22:39 -05:00
Chris Church
2efe178fd4
Flake8 can suck it.
2016-11-29 21:30:40 -05:00
Chris Church
934da3c425
Allow specifying multiple LDAP servers.
2016-11-28 16:54:16 -05:00
Chris Church
a35ed0a09d
Add support for CUSTOM_LOGO and CUSTOM_LOGIN_INFO settings, add support to migrate from local_settings.json and custom_console_logo.png.
2016-11-21 15:33:07 -05:00
Aaron Tan
2d1a5425d1
Fix flake8 E302 errors second round.
2016-11-16 09:56:07 -05:00
Aaron Tan
9e4655419e
Fix flake8 E302 errors.
2016-11-15 20:59:39 -05:00
Chris Meyers
0efe8e9cfb
fix license test
...
so that the license file on dev machines isn't accidentally picked up
2016-11-11 14:43:00 -05:00
AlanCoding
8d89d68d5e
flake8 fixes for Jenkins
2016-10-14 09:46:41 -04:00
Chris Church
0992e354e3
Prevent removing license via PUT/PATCH/DELETE to /api/v1/settings/system/.
2016-10-07 14:13:51 -04:00