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

Feat simplify config #635

Merged
merged 26 commits into from
Apr 12, 2023
Merged

Feat simplify config #635

merged 26 commits into from
Apr 12, 2023

Conversation

like-a-bause
Copy link
Contributor

Starting with simplifying the Cors config on the public endpoint.

Implementation

Tests

Todos

Additional context

dependabot bot and others added 3 commits February 23, 2023 12:53
Bumps [github.com/labstack/echo/v4](https://github.com/labstack/echo) from 4.10.0 to 4.10.2.
- [Release notes](https://github.com/labstack/echo/releases)
- [Changelog](https://github.com/labstack/echo/blob/master/CHANGELOG.md)
- [Commits](labstack/echo@v4.10.0...v4.10.2)

---
updated-dependencies:
- dependency-name: github.com/labstack/echo/v4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@like-a-bause like-a-bause marked this pull request as draft March 3, 2023 11:31
backend/server/public_router.go Outdated Show resolved Hide resolved
backend/server/public_router.go Outdated Show resolved Hide resolved
@like-a-bause like-a-bause marked this pull request as ready for review March 9, 2023 11:11
@like-a-bause
Copy link
Contributor Author

When testing please try out in a X-Domain Setting. I pushed a docker container:
ghcr.io/teamhanko/hanko:feat-simplify-config-a820ccd

@like-a-bause like-a-bause requested review from FreddyDevelop, lfleischmann and bjoern-m and removed request for FreddyDevelop and lfleischmann March 10, 2023 07:25
@bjoern-m
Copy link
Contributor

The backend/docs/Config.md file needs to be updated accordingly.

Copy link
Member

@lfleischmann lfleischmann left a comment

Choose a reason for hiding this comment

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

OpenAPI spec also has a small paragraph mentioning CORS config. That one should probably be removed too.

@like-a-bause
Copy link
Contributor Author

like-a-bause commented Mar 29, 2023

Needed changes:

  • Reintroduce cors.allow_origins
  • Forward the new echo middleware flag with * to our users. Don't start the server in that case.

backend/docs/Config.md Outdated Show resolved Hide resolved
backend/server/public_router.go Outdated Show resolved Hide resolved
backend/server/public_router.go Outdated Show resolved Hide resolved
backend/README.md Outdated Show resolved Hide resolved
backend/README.md Outdated Show resolved Hide resolved
deploy/docker-compose/config.yaml Outdated Show resolved Hide resolved
like-a-bause and others added 3 commits April 12, 2023 17:08
Co-authored-by: lfleischmann <67686424+lfleischmann@users.noreply.github.com>
@lfleischmann lfleischmann self-requested a review April 12, 2023 15:43
@like-a-bause like-a-bause merged commit 1def6cf into main Apr 12, 2023
@like-a-bause like-a-bause deleted the feat-simplify-config branch April 14, 2023 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants