Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Proof of Concept TDP Based Kibana Auth (#2775)
* Added formating for header and autofit columns * Formatted the headers * added year/month to the columns * Added contants - translation column * added friendly names to T1 and T2 * added friendly name to m1 and m2 * added friendly name to m3 * added friendly_name to t3 * added friendly_name to t4 and t5 * added friendly_name to t7 * correct missing friendly_name * correction on failing tests * addedfriendly name to excel report * linting * linting * linting * delete contants.py * added test for json field in error model * linting * linting * linting * 2599-added friendly name to postparsing validators * refining the validator tests * added returning fields names to validators * added friendly_name to error field * linting * corrections on views/tests * corrections for fields * failing test corrected * failing test corrected * correcting test failures * linting * corrected the excel fiel generator * removed excessive space in validator * linting * listing * added m6 * lint * corrected new line break * refactored validator logic * linting and correction on t1 * friendly_name correction from comments * friendly_name correction * corrected failing test for m5 * refactor the field_json creation DRY * - Added Kibana config * friendly_name corrections * linting and cleaning errors * linting * correction on friendly_names * corrected friendly_name for test_util * correction child care - number of months * fixed a few more typos and some spacing. (#2767) * fixed a few more typos and some spacing. * fixed linting issues * missed a spot. --------- Co-authored-by: George Hudson <ghudson@teamraft.com> * - Added basic security to Kibana/Elastic - Added setup container to init elastic users, roles, and passwords * - Remove debug code * - change provider name * - Updating settings to reference environment variables * - Add elastic dependency * - Fix network issue * - Added bulk creation of elastic indices * - Updated schemas to reference model based off of elastic document * - Remove password auth from elastic/kibana * - Remove password auth * - Fix tests * - Fix lint * - remove debug print * Changes for fully local development - Enables direct frontend/backend communication sans Login.gov/Cloud.gov - Drives off new DEVELOPMENT env var - Pre-configures and disables frontend auth functionality - Testing based on new dev user - Install via web: ./manage.py generate_dev_user * Reorganized front end logic on REACT_APP_DEVAUTH env var * Reorganized backend logic on REACT_APP_DEVAUTH env var * - Added proof on concept for tdp based kibana auth * - Fixing type issue * added is_superuser and is_staff attrs to dev user * - Add group check * - Add frontend group check for kibana * - fix lint * - Fix lint errors * - Fix doc strings * - Adding authenticated permission * - Renaming variables to clarify things * - fix lint * Revert "- Remove password auth from elastic/kibana" This reverts commit 522ca38. * - Setting up anonymous users with kibana_admin privileges * - Adding password to settings in cloud.gov * - remove incorrect auth - use admin only in frontend and backend * - Add elastic profile * DevAuth feature redesign inspired by Cypress - Initializing frontend w/POST /login/cypress: {devEmail, local-cypress-token} - Changed REACT_APP_DEVAUTH to provide the email of the desired dev user - Modified CustomAuthentication.authenticate to handle both known use cases - Added stt_id=31 to the initial dev user - Disabled ES disk threshold checking for local dev which blocked ES startup - Removed DevAuthentication and other now unnecessary code * Fixed CustomAuthentication.authenticate return val for login.py use case * Fixed CustomAuthentication.authenticate logging for login.py use case * Removed unneeded permissions import * Updates to REACT_APP_DEVAUTH env var settings - Enabled with an email address value - Disabled by default * - debugging env vars * - Testing what settings are used * Revert "- debugging env vars" This reverts commit 900efa8. * Revert "- Testing what settings are used" This reverts commit 784530e. * - debugging env vars again * - Switching to container networking * Restored support for CustomAuthentication.authenticate username keyword * Modified CustomAuthentication.authenticate comment to satisfy flake8 * commit * asdfgvasd * Revert "Modified CustomAuthentication.authenticate comment to satisfy flake8" This reverts commit 761e4eb. * Revert "Restored support for CustomAuthentication.authenticate username keyword" This reverts commit 4bf8957. * Revert "Updates to REACT_APP_DEVAUTH env var settings" This reverts commit 7fc2a09. * Revert "Removed unneeded permissions import" This reverts commit c18383f. * Revert "Fixed CustomAuthentication.authenticate logging for login.py use case" This reverts commit 2b9b46f. * Revert "Fixed CustomAuthentication.authenticate return val for login.py use case" This reverts commit 97a0cf6. * Revert "DevAuth feature redesign inspired by Cypress" This reverts commit 1497d4a. * Revert "commit" This reverts commit a284856. * Revert "added is_superuser and is_staff attrs to dev user" This reverts commit 6ffbee8. * Revert "Reorganized backend logic on REACT_APP_DEVAUTH env var" This reverts commit 7fd7b4d. * Revert "Reorganized front end logic on REACT_APP_DEVAUTH env var" This reverts commit 32a4671. * Revert "Changes for fully local development" This reverts commit 556221b. * asdf * - Adding integration tests for elastic bulk doc creation * Revert "asdf" This reverts commit 26455b4. * - fix lint * fasdf * - Added usage of document to tribal * - Updated based on feedback * - Fixing error * - Updating frontend to only allow access to kibana sitemap if the user is Dev or Sys Admin * - fix lint --------- Co-authored-by: Mo Sohani <msohani@goraft.tech> Co-authored-by: raftmsohani <97037188+raftmsohani@users.noreply.github.com> Co-authored-by: George Hudson <georgehudson78@gmail.com> Co-authored-by: George Hudson <ghudson@teamraft.com> Co-authored-by: Thomas Tignor <thomas.tignor@QP9VN4FgnorRaft.fios-router.home> Co-authored-by: Thomas Tignor <thomas.tignor@QP9VN4F4RH-thomastignor-Raft.local> Co-authored-by: Andrew <84722778+andrew-jameson@users.noreply.github.com>
- Loading branch information