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

Tokens cleanup task fails when connecting to an outdated database #65

Closed
frankie567 opened this issue Sep 1, 2022 · 0 comments
Closed
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@frankie567
Copy link
Member

Describe the bug

The tokens cleanup task works by iterating over each database to remove the expired tokens. On external databases, it may happen that the schema is not up-to-date and provoke an error, stopping the whole operation.

Expected behavior

The task should silently discard outdated databases. Maybe add a log warning.

Configuration

  • Cloud or self-hosted: Both
  • If self-hosted, Fief version: 0.16.7

Additional context

https://sentry.io/share/issue/c4914db1f8034389a5a4f346e34440cf/

@frankie567 frankie567 added bug Something isn't working good first issue Good for newcomers labels Sep 1, 2022
@frankie567 frankie567 moved this to In Progress in Fief's project planning Sep 5, 2022
@frankie567 frankie567 moved this from In Progress to Todo in Fief's project planning Sep 5, 2022
@frankie567 frankie567 moved this from Todo to In Progress in Fief's project planning Sep 5, 2022
Repository owner moved this from In Progress to Done in Fief's project planning Sep 5, 2022
frankie567 added a commit that referenced this issue Sep 12, 2022
New features and improvements
-----------------------------

* Social authentication: allow your users to authenticate through Google, Facebook, Microsoft and many other providers! [[Documentation](https://docs.fief.dev/getting-started/oauth-providers/)]
* Social authentication: get a user access token for the external provider API through the Admin API [[Documentation](https://docs.fief.dev/going-further/oauth-provider-token/)]
* Audit logging: every actions through the Admin dashboard or the Admin API are now logged into the database.
* Self-hosting: main workspace and first admin user can now be automatically created at server startup, thanks to the new `FIEF_MAIN_USER_EMAIL` and `FIEF_MAIN_USER_PASSWORD` environment variables. [[Documentation](https://docs.fief.dev/self-hosting/quickstart/)]
* Admin API: add OpenAPI tags to better organize interactive  documentation.

Bug fixes
---------

* Fix #65: ignore outdated databases during cleanup task

Documentation
-------------

* Self-hosting: add guidelines to deploy Fief with Docker Compose. [[Documentation](https://docs.fief.dev/self-hosting/deployment/docker-compose/)]
* Self-hosting: add guidelines and blueprint to deploy Fief on Render. [[Documentation](https://docs.fief.dev/self-hosting/deployment/render/)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
Status: Done
Development

No branches or pull requests

1 participant