-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#1858 Kibana access + changes for fully local development #2759
Conversation
- 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
- Added setup container to init elastic users, roles, and passwords
Looking more closely at bulk_create_records and parse_datafile_lines this morning. Eric and I were discussing performance issues committing to ES in the past. If there is a need to batch ES ops, there is a Bulk API. |
print(f"Found {vars(user)}") | ||
except User.DoesNotExist: | ||
group = Group.objects.get(name="Developer") | ||
user = User.objects.create(username=email, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can the user be given is_superuser=True
and is_staff=True
? this will open up the "Admin" tab
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it certainly can work; I think a few things are different for admins; is that the normal model for dev?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hi Jan, FYI - have been talking with Eric; there are a few branches outstanding now; we're now thinking to reopen this off of 1858-kibana-ofa-access
authuser = User.objects.get(username=reqname) | ||
if authuser and requser == "undefined": | ||
request.data["user"] = authuser.id | ||
return (User.objects.get(username=reqname), True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like you didn't go through DevAuthentication. Did you copy REACT_APP_DEVAUTH=1 into your .env and rebuild?
How to Test
Start frontend and backend locally with REACT_APP_DEVAUTH set.
Create the dev user in a web container shell: ./manage.py generate_dev_user
Open http://localhost:3000/data-files in browser.
Submit a data file normally.
Verify with logs and postgres DB query.