John Westcott IV
62fc3994fb
Modifying SAML adapter to not auto-add default galaxy creds to orgs on login ( #12504 )
...
* Modifying SAML adapter to not auto-add default galaxy creds to orgs on login
* Adding test, fixing old tests and moving add_default_galaxy_credential to pipeline
2022-07-25 17:16:22 -03:00
Jeff Bradberry
a3a216f91f
Fix up new Django 3.0 deprecations
...
Mostly text based: force/smart_text, ugettext_*
2022-03-07 18:11:36 -05:00
Hideki Saito
9e74ac24fa
Fixed Org mapping behavior with SAML when Ansible Galaxy cred does not exist
...
- Fixes #10879
- Fixes ansible/tower#5061
Signed-off-by: Hideki Saito <saito@fgrep.org >
2021-09-16 23:25:50 +09:00
Christian M. Adams
06b04007a0
Rename managed_by_tower to managed
2021-06-22 10:49:36 -04:00
Ryan Petrello
8ea247123a
automatically setup default Galaxy credentials on SAML login
2021-04-07 10:19:19 -04:00
Ryan Petrello
c2ef0a6500
move code linting to a stricter pep8-esque auto-formatting tool, black
2021-03-23 09:39:58 -04:00
Jeff Bradberry
5bec4a51c6
Undo the polymorphic.SET_NULL for Organization
...
It isn't polymorphic.
2021-03-11 15:50:57 -05:00
Jeff Bradberry
e31fc37215
Make sure that EE foreign keys are polymorphic.SET_NULL
...
Deleting EEs that had been attached to something was failing.
2021-03-11 11:25:59 -05:00
Rebeccah
41fb21911e
add execution_environment_admin_role to the an organizations read role, which access.py uses for determining access to reading an ee within an organization,
...
add migration file for execution_env_admin role addition to read_roles within an organization,
and set check related to mandatory
2021-03-03 18:52:55 -05:00
Jeff Bradberry
c1133b3f6d
Add in more model changes around execution environments
...
- a new unique name field to EE
- a new configure-Tower-in-Tower setting DEFAULT_EXECUTION_ENVIRONMENT
- an Org-level execution_environment_admin_role
- a default_environment field on Project
- a new Container Registry credential type
- order EEs by reverse of the created timestamp
- a method to resolve which EE to use on jobs
2021-03-03 18:52:54 -05:00
Jeff Bradberry
41613ff544
Add a new ExecutionEnvironment model
2021-03-03 18:52:53 -05:00
Ryan Petrello
b8e0d087e5
add model support, an API, and a migration for Org -> Galaxy credentials
...
see: https://github.com/ansible/awx/issues/7813
2020-09-01 13:44:59 -04:00
AlanCoding
daa9282790
Initial (editable) pass of adding JT.organization
...
This is the old version of this feature from 2019
this allows setting the organization in the data sent
to the API when creating a JT, and exposes the field
in the UI as well
Subsequent commit changes the field from editable
to read-only, but as of this commit, the machinery
is not hooked up to infer it from project
2020-03-12 15:45:46 -04:00
beeankha
1ddf9fd1ed
Fix up models, clean up code re: PR comments
2019-09-27 15:48:00 -04:00
Ryan Petrello
0522d45ab0
fixed a few issues related to approval role RBAC for normal users
2019-08-27 15:36:23 -04:00
beeankha
294d6551b9
Polishing up work on new endpoint
2019-08-27 15:30:48 -04:00
beeankha
320284267c
Add new endpoint for creation of approval nodes
2019-08-27 15:30:47 -04:00
AlanCoding
1223148116
Avoid unnecessary user get expiring session memberships
2019-05-17 14:05:17 -04:00
Ryan Petrello
e4a50f3595
enforce a stable list order when attaching/detaching instance groups
2019-05-07 14:53:00 -04:00
AlanCoding
8c2b3e9b84
Fix Django 2.0 deprecation warnings
2019-04-22 14:17:14 -04:00
softwarefactory-project-zuul[bot]
ef1a5c09b6
Merge pull request #3510 from jbradberry/errors-on-change-password
...
Use Django's own logic to invalidate sessions of users when changing passwords
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-04-05 14:54:20 +00:00
Ryan Petrello
c586fa9821
add a minimal framework for generating analytics/metrics
...
annotate queries & add license analytics
2019-03-27 19:53:00 -04:00
Jeff Bradberry
f2be4de544
Use Django's own logic to invalidate sessions of users when changing passwords
...
The key is django.contrib.auth.update_session_auth_hash(), which knows
how to inject a recalculated session hash back into the session if the
requesting user is changing their own password, in order to keep that
user logged in.
2019-03-27 10:06:13 -04:00
Jeff Bradberry
5e13da62a4
Added a max_hosts field to Organization
...
in order to optionally set a limit to the number of hosts an
organization that is sharing a license is allowed to manage.
related #1542
2019-02-28 15:51:50 -05:00
AlanCoding
fbf6315a8c
remove star imports in tasks and non-base models
2019-02-12 19:50:30 -05:00
AlanCoding
e044b996e5
allow adding teams to org object roles
2018-07-09 14:13:57 -04:00
Wayne Witzel III
2f78c658b1
Add explicit Job Template Admin role
2018-07-09 10:57:58 -04:00
AlanCoding
c88303ca67
revert change to allow org members to see teams
2018-04-26 13:37:08 -04:00
AlanCoding
d2ec880cad
allow org members to see teams in org
2018-04-03 07:41:06 -04:00
AlanCoding
7881c921ac
block deletion of resources w unprocessed events
2018-03-16 10:14:28 -04:00
Chris Meyers
2640ef8b1c
Merge pull request #1536 from chrismeyersfsu/fix-protect_instance_groups
...
prevent instance group delete if running jobs
2018-03-15 14:57:45 -04:00
chris meyers
5d5d8152c5
prevent instance group delete if running jobs
...
* related to https://github.com/ansible/ansible-tower/issues/7936
2018-03-15 14:25:49 -04:00
Wayne Witzel III
db38cf8f93
Fix member_role parent to include credential_admin_role
2018-03-13 12:20:40 -04:00
Alan Rominger
ee0e239a9e
Merge pull request #1374 from AlanCoding/your_name
...
More consistent representations of model objects
2018-02-28 09:08:29 -05:00
adamscmRH
40d563626e
removes authtoken
2018-02-27 16:12:13 -05:00
AlanCoding
bacd895705
more consistent representations of model objects
2018-02-27 12:18:57 -05:00
Aaron Tan
1c2621cd60
Implement session-based and OAuth 2 authentications
...
Relates #21 . Please see acceptance docs for feature details.
Signed-off-by: Aaron Tan <jangsutsr@gmail.com >
2018-02-22 15:18:12 -05:00
Wayne Witzel III
2c71a27630
Merge pull request #1123 from wwitzel3/new-permissions
...
New RBAC Roles
2018-02-15 16:56:03 -05:00
cclauss
2e623ad80c
Change unicode() --> six.text_type() for Python 3
2018-02-11 21:09:12 +01:00
Wayne Witzel III
819b318fe5
Add Org Execute
2018-02-10 02:52:26 +00:00
Wayne Witzel III
9e7bd55579
Add Notification Admin
2018-02-10 02:52:26 +00:00
Wayne Witzel III
b478740f28
Add Workflow Admin
2018-02-10 02:52:25 +00:00
Wayne Witzel III
109841c350
Add Credential Admin role
2018-02-10 02:52:25 +00:00
Wayne Witzel III
e7e83afd00
Add Project Admin role
2018-02-10 02:52:25 +00:00
Ryan Petrello
1e8c89f536
implement support for per-playbook/project/org virtualenvs
...
see: https://github.com/ansible/awx/issues/34
2018-01-09 22:47:01 -05:00
Wayne Witzel III
723449818d
Fix issue when per user tokens are disabled
2017-09-22 15:58:26 -04:00
AlanCoding
4d41e31639
delay token expiration update to on_commit
2017-08-21 16:56:07 -04:00
Matthew Jones
4ced911c00
Implementing models for instance groups, updating task manager
...
* New InstanceGroup model and associative relationship with Instances
* Associative instances between Organizations, Inventory, and Job
Templates and InstanceGroups
* Migrations for adding fields and tables for Instance Groups
* Adding activity stream reference for instance groups
* Task Manager Refactoring:
** Simplifying task manager relationships and move away from the
interstitial hash tables
** Simplify dependency determination logic
** Reduce task manager runtime complexity by removing the partial
references and moving the logic into the task manager directly or
relying on Job model logic for determinism
2017-05-10 12:32:54 -04:00
Wayne Witzel III
11eb99820d
Initial pass of removing RBAC deprecated fields and Permission
2017-05-02 22:38:34 -04:00
Ryan Petrello
95ea370e5e
add API versioning for /api/v2/
2017-03-30 15:11:12 -04:00