Commit Graph

2343 Commits

Author SHA1 Message Date
tomdds
9712e6896e Return True from suspend and delete CSP calls 2019-08-29 17:20:35 -04:00
tomdds
cce25679a4 Define potential structure for admin user return type 2019-08-29 17:03:00 -04:00
tomdds
0451dce8cf Pass credentials to each CSP method rather than an abstract auth object 2019-08-29 17:01:51 -04:00
tomdds
776887686c Generalize baseline provisioning method signature 2019-08-29 16:51:44 -04:00
tomdds
1fe9399f99 Update CloudProviderInterface for provision job consumption 2019-08-29 14:06:18 -04:00
richard-dds
922a48f76a Fix download link generation 2019-08-29 13:24:48 -04:00
dandds
2b11debe5d Merge pull request #1041 from dod-ccpo/use-celery
Use Celery instead of RQ.
2019-08-29 13:17:27 -04:00
richard-dds
e8234dcf34 Allow user to download files on TO upload page 2019-08-29 11:28:49 -04:00
richard-dds
acc821a475 Fix generate_download_link implementations 2019-08-29 11:28:40 -04:00
richard-dds
b7fbe9d2ac Use underscores in urls 2019-08-29 11:10:05 -04:00
richard-dds
04b77c113c Formatting 2019-08-29 10:12:02 -04:00
richard-dds
96f1c0d295 AWS downloads 2019-08-29 10:12:02 -04:00
richard-dds
b182307174 Azure file downloads 2019-08-29 10:12:02 -04:00
graham-dds
094e44a6b0 Merge pull request #1045 from dod-ccpo/bugfix-remove-member
Bugfix: Use correct path to full_name
2019-08-29 10:08:41 -04:00
dandds
d7478e322a Use Celery instead of RQ.
Celery provides a more robust set of queueing options for both tasks and
worker processes. Updates include:
- infrastructure necessary to run Celery, including celery entrypoint
- backgrounded functions are now imported directly from atst.jobs
- update tests as-needed
- update kubernetes worker pod command
2019-08-29 09:33:47 -04:00
graham-dds
3e9c082ac5 Use correct path to full_name
The full_name property is on the portfolio_role, not an intermidiate
user property
2019-08-29 09:20:24 -04:00
richard-dds
f54e673520 Remove unused imports 2019-08-28 15:56:55 -04:00
richard-dds
bb9d76dd09 Fix Vue tests 2019-08-28 15:56:55 -04:00
richard-dds
67a4bb602d Require portfolio id in upload-token
It's necessary for the authz decorator
2019-08-28 15:56:55 -04:00
richard-dds
0e593a77f1 Add permission check to upload_token route 2019-08-28 15:06:20 -04:00
richard-dds
85ba61b97b Formatting 2019-08-28 15:06:20 -04:00
richard-dds
27e0e16707 Require auth on upload-token 2019-08-28 15:06:20 -04:00
richard-dds
7d1dfa1d0e Get presigned upload token via ajax request 2019-08-28 15:06:13 -04:00
leigh-mil
0cbd971c11 Merge pull request #1032 from dod-ccpo/dont-include-last-login-update-in-auditlog
Do not create AuditEvent if updating the User.last_login
2019-08-19 11:26:36 -04:00
leigh-mil
2776926dea Move custom audit log logic into the User class 2019-08-19 10:25:26 -04:00
leigh-mil
1efe9cb5e4 Merge pull request #1023 from dod-ccpo/csp-links
Env roles bug fix
2019-08-19 09:43:54 -04:00
leigh-mil
0d6f7aa3cc Do not create AuditEvent if updating the User.last_login 2019-08-16 16:41:58 -04:00
dandds
24b2d95f03 Application members should not see deleted applications.
This updates the `Portfolios.for_user` method to screen out deleted
ApplicationRole entities. For extra assurance, we also mark application
roles as disabled when they are deleted.
2019-08-15 10:20:30 -04:00
leigh-mil
c37c5d72b9 move data property into the base EnvironmentForm so that NO_ACCESS is converted to None when creating a new application member 2019-08-15 10:13:34 -04:00
dandds
16c9b826b3 Merge pull request #1019 from dod-ccpo/upload-error-handling
Add validations and error states for TO upload form
2019-08-14 14:30:46 -04:00
richard-dds
56cec0694f Formatting 2019-08-14 11:40:23 -04:00
richard-dds
a7417b4f39 Add upload errors to translations file 2019-08-14 11:35:07 -04:00
leigh-mil
e59e3b959c Add listener to User model to record permission set updates and update user audit log template 2019-08-13 16:36:38 -04:00
leigh-mil
b26d8d575c Merge pull request #1011 from dod-ccpo/remove-ccpo-user
Remove CCPO user
2019-08-13 16:29:07 -04:00
leigh-mil
852046a3e7 Change variable name from data to user_info because it was more descriptive 2019-08-13 16:23:11 -04:00
leigh-mil
87b173b035 Use tuple instead of a dict for the user data and form 2019-08-13 14:09:53 -04:00
richard-dds
6652d47104 Add custom message for object_name length validation 2019-08-13 13:58:36 -04:00
richard-dds
bc0fd4900a Prevent "there were some errors" from being flashed twice 2019-08-13 10:51:09 -04:00
richard-dds
71bb1be130 Validate filename and object_name for TO PDF upload 2019-08-13 10:51:09 -04:00
leigh-mil
7c65783d08 Add csrf token to remove ccpo user form 2019-08-13 10:32:26 -04:00
leigh-mil
e35399d8f5 Update route function to revoke CCPO superuser status 2019-08-13 10:32:26 -04:00
leigh-mil
54239a520e Add revoke access button and modal, sketch out route function for removing cppo perms from a user 2019-08-13 10:17:24 -04:00
tomdds
0410d82359 Merge pull request #1018 from dod-ccpo/new-user-dev
Allow creation of new users in dev mode
2019-08-13 10:13:56 -04:00
tomdds
59f43c69ee Only populate passed info when creating new user 2019-08-12 10:14:49 -04:00
tomdds
f6447d49e0 Allow creation of new users in dev mode 2019-08-09 16:01:32 -04:00
leigh-mil
fa83dfe6bd When user not found, redirect to users page and show flash message 2019-08-09 11:08:23 -04:00
leigh-mil
1783cd494d Add max length to dod id field in CCPO user form 2019-08-09 11:08:23 -04:00
leigh-mil
864e11ea11 Remove redundant 'ccpo' from ccpo route function names 2019-08-09 11:08:23 -04:00
leigh-mil
feb24b8e16 Break class method for ccpo perms into two methods instead of switching on a kwarg to determine if perms are given or removed 2019-08-09 11:08:23 -04:00
leigh-mil
0b2c7f5957 Remove unused imports and context processor 2019-08-09 11:08:23 -04:00