Commit Graph

519 Commits

Author SHA1 Message Date
dandds
de7c69bde7 apply access decorator to routes 2019-03-22 06:30:21 -04:00
dandds
0ea21fbb9b remove access checks from domain methods 2019-03-22 06:30:02 -04:00
dandds
c4b4cc0912 update atat-wide permission sets 2019-03-21 05:38:28 -04:00
dandds
7c5e931c67 throw error for missing permission_sets in PermissionSets.get_many 2019-03-21 05:38:28 -04:00
dandds
366ada5a90 check sitewide perms for portfolio access, restore ccpo tests 2019-03-21 05:38:28 -04:00
dandds
bec5d11bfe users have permission sets for site-wide perms 2019-03-21 05:38:28 -04:00
George Drummond
5572452cc0 Test for invalid signature 2019-03-20 15:24:48 -04:00
montana-mil
6d43153785 Merge pull request #708 from dod-ccpo/use-noaccesserror
Use NoAccessError instead of NotFoundError
2019-03-18 09:39:57 -04:00
dandds
13bc7f56b0 Merge pull request #701 from dod-ccpo/portfolio-perms
Portfolio perms
2019-03-18 08:40:35 -04:00
leigh-mil
32a705d1d3 Move NotFoundError into the lookup method 2019-03-15 15:11:52 -04:00
dandds
4ec9ead1ac Update atst/domain/authnid/crl/__init__.py
Co-Authored-By: montana-mil <42577527+montana-mil@users.noreply.github.com>
2019-03-15 14:22:13 -04:00
dandds
b0e48134b0 trim old permissions list 2019-03-15 07:14:49 -04:00
dandds
79cb7ac2eb use first_or_none utility for finding portfolio role 2019-03-15 07:14:49 -04:00
dandds
ad56ddc60e implement PermissionSets.get_many for getting multiple permission sets by name 2019-03-15 07:14:49 -04:00
dandds
ee37a5543a organize portfolio permission sets by domain 2019-03-15 07:14:49 -04:00
dandds
78aa2dfcc6 permission set names should be constants on the domain class 2019-03-15 07:14:49 -04:00
dandds
d3c3209fc0 cleanup unused portfolio roles 2019-03-15 07:14:49 -04:00
dandds
1a122c5335 rename role -> permission_set everywhere 2019-03-15 07:14:49 -04:00
dandds
720c227c32 remove frontend role selection for edit member 2019-03-15 07:14:49 -04:00
dandds
0eb2d4fa3c remove frontend role selection for new member 2019-03-15 07:14:49 -04:00
dandds
0c2ab6fb7a remove portfolio_role direct relationship to role 2019-03-15 07:14:49 -04:00
dandds
44a4d98978 switch portfolio authorization to rely on new permission sets 2019-03-15 07:14:49 -04:00
dandds
8af3986a2d set portfolio member permission sets 2019-03-15 07:14:49 -04:00
dandds
798eb7e1b0 first cut of portfolio permission sets 2019-03-15 07:14:49 -04:00
Montana
effec85cf9 Raise Error Code 008 for invalid CRLs 2019-03-14 13:42:12 -04:00
Montana
30cd77ff98 Test AuthenticationContext 2019-03-14 13:42:12 -04:00
Montana
720859efb6 Ugly implementation for CRLInvalidException 2019-03-14 13:42:12 -04:00
George Drummond
a9199bc28d Remove method implemented but then not used 2019-03-12 09:59:17 -04:00
George Drummond
d57b96cf05 wip 2019-03-12 09:59:16 -04:00
leigh-mil
521d98562b Add check to see if KO can sign the TO and update tests 2019-03-08 10:28:36 -05:00
leigh-mil
66fe49855e Add new error for when a resource is found but cannot be accessed 2019-03-06 16:41:33 -05:00
leigh-mil
70617938d8 Merge pull request #687 from dod-ccpo/demo-data
Demo data
2019-03-01 16:25:51 -05:00
leigh-mil
201e4e9e35 Move creating Aardvark and Beluga from remove_sampe_data to seed_sample;
Refactor seed_sample into reusable functions;
Rename Aardvark to A-Wing and Beluga to B-Wing, and use Star Wars names
for other portfolios
2019-03-01 14:52:10 -05:00
dandds
7fbb8d05e0 Merge pull request #679 from dod-ccpo/sync-crls
sync crls from CSP source
2019-03-01 11:59:57 -05:00
Montana
0b33a67d29 Default defense component to None 2019-02-27 10:55:15 -05:00
montana-mil
3849a69e99 Merge pull request #677 from dod-ccpo/move-component-to-portfolio
Move defense_component to portfolios model
2019-02-27 10:05:30 -05:00
George Drummond
c4383c8859 Merge pull request #676 from dod-ccpo/to-edit-sign-permissions
Break KO signing  into two steps
2019-02-27 09:43:48 -05:00
dandds
22af868557 sync CRLs if one in the cache is out of date 2019-02-27 05:51:50 -05:00
dandds
b420ff2e5b record CRL expiration in CRL cache 2019-02-27 05:51:50 -05:00
dandds
725042ab76 modify crl storage config:
- make local container for libcloud storage if it does not exist
- separate config variables for CRL storage
2019-02-27 05:51:50 -05:00
dandds
9aa15d57e8 CRL Provider for syncing CRLs from cached source 2019-02-27 05:51:50 -05:00
Montana
9a17a841ae Bug fix for '$0' clins 2019-02-26 14:00:48 -05:00
Montana
7ee8858cc7 Add defense_component to Portfolio when new task_order is created without an existing portfolio 2019-02-26 11:29:16 -05:00
George Drummond
8adeee406d Remove unused class constants 2019-02-26 10:02:40 -05:00
George Drummond
46345f9856 Break KO signing into two steps 2019-02-26 10:02:40 -05:00
Patrick Smith
4081fa04e7 Use pendulum to traverse mock reporting dates
Previously, subtracting 29 days could result in the same month listed
twice (for example, subtracting 29 days from Nov 30, would result in two
Novembers listed).
2019-02-25 15:35:51 -05:00
Patrick Smith
b778942dd7 Remove unused get_by_request helper 2019-02-25 14:54:14 -05:00
Patrick Smith
2d03111a9d Remove legacy task order model 2019-02-25 14:54:14 -05:00
Patrick Smith
75f9b57979 Remove PE number model 2019-02-25 14:54:14 -05:00
Patrick Smith
e8348066aa Remove method to create portfolio from a request 2019-02-25 14:54:14 -05:00