7420 Commits

Author SHA1 Message Date
dandds
406c2af811
Merge pull request #1369 from dod-ccpo/environment-mgmt-grp-provisioning
Environment Management Group Provisioning
2020-02-06 05:15:20 -05:00
dandds
4da68a1fab WIP: orchestration for env role creation 2020-02-05 15:56:53 -05:00
37eda0b959 create_tenant error handling 2020-02-05 15:34:59 -05:00
tomdds
05f4ef8cb6
Merge branch 'staging' into environment-mgmt-grp-provisioning 2020-02-05 14:52:15 -05:00
tomdds
13aca270ca Remove unused code in both the cloud interfaces and environment models. Also add tests for some untested code in the cloud interface. 2020-02-05 14:48:54 -05:00
dandds
7c7dd08827 Add environment_roles.cloud_id and update query for finding pending
roles.
2020-02-05 13:48:59 -05:00
ac6c715056 formatting 2020-02-05 12:22:20 -05:00
38e92e427b resolve conflict with staging 2020-02-05 12:21:00 -05:00
leigh-mil
c1055e3e78
Merge pull request #1385 from dod-ccpo/revoke-portfolio-invite-success-message
Alert for revoking an invite
2020-02-05 11:30:11 -05:00
leigh-mil
e66605ff4a
Merge branch 'staging' into revoke-portfolio-invite-success-message 2020-02-05 10:46:03 -05:00
leigh-mil
9869fd3e5d
Merge pull request #1391 from dod-ccpo/fix-max-width
Fix max width
2020-02-05 10:44:50 -05:00
leigh-mil
155a4c1a42
Merge branch 'staging' into fix-max-width 2020-02-05 10:11:41 -05:00
dandds
cdf6a469ed WIP: create_user_role 2020-02-05 09:20:22 -05:00
tomdds
aaa4b401b5 Fix LGTM issues 2020-02-04 17:42:08 -05:00
tomdds
350e648beb Added tests for get and set secret 2020-02-04 17:39:31 -05:00
tomdds
e702c42fa5 Merge branch 'staging' into environment-mgmt-grp-provisioning 2020-02-04 17:05:24 -05:00
graham-dds
d305ea487d
Merge pull request #1390 from dod-ccpo/reporting-integration
Add cloud method to get reporting data
2020-02-04 16:48:52 -05:00
tomdds
4d11f7217e Add missing test for create_principal_admin_role 2020-02-04 16:43:06 -05:00
tomdds
9d5918d618 Add exception for problems with secrets 2020-02-04 16:42:18 -05:00
leigh-mil
6cf39ca1e4 Set max width on new portfolio form 2020-02-04 16:13:07 -05:00
leigh-mil
e7487aa114 Set max width on ccpo admin pages 2020-02-04 16:13:07 -05:00
leigh-mil
68c7a70082 Set max width on error page and include Last login on error page
- Updated error_base template so that it contained the Root Vue component, which was the reason that the last login was not previously displaying
- Deleted unused css
- Created css variable max-page-width for use on the error page, topbar, and other full width elements
2020-02-04 16:13:07 -05:00
leigh-mil
a6e7dfda13 Apply .action-group-footer updates to the New application builder 2020-02-04 16:13:07 -05:00
leigh-mil
eeb174af35 Set max width for alerts and delete unused classes 2020-02-04 16:13:07 -05:00
leigh-mil
8e2870b62f Add max width to CTA footer in the TO builder form
- Created a new mixin (ExpandSidenavMixin) that sets the defaultVisible prop that can be used in both the root component and the SidenavToggler. This makes it so that the Root knows whether or not the sidenav is collapsed or expanded, so then child components can use this to calculate margins/paddings/offsets/etc.
- Added new classes for the .action-group-footer that set the elements padding based on whether or not the sidenav is expanded.
- Added a nested div (.action-group-footer--container) inside .action-group-footer which sets the max width
2020-02-04 16:13:07 -05:00
dandds
b754f1384f Include all Azure config in the INI file.
Adds all the new config items to the INI file and adjusts some naming
conventions so that these values sort together. Also adds defaults for
some values where they're known.
2020-02-04 16:12:45 -05:00
graham-dds
ff842f5051 Add cloud method to get reporting data
Adds a method to `azure_cloud_provider` to query the Cost Management API
for usage data per invoice.  For now, this query is relatively static.
We're always calling the API at the billing invoice section scope,
with the widest timeframe possible (one year), and with the same
requested dataset. As the scope of the application's reporting needs
changes, this function may change to be more general and/or revert back
to the SDK.
2020-02-04 16:07:06 -05:00
dandds
7c8fa1932a
Merge pull request #1388 from dod-ccpo/portfolio-query
Update SQL query to find pending portfolios.
2020-02-04 16:06:33 -05:00
leigh-mil
41b2fff774 Add success flash message for revoked portfolio invite and update flash message and translations to be generalized 2020-02-04 16:03:45 -05:00
tomdds
ca4feaa403 post-rebase fixes 2020-02-04 15:39:03 -05:00
tomdds
1a7db62dac Remove Environment level user provisioning 2020-02-04 15:22:34 -05:00
tomdds
17ec944ad5 Update environment queries to look for app provisioning completion as well 2020-02-04 15:22:34 -05:00
dandds
b364a1d2a6 Celery wrapper for creating a user. 2020-02-04 15:22:34 -05:00
tomdds
bcb552134b Update tests for environment management group provisioning 2020-02-04 15:21:41 -05:00
tomdds
21d48c55cf Use correct config value for create_environment resource 2020-02-04 15:21:27 -05:00
1378fcfc15 merge conflict 2020-02-04 15:21:27 -05:00
0d942c73fc error handling in azure create_tenant method 2020-02-04 14:31:30 -05:00
c995b0963c state machine triggers for resuming progress from a failed state 2020-02-04 13:50:06 -05:00
b52d6c89ac initial mgmt group verfication query for root mgmt group by tenant_id 2020-02-04 10:23:35 -05:00
dandds
05f6b36ece Update SQL query to find pending portfolios.
The query to find portfolios that are pending provisioning is updated to
check for:

- a period of performance that has started
- a portfolio state machine that has an UNSTARTED or one of the CREATED
  states

I left several TODOs to ensure that the orchestration functions
correctly for portfolio.
2020-02-04 10:16:02 -05:00
8c5f532ca1 azure initial management group creation 2020-02-04 08:09:24 -05:00
dandds
0c7f407315 Move Terraform config to its own repo.
The TF config will live in its own private repo in an Azure DevOps
workspace for now. While it doesn't contain secrets, it does contain
plenty of information we wouldn't like to advertise, like IP addresses
and CIDR ranges. Once the TF config is further evolved, we can pull
the modules back into this repo. For now, it will all live in one place
for ease of use.
2020-02-04 06:12:34 -05:00
leigh-mil
ece4b20bcf
Merge pull request #1383 from dod-ccpo/fix-script-server
Update Pipfile to fix script/server
2020-02-03 15:55:01 -05:00
leigh-mil
e85934c8fe Update Pipfile 2020-02-03 15:38:32 -05:00
dandds
8b0c28b09f
Merge pull request #1380 from dod-ccpo/azure-user-creation
Azure user creation
2020-02-03 14:09:43 -05:00
dandds
b81ece7ad9
Merge branch 'staging' into azure-user-creation 2020-02-03 13:54:22 -05:00
dandds
bb7cbf00cd Add microsoft domain to AAD user names. 2020-02-03 11:17:42 -05:00
dandds
ce72529b8a
Merge pull request #1381 from dod-ccpo/170977491-uploads
Fix task order uploads.
2020-02-03 10:48:21 -05:00
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
0b8886182d Fix wrong creds reference in create_applications method. 2020-02-02 14:42:44 -05:00