Skip to content
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

Cleanup & Refactor #3

Open
wants to merge 32 commits into
base: main
Choose a base branch
from
Open

Cleanup & Refactor #3

wants to merge 32 commits into from

Conversation

ivan-c
Copy link
Member

@ivan-c ivan-c commented Feb 14, 2023

NB: the diff for this PR is very messy. LMK if it's an issue, more than happy to re-write history so the PR diff is more readable

  • Fix broken HTTPS
  • Remove unused code
  • Move secrets to config file
  • Add notes, refs, TODOs etc
  • Switch config format from CLI args to environment variables

References

Errors Middleware cannot be used without an insecure workaround
oauth2-proxy traefik example
jonananas/traefik-oauth2-proxy

@ivan-c ivan-c marked this pull request as ready for review February 14, 2023 19:01
@ivan-c ivan-c changed the title Cleanup Refactor Cleanup & Refactor Feb 14, 2023
@ivan-c ivan-c requested a review from pbugni February 14, 2023 19:44
docker-compose.yaml Outdated Show resolved Hide resolved
);

-- create web user w/ read only auth
create role web_anon nologin;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as we plan to discontinue sending a customized, pre-baked JWT with the claim "role": "event_logger", I would expect we need to bless the web_anon role with grants like those given to event_logger below?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need to bless the web_anon role with grants like those given to event_logger

Thanks for the reminder! I hadn't tested writing values into logserver (only viewing existing data). I'll make sure to test that the web_anon role can write events without authentication

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants