Login window when running with Docker compose (SZ-21)
Artur Hefczyc opened 4 weeks ago

I am trying to run Sztab locally with Docker Compose as described in README.md file.

I am getting browser authentication window like in the screenshot. But there are no details in documentation about what auth credentials to use.

By the way, the port 8080 used as default in docker file and docker compose is usually already used by something else. Maybe we could use some other port not commonly taken?

screenshot

  • rk@tigase.net commented 4 weeks ago

    Will start on this first thing tomorrow - troubleshooting issue SZ-20 took me on scenic route.

  • rk@tigase.net changed state to 'In Progress' 4 weeks ago
    Previous Value Current Value
    Open
    In Progress
  • rk@tigase.net commented 4 weeks ago

    Please note that I am completing he functionality with REST as the UI and hence you should be as of now testing functionality using cURL or httpie (I am publishing the swagger dashboard to document the REST APIs).

    Once milestone 1 is done, I will add a Angular/Typescript based UI.

  • rk@tigase.net commented 3 weeks ago

    Work Log for SZ-21: Shift Sztab Port and Update AuthN

    Branch: bugfix/sz21-shift-sztabport-authn
    Summary:

    • Changed Sztab backend port from 80808181 to avoid collision with other local services.
    • Moved DataBootstrapper from com.sztab.config to com.sztab.data for clarity.
    • Updated application.yml to match new port and cleaned up bootstrapping logic.
    • Removed obsolete data-postgresql.sql (superseded by @PostConstruct bootstrapping).
    • Updated docker-compose.yml and added docker-compose.override.yml:
      • Tagged image as sztab-local:1.3
      • Mapped new port 8181
    • Regenerated admin password hash using bcrypt:
      docker run --rm python:3-alpine sh -c "pip install bcrypt > /dev/null && python -c 'import bcrypt; print(bcrypt.hashpw(b\"admin\", bcrypt.gensalt()).decode())'"
      
    • Manually updated Postgres user table with new hash:
      UPDATE "user"
      SET password = '<new bcrypt hash>'
      WHERE username = 'admin';
      
    • Restarted backend container and verified Basic Auth works:
      curl -u admin@sztab.local:admin http://localhost:8181/api/users
      
    • Verified Actuator is up:
      curl http://localhost:8181/actuator/health
      
    • Verified bootstrapped admin user has all 3 roles:
      • ADMIN
      • DEVELOPER
      • QA_ENGINEER

    Resolution:

    • Committed all changes to bugfix/sz21-shift-sztabport-authn
    • Merged into wolnosc
    • Tagged image as sztab-local:1.3
    • Confirmed all integration steps completed successfully
  • rk@tigase.net commented 3 weeks ago
     % git tag v1.3
     % git push origin v1.3
     Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
     To https://tigase.dev/sztab.git
     * [new tag]         v1.3 -> v1.3
     %
     % git checkout wolnosc
     % git pull origin wolnosc
     % git merge --no-ff bugfix/sz21-shift-sztabport-authn -m "Merge bugfix/sz21-shift-sztabport-authn: Refactor DataBootstrapper, update ports, image to 1.3"
     % git push origin wolnosc
     % git branch -d bugfix/sz21-shift-sztabport-authn\n
     % git push origin --delete bugfix/sz21-shift-sztabport-authn
     % 
    
    
  • rk@tigase.net changed state to 'Closed' 3 weeks ago
    Previous Value Current Value
    In Progress
    Closed
  • Artur Hefczyc referenced from other issue 3 weeks ago
issue 1 of 1
Type
New Feature
Priority
Normal
Assignee
Version
none
Sprints
n/a
Customer
n/a
Issue Votes (0)
Watchers (3)
Reference
SZ-21
Please wait...
Page is in error, reload to recover