Comments (5)
Hail, @MattiaFailla 👋 Welcome to Fief's kingdom!
Our team will get back to you very soon to help.
In the meantime, take a minute to star our repository ⭐️
Farewell!
from fief.
Hail, @MattiaFailla 👋
I've noticed you shared secret values: SECRET
, FIEF_CLIENT_ID
, FIEF_CLIENT_SECRET
, ENCRYPTION_KEY
. Those are highly sensitive and you should keep them secret.
For your security, I've taken the liberty to replace them with dummy values.
from fief.
Thank you for those details!
So it turns out it works with MariaDB, but not MySQL (🙄). I've added it to our CI so we can catch those errors earlier.
The culprit is actually an index on the message column of the AuditLog model. It's a TEXT column, so it's indeed a bit weird to have an index on this, don't really know why I did this.
I'll push a fix soon!
from fief.
Hello @MattiaFailla 👋
Hmm, that's indeed an error during the creation of the database schema. It's strange because Fief is tested against MySQL during CI.
Could you tell me which version of MySQL you are using?
from fief.
Hey @frankie567
I'm using MySQL Server 8.0.31-1.el8
Here is the docker-compose file:
(Please note that I've specified the 0.18 Fief-server version just for testing but this issue is present in every Fief version.)
version: '3'
services:
db:
image: mysql
ports:
- "0.0.0.0:3308:3306"
env_file:
- .env
fief-server:
image: ghcr.io/fief-dev/fief:0.18
command: fief run-server --port 8585
depends_on:
- db
expose:
- 8585
env_file:
- .env
fief-worker:
image: ghcr.io/fief-dev/fief:latest
command: fief run-worker -p 1 -t 1
env_file:
- .env
redis:
image: redis:alpine
command: redis-server --save 60 1 --loglevel warning
volumes:
- redis-data:/data
volumes:
redis-data:
And this is the .env
DEBUG=True
MYSQL_DATABASE=fastapi
MYSQL_ROOT_PASSWORD=root
# Reference: https://docs.fief.dev/self-hosting/environment-variables/
SECRET=XXX
FIEF_CLIENT_ID=XXX
FIEF_CLIENT_SECRET=XXX
ENCRYPTION_KEY=XXX=
PORT=8000
ROOT_DOMAIN=localhost:8000
FIEF_DOMAIN=localhost:8000
[email protected]
FIEF_MAIN_USER_PASSWORD=exampleexample
CSRF_COOKIE_SECURE=False
LOGIN_SESSION_COOKIE_SECURE=False
SESSION_COOKIE_SECURE=False
FIEF_ADMIN_SESSION_COOKIE_SECURE=False
# Read more: https://docs.fief.dev/self-hosting/deployment/setup-database/
DATABASE_TYPE=MYSQL
DATABASE_HOST=db
DATABASE_PORT=3306
DATABASE_USERNAME=root
DATABASE_PASSWORD=root
DATABASE_NAME=fastapi
REDIS_URL=redis://redis:6379
LOGIN_SESSION_COOKIE_NAME=login_session_data
REGISTRATION_SESSION_COOKIE_NAME=registration_session_data
from fief.
Related Issues (20)
- pydantic.error_wrappers.ValidationError HOT 5
- Allow HTTP in public redirect URI HOT 1
- fief_tenants does not exist sqlalchemy.dialects.postgresql.asyncpg.ProgrammingError HOT 5
- custom email (SMTP) not working HOT 3
- Email Provider SendGrid does not work HOT 3
- Feature Request: provide a full docker compose project HOT 2
- 500 Internal Server Error - httpx.ReadTimeout HOT 1
- OpenAPI schema is not generated for create and update users HOT 1
- Long lived DB connections, and unable to apply pgbouncer HOT 1
- Theme variables not correctly applied on parts of Profile page
- Check password strength in Quickstart CLI HOT 2
- Pydantic error in docker Quickstart
- client -> redirect_URI validation flow HOT 3
- DIfficulties and errors when setting up Uvicorn for SSL
- Should login session refresh by itself?
- Override auth pages templates
- Docker Compose guide seems outdated?
- Report configuration errors when trying to use the CLI
- Cannot deploy on Render HOT 1
- copy button is failed at client page HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fief.