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

Bug: Unauthorized IP #625

Open
kmccmk9 opened this issue Jan 8, 2025 · 1 comment
Open

Bug: Unauthorized IP #625

kmccmk9 opened this issue Jan 8, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@kmccmk9
Copy link

kmccmk9 commented Jan 8, 2025

Is this urgent?

Yes

What parts are affected

Backend

What is the server version

0.6.8

What is the client version

0.6.8

What platform are you using

Android, Web

What's the problem 🤔

When attempting to log in with valid credentials, the frontend reports a wrong username/password. When checking the logs of the backend docker container, it specifies the following:

[2025-01-08 19:04:14,031] WARNING in config: Unauthorized: IP 172.21.0.1 login attemp with wrong username or password

The message seems clear that the IP of the docker frontend is not permitted, but I do not see any advanced configuration options to add it to the deployment. This error and resulting log appear no matter the browser, platform, and even when using the Flutter android app. I've also tried all of these tests using the unified docker container and experience the exact same problem.

Share your logs

[2025-01-08 19:04:14,031] WARNING in config: Unauthorized: IP 172.21.0.1 login attemp with wrong username or password

Share your configuration

version: "3"
services:
    front:
        image: tombursch/kitchenowl-web:v0.6.8
        restart: unless-stopped
        ports:
        - "5001:80"
        depends_on:
        - back
    back:
        image: tombursch/kitchenowl-backend:v0.6.8
        restart: unless-stopped

        environment:
        - JWT_SECRET_KEY=PLEASE_CHANGE_ME
        - FRONT_URL=https://url_here
        volumes:
        - kitchenowl_data:/data
        networks:
        - default
volumes:
    kitchenowl_data:

networks:
    default:
@kmccmk9 kmccmk9 added the bug Something isn't working label Jan 8, 2025
@kmccmk9
Copy link
Author

kmccmk9 commented Jan 18, 2025

Just to follow up, if I configure oauth and try to log in with an account using the same email, it will constantly refresh the login page. If I try to log in with a new user that has never accessed the system before, I am permitted access. This definitely seems to be an issue with the older accounts that have existed since I started using KitchenOwl. Is it possible an upgrade at some point fudged up some data in the database?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant