Keycloak follow-ups for the dev environment

Đang mở
#71 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
docker-compose, json, python
Lĩnh vực
authentication, devops

Hướng nghiên cứu

The work is in containers/frontend/app-config.js, realm_pyronear.json, etl_scripts, and containers/notebooks/app/api.py; first check the dependency on #68 and read how the init script uses the pyro-scripts service account. Update the dev frontend Keycloak settings and replace both legacy /login/creds logins with that account. Done when the redirect settings are present and neither flow depends on superadmin credentials.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Blocked by #68.

1. Front container (make run) — needed no later than the release of pyronear/new-pyro-platform#295

  • Add KEYCLOAK_URL, KEYCLOAK_CLIENT_ID and KEYCLOAK_REDIRECT_URI (http://localhost:8080/) to containers/frontend/app-config.js.
  • Add http://localhost:8080/* to the redirect URIs and http://localhost:8080 to the web origins of the new-pyro-platform client in realm_pyronear.json.
  • Can be added before the release: the current image ignores these keys.

2. Stop using the legacy login — needed before LEGACY_USER_TOKENS_ENABLED is set to false in pyro-api

  • etl_scripts still logs in with the superadmin credentials through /login/creds.
  • get_token in containers/notebooks/app/api.py does the same.
  • Both should use the pyro-scripts service account, as the init script already does.

Note

  • The realm ships dev secrets in clear and has brute-force protection disabled. Fine for this repository, but it must not be used as a base for the production realm.
Ngôn ngữ chính
Jupyter Notebook
Star
1
Fork
5
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của pyronear/pyro-envdev

Tất cả issue của pyronear/pyro-envdev

Issue tương tự

Thêm issue về Security

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.