82 Commits

Author SHA1 Message Date
leigh-mil
c2814416fb Update atst to atat 2020-03-04 11:51:15 -05:00
graham-dds
612e254104 Add AZURE_BILLING_ACCOUNT_NAME config var 2020-02-21 13:23:19 -05:00
graham-dds
237848c2c9 Azure cloud method to get a url to the calculator 2020-02-18 16:15:07 -05:00
graham-dds
8f52443b5d Send email to PPOC when portfolio is provisioned
When a portfolio state machine transitions to the COMPLETED state, an
email is sent to the PPOC letting them know it's ready, and provides
them with their username needed to create a password.
2020-02-13 10:55:47 -05:00
graham-dds
00a5a98577 Add Mailer class method to email TOs to MSFT 2020-01-31 13:17:00 -05:00
dandds
6edc7b138b Set SESSION_COOKIE_SECURE for deployed environments.
This sets the "Secure" attribute on cookies sent to the client:

https://flask.palletsprojects.com/en/1.1.x/config/#SESSION_COOKIE_SECURE
2020-01-29 14:39:56 -05:00
dandds
944c5d3c9f Forcibly destroy existing session on logout.
To comply with security guidelines, we need to destroy the session when
a user logs out. This means that the session's key in the Redis cache
needs to be deleted. Flask expects to _always_ have a session object. If
the current session object does not exist in the Redis cache, Flask will
reserialize and store it at the end of the request. In order for
session deletion to work, we need to delete the key for the existing
session and then replace the session object with a new, empty one.

This also updates the SessionLimiter class so that the session prefix is
configurable.
2020-01-23 10:31:20 -05:00
dandds
a54db5a688 Remove Minkube config.
We do not have the bandwidth to keep the Minikube deployment up-to-date,
so rather than leave half-baked config in the repo we'll remove it for
now. Complications that would have to be resolved for running Minikube
locally include managing secrets out of Azure Key Vault and managing TLS
termination over localhost.

The Synack audit also identified the Minikube basic auth password as an
issue; it's only for demo purposes, but this will resolve that ticket.
2020-01-14 15:46:08 -05:00
dandds
60b12fca52 Config to specify session cookie domain.
This got lost somewhere along the way (almost certainly by me), so this
commit tries to make it explicit. The app needs to be able to configure
the session cookie domain name so that it is valid for both the main
site domain and the authentication subdomain. For instance, if the site
is runnning at uat.atat.code.mil and authentication happens at
auth-uat.atat.code.mil, SESSION_COOKIE_DOMAIN should be set to
atat.code.mil so that it's valid for both.

This adds the setting to the base INI file and a default for our K8s
clusters.
2020-01-06 14:07:53 -05:00
dandds
2d714cae39 Add some missing configuration settings.
These settings are used in the deployed instance and mentioned elsewhere
in the README, but were missing from the base INI file and the
Configuration Guide section of the README.
2019-12-10 10:14:53 -05:00
Jay R. Newlin (PromptWorks)
36c76a62b8 Remove Ghost Inspector details from base README 2019-11-27 16:08:42 -05:00
richard-dds
bd881fd1e0 Additional details for USE_AUDIT_LOG 2019-11-27 10:30:42 -05:00
richard-dds
40d9d28b5e Additional details for SERVER_NAME 2019-11-27 10:30:42 -05:00
richard-dds
6b2427a98d Remove unused RQ_QUEUES 2019-11-27 10:30:42 -05:00
richard-dds
97bc63df66 Additional details for PORT 2019-11-27 10:30:42 -05:00
richard-dds
684b86c2d0 Remove PE_NUMBER_CSV_URL and PGAPPNAME 2019-11-27 10:30:42 -05:00
richard-dds
f8a457bacd Add more detail for DISABLE_CRL_CHECK 2019-11-27 10:30:42 -05:00
richard-dds
2f8135ecd1 Remove CLASSIFIED param 2019-11-27 10:30:42 -05:00
richard-dds
a33468b6c7 Add definition for CELERY_DEFAULT_QUEUE 2019-11-27 10:30:42 -05:00
richard-dds
946a29acda Document the significance of our configuration values 2019-11-27 10:30:42 -05:00
Jay R. Newlin (PromptWorks)
8c7a5e7e5f Update README with reference to exported Ghost Inspector tests 2019-10-31 16:32:23 -04:00
Jay R. Newlin (PromptWorks)
c21dc1cf8c Modified for typo script vs scripts directory 2019-10-24 14:18:09 -04:00
dandds
7949c64b9b Initial set up for Ghost Inspector integration tests.
Adds a CircleCI integration for Ghost Inspector
(https://ghostinspector.com), a headless browser testing SaaS. The
README is updated with details about how to run GI locally.

Removes the bootstrap setup for Selenium testing with BrowserStack.
2019-10-14 16:32:38 -04:00
dandds
d1ed0f6692 Add setup script and configuration for Minikube cluster.
The Minikube version of the cluster has some differences from the main
config (noted in the README) but will be useful for for future DevOps
development.
2019-10-04 17:48:46 -04:00
richard-dds
c5284fd8f9
Merge pull request #1005 from dod-ccpo/cloud-pdf-downloads
Cloud pdf downloads
2019-08-30 16:11:27 -04:00
richard-dds
e3f1d8b51c Add README section for testing uploads / downloads in dev 2019-08-30 15:44:36 -04:00
dandds
74780ab8ec update README with detect-secrets command that does not add unused plugins 2019-08-28 15:57:18 -04:00
tomdds
c979c62228 Document dod_id dev login path 2019-08-21 10:22:50 -04:00
tomdds
87a03b7380 Add documentation for dev new user endpoint to README 2019-08-21 10:22:50 -04:00
Jay R. Newlin (PromptWorks)
e4ce9d02e4 URL changed for the entr tool 2019-08-16 15:13:22 -04:00
dandds
2a0168b1e6 Scripts for finding accidental secrets in the repo.
This adds the following:
- A detect-secrets dependency and a related script
  (`script/detect_secrets`) to find and alert developers to secrets
  added to the code. By default, the script will search staged and new,
  unstaged files. It can optionally search only staged files.
- A whitelist, `.secrets.baseline`, that tracks instances of secrets or
  false positives already in the repo.
- Modifies `script/test` to detect secrets as part of the test suite.
- Updates to the README regarding the use of detect-secrets.
2019-08-13 05:59:56 -04:00
dandds
6f8ef27bf1 Single Dockerfile for building ATAT.
Dockerfile is now a single multi-stage build that relies on a Python 3.7
base image.

Notes:
- This builds uWSGI with a `pip install` because the Alpine vendored
  uWSGI is built against Python 3.6.
- Adds a docker-compose file that can be used for testing that the build
  works. It is not usable for development purposes because it creates a
  static copy of the application.
2019-07-11 11:27:33 -04:00
dandds
d22ecfa4fe Specify correct python version in README. 2019-07-10 17:01:15 -04:00
Jay R. Newlin
dbf7e1e130 Added commentary about installing PostgreSQL 2019-02-05 17:25:18 -05:00
Jay R. Newlin
54a8559629 Corrected missing punctuation 2019-02-05 17:18:04 -05:00
Jay R. Newlin
2f673bbe81 Added note about Python versions 2019-02-05 16:00:36 -05:00
dandds
5a35d23499 update readme 2019-01-14 16:00:17 -05:00
Patrick Smith
476a95a3f4 Add notes on js testing to readme 2018-11-20 11:45:34 -05:00
dandds
20486915af update readme, remove travis config 2018-10-31 14:08:43 -04:00
dandds
7095c9ab0a update readme for onboarding new devs 2018-10-18 16:25:23 -04:00
dandds
f13cc03d24 allow queue worker process to hot reload if entr is available 2018-10-16 09:54:49 -04:00
dandds
6a2a7545ae remove dev server 2018-10-15 16:52:47 -04:00
dandds
ae7c644d91 update README, adjust email config function name 2018-10-15 11:38:34 -04:00
dandds
cbf188df5f more browserstack info in readme 2018-10-15 10:04:33 -04:00
dandds
4a97c1d0fd add readme info about selenium testing 2018-10-15 09:10:09 -04:00
richard-dds
056bb41e9e Rename the old seed script to seed_sample.py 2018-09-21 14:02:51 -04:00
richard-dds
50d11368af Divulge script/seed in the README 2018-09-05 16:45:53 -04:00
Patrick Smith
1af833189d Specify python 3.6 dependency 2018-08-21 16:48:50 -04:00
Patrick Smith
56c5bb4ed2 Update README with better setup instructions 2018-08-21 15:58:06 -04:00
richard-dds
c06f0d03c1 Fix typo in README 2018-08-06 17:10:46 -04:00