176 Commits

Author SHA1 Message Date
leigh-mil
1f8337485f Move ccpo routes into their own file 2019-08-09 11:08:22 -04:00
dandds
9fc6514d80 Clean up defunct upload and CRL logic.
- Applies our previous CSP namespacing pattern to the upload classes.
- Removes code and config for previous uploader implementation.
- Removes Attachment model's ability to upload files directly and
  adjusts tests that expected that behavior.
2019-08-08 13:20:27 -04:00
richard-dds
8eba9a097d Add CSP file uploads 2019-08-05 14:58:10 -04:00
dandds
bea2e02253 Remove unused EDA client code 2019-06-12 13:42:55 -04:00
richard-dds
9b3775291e Remove redundant make_session_limiter 2019-05-29 16:05:52 -04:00
richard-dds
888d41f484 Formatting 2019-05-28 10:45:36 -04:00
richard-dds
5dcbee333a Make session limiter configurable 2019-05-28 10:45:12 -04:00
richard-dds
d8e75668b0 Log notifications at the time of sending 2019-05-15 14:57:46 -04:00
richard-dds
c03b69b351 More idiomatic initialization of notification_sender 2019-05-15 14:57:46 -04:00
dandds
42b912d4cb Look up major database resources in a before_request hook.
A `before_request` hook queries the database for portfolios, requests,
and task orders based on the route arguments. The resources are added as
attributes on `g`. The portfolio context processor and the access
decorator now rely on those resources being available on `g`.

WIP: find major resources in before_request hook, apply to g

WIP: use g.portfolio for portfolio context processor

WIP: the access decorator should rely on the resources being available on g
2019-05-06 16:32:55 -04:00
dandds
b8a24c37c4 Make SQLALCHEMY_ECHO option independent of DEBUG for sqlalchemy logging. 2019-05-02 15:41:13 -04:00
dandds
849c5d4b58 Rearrange and rename application routes.
- move application routes to their own Flask blueprint
- squash application routes to be resource-specific
- reorganize application routes
2019-04-22 07:19:30 -04:00
dandds
d73b082471 configurable json logging for atst app 2019-04-01 12:34:53 -04:00
dandds
c7ac967870 present flash message when new portfolio member is added 2019-03-26 15:49:06 -04:00
Montana
d6906c8504 Add config for CRL_FAIL_OPEN 2019-03-14 13:42:12 -04:00
dandds
44d52ae601 fix crl storage config name 2019-03-01 15:31:02 -05:00
dandds
22af868557 sync CRLs if one in the cache is out of date 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
Patrick Smith
c3b79103a4 Remove Requests routes 2019-02-25 14:54:13 -05:00
Montana
c7e2e8b5a5 Use map_config to add logging on dev and test 2019-02-20 12:11:01 -05:00
Montana
84e6d9300d Print SQLAlchemy logs only on dev environment 2019-02-20 11:36:59 -05:00
Montana
2ccf8d8038 Turn on logging for sqlalchemy 2019-02-20 08:50:20 -05:00
Patrick Smith
53f36e827f Move getting list of portfolios to app-wide context processor 2019-02-06 13:30:14 -05:00
Patrick Smith
849238f218 Use custom JSON encoder in flask app 2019-01-23 14:57:14 -05:00
dandds
4bd41950c6 remove REQUIRE_CRLS setting in favor of DISABLE_CRL_CHECK 2019-01-18 09:48:43 -05:00
dandds
80f633f457 allow config dictionary as argument to make_config; disable CRLs for scripts 2019-01-18 09:44:31 -05:00
dandds
becaec8d42 no op version of CRL cache for disabling crl check 2019-01-17 10:28:40 -05:00
dandds
d3d36822df workspace -> portfolio everywhere 2019-01-14 16:00:17 -05:00
montana-mil
63b354a2e4
Merge pull request #517 from dod-ccpo/hide-requests
hide requests workflow
2019-01-10 14:57:59 -05:00
Montana
c2a597d98b hide requests 2019-01-09 13:22:32 -05:00
George Drummond
99f34fe45a
Disable CLIN fields via a config option 2019-01-07 14:25:03 -05:00
dandds
3415436f54 toggle off requests workflow with config option 2019-01-07 10:34:23 -05:00
Patrick Smith
d6ff3406ef Initial attempt at modularizing CSP integration 2018-12-21 14:08:30 -05:00
Jay Newlin (PW)
c5b828bcdb Remove duplicate code 2018-12-20 11:23:01 -05:00
dandds
ba19a6d341
Merge pull request #503 from dod-ccpo/spike-new-workflow
Task Order Form
2018-12-20 10:13:33 -05:00
George Drummond
acb405d799 Add ‘unsafe-inline’ to headers to fix rendering svgs 2018-12-19 11:08:39 -05:00
dandds
6d92755a7f new workspace and task order routes 2018-12-18 09:44:02 -05:00
George Drummond
15a32a1dc5
Exclude set_default_headers from coverage report 2018-12-17 11:42:27 -05:00
George Drummond
3bff2fcb23
Format code 2018-12-13 13:59:54 -05:00
George Drummond
ec09c27a38
On fix unsafe-eval header and websockets on development 2018-12-13 13:54:19 -05:00
George Drummond
5da374bbc9
Suggestions from http://flask.pocoo.org/docs/1.0/security/ 2018-12-13 09:31:31 -05:00
Montana
70940b09c2 Refactor workspace routes 2018-11-27 11:05:05 -05:00
richard-dds
a475cb3156 FormCache class 2018-11-15 16:03:29 -05:00
Patrick Smith
4bbb55a06e Add RQ_QUEUES to default config
We can use string interpolation in the file rather than building it when
making the config. Adding the value to the config allows us to override
it with an environment variable, if we want to (as we do for the UAT
environment).
2018-10-31 16:12:00 -04:00
Patrick Smith
e177fe0037 Add REQUIRE_CRLS to config parser 2018-10-26 10:11:03 -04:00
Patrick Smith
73d8df8fe6 Add REQUIRE_CRLS env variable to allow skipping loading CRLs 2018-10-25 16:27:05 -04:00
dandds
b6c5f89784
Merge pull request #384 from dod-ccpo/mailer
Mailer
2018-10-17 15:25:06 -04:00
richard-dds
c3f6740083 Formatting 2018-10-16 14:10:15 -04:00
richard-dds
79c3394e2c Use mail sender as username 2018-10-16 14:09:02 -04:00
richard-dds
408fe5dc54 Construct MailConnection 2018-10-16 13:21:11 -04:00