richard-dds
f1560d5d7f
Import CSP deps in uploader implementations
2019-08-06 16:58:57 -04:00
richard-dds
5a1c6b2b39
Remove azure-storage-file
2019-08-06 16:56:10 -04:00
richard-dds
86c1dfb749
Enforce PDF in TO uploader file picker
2019-08-06 16:49:19 -04:00
richard-dds
59de01031c
More secure SAS permissions for Azure upload
2019-08-06 13:53:52 -04:00
richard-dds
989e28e5fb
Destructure get_token() result
2019-08-06 10:41:17 -04:00
richard-dds
5329937eb9
Polyfill fetch
2019-08-06 10:39:46 -04:00
richard-dds
a4581e7a7c
js this
woes
2019-08-06 10:23:04 -04:00
richard-dds
80831c2d85
Set uploader configs in __init__
...
Now missing configs cause the app to crash right at startup
2019-08-06 10:00:09 -04:00
richard-dds
b18e291511
Set Azure protocol to https
...
- Default allows https/http
2019-08-06 09:58:44 -04:00
richard-dds
68a1004bf1
Make Azure FE config injectable
2019-08-05 16:51:28 -04:00
richard-dds
72275421d0
More CSP-specific docstrings for get_token
2019-08-05 16:14:01 -04:00
richard-dds
e5a0318310
Formatting
2019-08-05 16:04:38 -04:00
richard-dds
0b201809a1
Configure js uploader based on CLOUD_PROVIDER environment var
2019-08-05 15:59:27 -04:00
richard-dds
6405d9b958
Make Azure account name and bucket name configurable
2019-08-05 14:58:10 -04:00
richard-dds
94b6b320fb
Provide mock implementation of uploader
2019-08-05 14:58:10 -04:00
richard-dds
81a478915d
Fix uploader test and refactor makeTestWrapper to accept data fn
2019-08-05 14:58:10 -04:00
richard-dds
3d414e1a60
Fix TO upload tests
2019-08-05 14:58:10 -04:00
richard-dds
f5c8424b46
Wire up FE uploads to TO form
2019-08-05 14:58:10 -04:00
richard-dds
8eba9a097d
Add CSP file uploads
2019-08-05 14:58:10 -04:00
leigh-mil
e333f32aea
Merge pull request #995 from dod-ccpo/pop-dates-bug
...
PoP start date must be before end
2019-08-02 16:10:17 -04:00
dandds
82b8a420c8
Merge pull request #996 from dod-ccpo/moar-k8s
...
SSL/TLS and Authentication for Kubernetes Clusters
2019-08-02 15:58:10 -04:00
dandds
27a0569a7e
HTTP -> HTTPS upgrade redirects for the staging sites.
...
There may be a cleaner way to configure this with Kubernetes. For now,
we expose port 80 on the load balancers and let NGINX redirect that
traffic to the HTTPS version of the site.
2019-08-02 15:30:37 -04:00
leigh-mil
f3de41cc06
Fix issue where error message was showing up before both dates were
...
filled in
- only set startDate and endDate in data if there is are initial dates
- only update popValid and showPopError if both dates are present
2019-08-02 15:19:50 -04:00
dandds
e5c360452c
Add SSL/TLS config for staging sites.
...
This presumes the existence of TLS kubernetes secrets available in both
clusters. It adds NGINX config for SSL termination and the necessary k8s
config to write the certificate and private key to the NGINX container.
2019-08-02 15:01:56 -04:00
dandds
1577312fb8
Add htpwasswd for basic auth on login-dev.
...
Add the k8s secret and volume mount for the htpasswd file.
2019-08-02 15:01:56 -04:00
leigh-mil
2d20d27d01
Add POP as field on the form vue component so whether or not it is valid can be tracked to toggle the save button
2019-08-02 14:54:44 -04:00
leigh-mil
5a664c5a83
Default showPopError to false when there are no initial PoP dates
2019-08-02 14:20:32 -04:00
leigh-mil
e1fbac5a52
Add front end validation that enforces that PoP end is after start
2019-08-01 16:53:32 -04:00
leigh-mil
6280fc3c08
Merge pull request #992 from dod-ccpo/hide-csp-links
...
Only show CSP link if user has access to the env
2019-08-01 14:54:27 -04:00
leigh-mil
277d41e003
Merge pull request #993 from dod-ccpo/perms-bug-fixes
...
Permissions bug fixes
2019-08-01 14:53:37 -04:00
leigh-mil
71dd0c9945
Merge pull request #991 from dod-ccpo/app-edit-perms
...
Show app settings and team links for users with app role only
2019-08-01 14:53:18 -04:00
leigh-mil
25ab64f748
Add validation to form for enforcing chronological order of PoP start and end dates
2019-08-01 14:45:50 -04:00
dandds
df7dbbb603
Merge pull request #977 from dod-ccpo/k8s-reconfig
...
K8s reconfig
2019-08-01 13:55:32 -04:00
leigh-mil
fd9f2bdb43
Remove link from feature that will not be implemented
2019-08-01 12:53:22 -04:00
leigh-mil
c37edef3fa
Remove TO edit and sign buttons if user does not have edit TO perms
2019-08-01 12:01:35 -04:00
leigh-mil
4d4cacb767
Add check so that funding header icon is only shown if user has at least view perms for portfolio funding
2019-08-01 11:54:51 -04:00
leigh-mil
c67491fa4c
Show csp link if current user is one of the env's users
2019-08-01 11:24:14 -04:00
leigh-mil
6dc5c14964
Use correct perms to show edit env form and remove unnecessary perms check to show links for app settings and team
2019-08-01 10:37:24 -04:00
leigh-mil
0493078b33
Merge pull request #989 from dod-ccpo/resume-to-draft
...
Resume TO draft from save
2019-07-31 13:28:42 -04:00
dandds
f3e032fc03
Finalize CD config and add k8s job for migrations.
...
Add CircleCI config for both CSPs to:
- build the Docker image and push it to the registry
- run a short-lived k8s job to apply migrations and see data
- update the images for the Flask pods and rq worker pods
2019-07-31 11:58:43 -04:00
dandds
4c70d59c5d
Add k8s networking.
...
- bind static azure IPs
- Add load balancers for both CSPs
2019-07-31 11:58:08 -04:00
dandds
d056191b01
Working config for CD.
...
This adds the AWS and Azure CircleCI orbs for updating container images
in a cluster. It installs the clients for both CSPs, configures kubectl
with a programmatic user's auth information, and executes a `kubectl set
image` command to reset the cluster image to the one that was just
pushed to the container registry.
2019-07-31 11:58:08 -04:00
dandds
52829a1236
Add additional k8s config for AWS and Azure.
...
- remove unused k8s environment config
- experimental config for azure and aws
- use nginx for proxy and add rq worker pod
2019-07-31 11:57:24 -04:00
richard-dds
23e1d15eda
Merge pull request #990 from dod-ccpo/unpin-werkzeug
...
Unpin werkzeug dep
2019-07-31 10:41:33 -04:00
richard-dds
d32ce93271
Unpin werkzeug dep
2019-07-31 10:35:05 -04:00
leigh-mil
c9451e0f93
Update tests to use proper route
...
Pass portfolio and creator to TOFactory so user has perms to edit TO
2019-07-30 15:26:07 -04:00
richard-dds
8edfd1c355
Restrict access to edit route
2019-07-30 14:24:07 -04:00
richard-dds
581b55b2eb
Formatting
2019-07-30 14:11:20 -04:00
richard-dds
43ed257f10
Future proof edit route
2019-07-30 14:07:04 -04:00
richard-dds
136b97b23f
Use new edit route
2019-07-30 14:06:40 -04:00