dandds
0517bd1b0a
Fix task order uploads.
...
Task order uploads and downloads were broken. Uploads were broken
because file content was eing read in as plaintext every time, resulting
in encoding issues. I updated the bundle to use the newer Azure JS SDK.
We can now use a method for uploading browser files directly without
having to read their content. This required a few small internal changes
to the upload component, since the response structure is different.
I also removed the `downloadUrl` method from the JS uploader since it
was not being used.
Downloads were broken because the method that generates the download
link was not updated to use the BlobSasPermissions class from the
updated Azure Python SDK.
2020-02-03 09:56:02 -05:00
dandds
f79af3ad62
Merge pull request #1375 from dod-ccpo/azure-subscriptions
...
Add functionality for creating and verifying subscriptions.
2020-02-01 10:29:29 -05:00
tomdds
61e891258b
Merge branch 'staging' into azure-subscriptions
2020-01-31 17:00:43 -05:00
tomdds
f296358e6d
Merge pull request #1368 from dod-ccpo/product-purchase-provisioning
...
Product purchase provisioning
2020-01-31 16:19:27 -05:00
tomdds
6952a533e2
Merge branch 'staging' into product-purchase-provisioning
2020-01-31 15:50:31 -05:00
tomdds
bbed83d897
Update AADP Purchase url and respose format to newer schema.
2020-01-31 15:50:10 -05:00
tomdds
53dcb94046
Merge branch 'staging' into azure-subscriptions
2020-01-31 15:43:08 -05:00
dandds
b20df28116
Merge pull request #1374 from dod-ccpo/download-and-email-tos
...
Download and email tos
2020-01-31 15:19:49 -05:00
tomdds
d5e739ea68
Fill in subscription creation mocks
2020-01-31 14:42:38 -05:00
tomdds
9acbeeb824
Add display name to subscription creation payload
...
Also extracts environment -> subscription payload construction to it's own method.
2020-01-31 14:42:38 -05:00
tomdds
670e135a0e
Merge branch 'staging' into azure-subscriptions
2020-01-31 14:41:39 -05:00
tomdds
a0ea3e3220
Merge branch 'staging' into product-purchase-provisioning
2020-01-31 14:41:32 -05:00
leigh-mil
42b3fa2b0c
Merge branch 'staging' into download-and-email-tos
2020-01-31 14:28:37 -05:00
leigh-mil
3737219995
Merge pull request #1379 from dod-ccpo/fix-portfolio-column-type
...
Fix column type on portfolios defense_component
2020-01-31 14:25:23 -05:00
tomdds
e672941259
Source correct tenant id for root credentials
2020-01-31 14:11:28 -05:00
tomdds
9880da93c9
Merge branch 'staging' into product-purchase-provisioning
2020-01-31 14:04:39 -05:00
leigh-mil
b5e7ea3fa6
Fix column type on portfolios defense_component
2020-01-31 14:03:30 -05:00
leigh-mil
32607224b3
Merge pull request #1378 from dod-ccpo/fix-last-login
...
Remove extra </div>
2020-01-31 13:53:53 -05:00
leigh-mil
45231d11fa
Merge branch 'staging' into fix-last-login
2020-01-31 13:17:47 -05:00
graham-dds
e32e211966
Make Upload related classes more generic
...
Renames Python classes that refer to Upload to something to FileService.
We added this change because these classes now handle downloading as
well as uploading.
2020-01-31 13:17:00 -05:00
graham-dds
a7770d8a6a
Add method to download TOs from Azure
2020-01-31 13:17:00 -05:00
graham-dds
0e49d038be
Add azure-storage-blob and remove pytest-watch
...
pytest-watch + pipenv were causing problems when building the app in CI,
so pytest-watched was removed for the time being.
2020-01-31 13:17:00 -05:00
graham-dds
00a5a98577
Add Mailer class method to email TOs to MSFT
2020-01-31 13:17:00 -05:00
tomdds
ba84b92795
Merge branch 'staging' into product-purchase-provisioning
2020-01-31 13:13:07 -05:00
leigh-mil
baf7be2961
Merge pull request #1373 from dod-ccpo/limit-file-size
...
Limit file size
2020-01-31 13:09:15 -05:00
leigh-mil
745ce713b0
Hard code TO upload description into the UploadInput Macro
...
This is a temporary fix to avoid spending too much time trying to use app.config variables in a Form class field descriptions and labels. This is tech debt and should be fixed in the future.
2020-01-31 12:08:48 -05:00
tomdds
f41d54aa9e
Merge branch 'staging' into product-purchase-provisioning
2020-01-31 12:03:08 -05:00
leigh-mil
0c408bccfd
Update PDF file size limit to be less than the GMail SMTP size limit
2020-01-31 11:59:07 -05:00
leigh-mil
dff9924c95
Make file size limit configurable
2020-01-31 11:59:07 -05:00
leigh-mil
881bf3220c
fix formatting
2020-01-31 11:57:15 -05:00
leigh-mil
8d30fd4cfb
Remove extra </div>
2020-01-31 11:52:15 -05:00
tomdds
73ddd32365
Only unpack AADP purchase date after verifying response code.
2020-01-31 11:51:13 -05:00
dandds
62d8a89eb1
Merge pull request #1376 from dod-ccpo/k8s-perms-for-load-balancers
...
Give the cluster perms to create load balancers.
2020-01-31 10:27:05 -05:00
dandds
60fe6615c7
Merge branch 'staging' into k8s-perms-for-load-balancers
2020-01-31 10:06:49 -05:00
dandds
36da6fff32
Merge pull request #1377 from dod-ccpo/secure-session-bug
...
Fix bug in setting Secure on session cookie.
2020-01-31 09:51:37 -05:00
dandds
10f8bf9503
Fix bug in setting Secure on session cookie.
...
This fixes a bug I introduced with commit
6edc7b138b0745d0b3f9d99da76c445fe954c5a7
The value for SESSION_COOKIE_SECURE was being read in as a truthy string
every time. In order for it to be interpreted correctly, we need to map
it to a boolean.
2020-01-31 06:18:54 -05:00
tomdds
6b8ea41925
Make AADP purchase quantity configurable
...
Also remove a few constant params from the payload model.
2020-01-30 22:12:28 -05:00
tomdds
4fb9b88e1d
Add new purchase provisioning states to DB enum.
2020-01-30 22:11:52 -05:00
29b69a7d5d
code formatting
2020-01-30 16:50:32 -05:00
dandds
ca1d26cc67
Give the cluster perms to create load balancers.
...
In order for the cluster app registration to create new load balancers,
it needs to have the Network Contributor role for the virtual network.
In the future, we should create a custom policy scoped to exactly the
permissions the cluster needs, per:
https://docs.microsoft.com/en-us/azure/aks/configure-azure-cni#prerequisites
2020-01-30 16:28:02 -05:00
tomdds
afcc4d16cd
Add functionality for creating and verifying subscriptions.
...
Currently the create call will be consumed by on-demand requests from the frontend, and the 2 stage create will be used by the enviroment management group provisioning to verify an initial subscription was created.
2020-01-30 15:58:09 -05:00
7e4340e7e4
resolve merge conflict with staging
2020-01-30 15:57:06 -05:00
dandds
b444378b0f
Merge pull request #1362 from robgil-dds/170322629-azure-logging
...
Azure Logging
2020-01-30 15:11:33 -05:00
de992eeed8
premium product purchase code formatting.
2020-01-30 14:50:16 -05:00
7493b9c3d6
premium product purchase unit tests.
2020-01-30 14:48:16 -05:00
Rob Gil
181d0155b7
Removes the vnet gateway since we're no longer going to use Azure VPN services
2020-01-30 14:43:59 -05:00
Rob Gil
b0a73e5944
Adds log analytics logging to redis module
2020-01-30 14:43:59 -05:00
Rob Gil
211a9e7875
Adds log analytics logging to cdn module
2020-01-30 14:43:59 -05:00
Rob Gil
ffb29d45fc
Adds Redis logging to log analytics
2020-01-30 14:43:59 -05:00
Rob Gil
308ea6a861
Enables logging for storage account buckets
...
There are bugs in the latest version of the azurerm provider which do
not account for all the log types. We had to use a local-exec here.
2020-01-30 14:43:59 -05:00