6230 Commits

Author SHA1 Message Date
leigh-mil
b1a18f83f3 Update table border color 2019-10-22 14:33:06 -04:00
leigh-mil
6ca08502ed Import environments macro with context so you don't need to pass perms 2019-10-22 14:33:06 -04:00
leigh-mil
f76fd0b567 Move files into applications/fragments 2019-10-22 14:32:51 -04:00
leigh-mil
0f0d9464d8 Update styling for tables across the site 2019-10-22 14:08:31 -04:00
graham-dds
bb160bbffa
Merge pull request #1132 from dod-ccpo/bugfix/new_app_step_3_modal
Import macro with context to supply perms
2019-10-22 10:14:52 -04:00
graham-dds
0d3aff54c9 Import macro with context to supply perms
A bug was caused by using the MemberManagementTemplate macro and not supplying all of the necessary
kwargs. Intially, this bug was fixed by supplying the kwargs used by the
macro at the time, but in this refactor, we simply remove those kwargs
and refer to the permissions directly in the template by importing the
macro with context.
2019-10-22 09:32:36 -04:00
Jay R. Newlin (PromptWorks)
e39adb9532
Merge pull request #1129 from dod-ccpo/ghost-seed-roles
Seed roles in the container used for integration tests.
2019-10-21 16:01:27 -04:00
graham-dds
7e1a353db5
Merge pull request #1127 from dod-ccpo/audit_log_feature_flag
Audit log feature flag
2019-10-21 15:54:41 -04:00
graham-dds
8c0b0da284
Merge pull request #1128 from dod-ccpo/bugfix/new_app_step_3_modal
Bugfix: Add permissions kwargs to member modal
2019-10-21 15:32:53 -04:00
dandds
62657b36ae Seed roles in the container used for integration tests. 2019-10-21 15:24:07 -04:00
graham-dds
9c50585589 Bugfix: Add permissions kwargs to member modal 2019-10-21 14:11:55 -04:00
graham-dds
9de90d796d Rename audit log feature flag config variable 2019-10-21 11:36:53 -04:00
graham-dds
c27e0e618e apply feature flag to /activity-history route 2019-10-21 11:36:53 -04:00
graham-dds
a1c672d89f Conditionally skip tests related to audit log 2019-10-21 11:36:53 -04:00
graham-dds
1ac9243749 edit create_audit_event method of AuditableMixin
- create dictonary of log data and log it. Only create insance of
AuditEvent if AUDIT_LOG_FEATURE_TOGGLE is set to True
2019-10-21 11:36:40 -04:00
graham-dds
2720240903 Conditionally render logs on AUDIT_LOG_FEATURE_TOGGLE 2019-10-21 10:32:58 -04:00
graham-dds
8e0ce0519d Add AUDIT_LOG_FEATURE_TOGGLE to flask app settings
- set in ini config
2019-10-21 10:32:58 -04:00
dandds
9c89664a64
Merge pull request #1121 from dod-ccpo/allow-pg-ssl
Make Postgres SSL connection configurable.
2019-10-21 10:25:34 -04:00
leigh-mil
4a61625048
Merge pull request #1126 from dod-ccpo/pop-bug-fixes
Display error when PoP start date and end date are the same
2019-10-21 09:26:02 -04:00
leigh-mil
6619c77df5
Merge pull request #1123 from dod-ccpo/add-test-templates-gitignore
Ignore js/test_templates
2019-10-18 12:06:30 -04:00
dandds
efcb9681d3 Make Postgres SSL connection configurable.
This will allow us to force SSL connections to the database in
production by setting two values:

- PGSSLMODE should be set to "verify-full". This forces the client to
  verify the server against a known CA: https://www.postgresql.org/docs/10/libpq-ssl.html
- PGSSLROOTCERT should be set to the path of the public cert for the
  relevant CA.

When the database connection is made, these values are passed to the
adapter. For local development, PGSSLMODE is set to "prefer" and
PGSSLROOTCERT is left unset.

Kubernetes config has been added to maintain the root CAs for both Azure
and AWS as k8s ConfigMap objects. These are mounted into the containers
and referenced by PGSSLROOTCERT in the container environment.
2019-10-17 16:05:19 -04:00
dandds
5cdead1175
Merge pull request #1125 from dod-ccpo/kubectl-migration-bug
Fix bug in kubectl command in script/cluster_migration
2019-10-17 16:04:45 -04:00
dandds
4169dcb310 Fix CI/CD bug with PGSSLROOTCERT.
Because I pushed the environment variable changes to the cluster
already, psycopg2 was automatically trying to connect to the database
using the file specified in PGSSLROOTCERT. That ConfigMap was not
mounted into the migrations container, so I'm doing that here.
2019-10-17 14:59:41 -04:00
leigh-mil
09f718b1d3
Merge pull request #1117 from dod-ccpo/app-settings-styling_part-3
App settings styling - delete app panel
2019-10-17 12:59:31 -04:00
leigh-mil
88d6ef32a4 Display error when PoP start date and end date are the same 2019-10-16 19:28:17 -04:00
leigh-mil
60d8d6ed10 Styling for delete section of app settings page 2019-10-16 18:12:42 -04:00
leigh-mil
1c79f1dfc9
Merge pull request #1114 from dod-ccpo/app-settings-styling_part-2
App settings styling - environments table
2019-10-16 18:10:09 -04:00
dandds
15f9fb8353
Merge pull request #1122 from dod-ccpo/set-server-name-2
Specify Flask SERVER_NAME value for Celery worker.
2019-10-16 14:17:35 -04:00
leigh-mil
75c57fb084
Merge pull request #1124 from dod-ccpo/ppoc-bug-fixes
PPoC bug fixes
2019-10-16 14:08:54 -04:00
leigh-mil
248e93103b Add js/test_templates to .gitignore file and remove ignored folder 2019-10-16 13:53:40 -04:00
leigh-mil
4d59ba68d9 Add optional arg to the OptionsInput macro call to remove the optional label from the form
Disable the button to update the PPoC when there is only one portfolio
member
2019-10-16 12:16:30 -04:00
dandds
fc637e933d Specify Flask SERVER_NAME value for Celery worker.
The Celery worker cannot render URLs for the app without having a
SERVER_NAME value set. AT-AT's ability to send notifications when an
environment is ready is broken as a result.

This commit sets a null default value for SERVER_NAME in the default
config file. A setting must exist in the INI file in order to be
over-written by an environment variable, which is why we declare it as
null here. There is an additional kwarg, "allow_no_value", that must be
passed to ConfigParser to allow null values.

This also applies the correct domains as SERVER_NAME environment
variables in the Kubernetes ConfigMaps for the AWS and Azure Celery
workers.
2019-10-16 11:57:18 -04:00
richard-dds
ff68c640de
Merge pull request #1116 from dod-ccpo/revert-user-deletion
Revert EnvironmentRole deletion functionality
2019-10-16 10:12:46 -04:00
leigh-mil
26539ebaaa
Merge pull request #1120 from dod-ccpo/fix-security-alerts
Upgrade dependencies
2019-10-16 09:38:18 -04:00
leigh-mil
bc80641745 Upgrade dependencies 2019-10-15 20:28:26 -04:00
richard-dds
96c1fcbe85
Merge branch 'master' into revert-user-deletion 2019-10-15 17:06:06 -04:00
leigh-mil
59ae5a6b12
Merge pull request #1118 from dod-ccpo/revoke-app-invite_2
Disable the App Role when revoking an invite.
2019-10-15 16:41:51 -04:00
leigh-mil
51bf55e6cd
Merge pull request #1119 from dod-ccpo/resend-invite_1
Resend invite fixes
2019-10-15 16:41:34 -04:00
leigh-mil
798ec60a1b Make save button always enabled 2019-10-15 14:38:32 -04:00
leigh-mil
1eecf19459 Update flash message for resending an invite 2019-10-15 14:35:13 -04:00
leigh-mil
91ce3dda9e Disable the App Role when revoking an invite. 2019-10-15 14:25:21 -04:00
dandds
200fa225cc
Merge pull request #1115 from dod-ccpo/ghost-inspector
Initial set up for Ghost Inspector integration tests.
2019-10-15 14:00:23 -04:00
leigh-mil
e94e7c68cb Fix styling of new env form so it doesn't look terrible 2019-10-15 13:48:01 -04:00
leigh-mil
595995cf03 Update styling for empty state and the app environments panel 2019-10-15 13:48:01 -04:00
leigh-mil
e4b1bc33c4 Create env management macro and delete a bunch of unused imports 2019-10-15 13:48:01 -04:00
leigh-mil
041e16a26d Update add new button styling 2019-10-15 13:48:01 -04:00
leigh-mil
22a912439a Update pending label 2019-10-15 13:48:01 -04:00
leigh-mil
47e5a40262 Clean up css in accordion-table file 2019-10-15 13:48:01 -04:00
leigh-mil
ce9a551b2d More styling updates 2019-10-15 13:48:01 -04:00
leigh-mil
de28ff303c Reorder elements in env panel and initial styling 2019-10-15 13:48:01 -04:00