Commit Graph

1408 Commits

Author SHA1 Message Date
Matthew Jones
b1cbdd3a09 Remove tower settings filter 2016-01-12 15:26:23 -05:00
Matthew Jones
eab8743e15 Purge Tower Settings reference from activitystream 2016-01-12 13:52:29 -05:00
Matthew Jones
84c2e71907 Merge pull request #541 from matburt/database_config_source
Database config source
2016-01-12 11:20:43 -05:00
Matthew Jones
272e5829f2 Setup instance during settings unit tests 2016-01-12 09:25:09 -05:00
Matthew Jones
393c4c558c pyflakes fix 2016-01-11 16:42:12 -05:00
Matthew Jones
f366b34847 Adding database config unit tests 2016-01-11 16:01:16 -05:00
Matthew Jones
71c7dc16e3 Removing stray debug statement 2016-01-05 14:59:04 -05:00
Matthew Jones
ae12be9afa Fixing up settings reset issue
This is done by not assigning the ActivityStream foreign key.  Which is
almost superflous at this point
2016-01-05 14:34:40 -05:00
Matthew Jones
d2f99ad549 Handle operationalerror for unit tests 2015-12-17 14:00:17 -05:00
Matthew Jones
74c06cfc92 Fix up migration path
These settings aren't available during the initial database migration so
we'll use the defaults when bootstrapping the database
2015-12-17 13:13:12 -05:00
Matthew Jones
b59e4d8111 Fix up some flake8 import issues 2015-12-17 11:34:01 -05:00
Matthew Jones
0e98491dac Remove PROJECTS_ROOT and JOBOUTPUT_ROOT from stngs 2015-12-17 11:22:45 -05:00
Matthew Jones
910f9bd4a3 Fixing up some flake8 issues 2015-12-17 10:48:15 -05:00
Matthew Jones
9db80bd9fc Support tower license within the database
With backwards support for the file-based license
2015-12-16 11:21:52 -05:00
Matthew Jones
35b19bf220 Update settings references
* PROOT
* Pendo tracking state
* ad hoc commands
* activity stream
* org admin visibility
2015-12-15 16:44:08 -05:00
Matthew Jones
0404f6ebc3 Add a note about caching 2015-12-15 16:42:32 -05:00
Matthew Jones
dfd1ca4ae9 Relocate AUTH_TOKEN_* settings reference 2015-12-15 15:37:26 -05:00
Matthew Jones
e97e60bd30 Update settings location for certain values
* PROJECTS_ROOT
* JOBOUTPUT_ROOT
* SCHEDULE_MAX_JOBS
* STDOUT_MAX_BYTES_DISPLAY
2015-12-15 15:14:16 -05:00
Matthew Jones
16aa34522c Fix up an export issue for tower_settings 2015-12-15 15:13:58 -05:00
Matthew Jones
7867a58c00 RBAC and settings reset
* Initial super-user only rbac with notes for future user-settings
  support
* Clearing individual and all settings back to defaults
2015-12-15 12:12:54 -05:00
Matthew Jones
273181e894 Expand dbconfig support
* Support updating settings values
* Support activity stream endpoint
* Support clearing value
* Improve type conversion system for displaying values
2015-12-14 15:09:10 -05:00
Matthew Jones
f53f3d805d View and some validation logic for database config
* Fixing some bugs in the manifest definition
* Database model and schema migration for tower settings
* Initial View and Serializer implementation using a strategy of merging
  model instances and named tuples
2015-12-11 16:57:11 -05:00
Chris Church
8552ea91a8 Add sample config for LDAP connection options, disable referrals by default, prefetch user groups to reduce LDAP queries when checking group memberships. 2015-12-11 15:00:20 -05:00
Matthew Jones
fdcda43de6 Initial Database Configuration bootstrap
* Settings manifest, mapping internal settings to what can be used in
  the database along with type information etc.
* Initial Database model
* Helper object that overlays database settings on django settings
2015-12-07 09:49:13 -05:00
Matthew Jones
780b27e0ed Don't hard-fail if default isn't defined on survey 2015-12-02 15:40:56 -05:00
Matthew Jones
e79db58b6d Allow an org admin to delete project updates
Only in their purview (where they can delete or change the original
project)

Plus a bonus unit test!
2015-12-01 16:02:10 -05:00
Matthew Jones
f33e17826f Disable elasticache instance gathering for aws 2015-12-01 14:45:35 -05:00
Matthew Jones
5d3da1460f Fixing up flake8 2015-11-30 11:13:37 -05:00
Matthew Jones
3d30ad2db2 Updates for fixes on the core ec2 inventory module
Inventory syncs will still fail if you specify an instance_filter.  We
need to check:

https://github.com/ansible/ansible/pull/13178

For the moment I'm making sure we specifically disable elasticache
querying but it still yields an error.

Will follow up with:

https://trello.com/c/h1U0w4WC/138-ec2-module-is-busted-if-you-set-instance-filters
2015-11-23 14:22:36 -05:00
Matthew Jones
7ffbb2dac6 Don't save the instance in set_actor if the user is invalid 2015-11-18 07:27:52 -05:00
Matthew Jones
98965d4792 Fix typo in AnonymousUser 2015-11-17 12:46:50 -05:00
Matthew Jones
564f9e2c58 Fix an issue reauthing as a social auth user
If a social auth user is deleted and then attemnpts to relogin after the
old user object has been removed then it can cause an error.  So here
we'll add an extra lookup for the user just to verify
2015-11-17 12:42:33 -05:00
Chris Church
cd447bed96 Social auth and SSO updates:
* Move auth backends into sso app.
* Add support for mapping social auth users into organizations and teams.
* Return social auth backends in a consistent order in the API.
* Remove custom SAML attribute mapping and use options provided by PSA.
* Add pipeline function to raise an exception if no user has been found or created; added comments on how to disable new user creation.
* Add comments for defining a custom social auth pipeline function.
2015-11-13 11:30:55 -05:00
Chris Meyers
97c56d451e allow multi-org expired licenses to delete orgs 2015-11-12 15:33:00 -05:00
Matthew Jones
5f321ecab6 Emit a warning for unmapped SAML paramters 2015-11-11 16:05:53 -05:00
Matthew Jones
fdc9979595 Fix up some SAML issues
* Fix an issue I created overriding authenticate
* Fix up attribute mapping using an identity provider class.  The
  methods built into django-social-auth for saml are probably not going
  to work.  We also now expose those mappings in a settings attrs map
  that the user can override.
2015-11-10 11:58:42 -05:00
Chris Meyers
3f4913f5ab adds socket tests 2015-11-06 10:30:56 -05:00
Chris Meyers
dbbfde0d25 fixes remove_instance error
* Initialize object attribute to None so a later if check that depends
on that attributes succeeds. The attribute is related to unifying the
command line args to the *_instance command set.
* Added regression test case
2015-11-06 07:19:09 -05:00
Chris Meyers
5845730cf6 Merge pull request #485 from chrismeyersfsu/fix-openstack_jt
add openstack cred file to env for jt launch
2015-11-05 11:28:26 -05:00
James Laska
abed41d390 Reword log msgs for enterprise_auth failures 2015-11-05 09:50:08 -05:00
Matthew Jones
f78f69159d Fix up pyflakes indentation issues 2015-11-04 09:50:50 -05:00
Chris Meyers
3a8044754c add openstack cred file to env for jt launch 2015-11-03 09:37:38 -05:00
Matthew Jones
113c5ed78f Clean up authenticate and get_user for ldap auth 2015-11-02 12:02:14 -05:00
Matthew Jones
dd29bc40d9 Add logging and improve validation for certain auth backends
* Abstract authention to provide a hook for emitting an error message
* Perform some license validation that wasn't present before for
  enterprise licenses
2015-11-02 11:59:17 -05:00
Matthew Jones
4603ac5d1c Change dependent job failure message entity ref.
Originally we were looking at the underlying project/inventory update
but we are now populating the name of project updates and inventory
updates a lot better so we'll just take their names
2015-10-22 10:49:42 -04:00
Matthew Jones
152ddc4f4f Rename task_ to job_ for pre-task fail error 2015-10-20 21:32:45 -04:00
Matthew Jones
b579b76099 Handle playbook_on_include events from v2 ansible 2015-10-20 11:18:07 -04:00
Matthew Jones
b25413002c Fix custom inventory scripts on org deletion
We'll now clear the organization for it, this requires a database
migration to accept null values for custom inventory scripts
2015-10-19 12:07:09 -04:00
Chris Meyers
f051c13374 list cust inv scripts with deleted orgs 2015-10-14 07:36:32 -05:00
Matthew Jones
fd33d7df58 Tweak proj rbac for orphaned projects
Slight tweak to the rbac for projects related to the user who created
them.  IF a user created a project but it is orphaned/not associated
with an organization then they will be able to see/change it.  If,
however, it is created and associated with an organization and then they
are removed as an org admin they will no longer have access to it.
2015-10-13 16:42:12 -04:00