Keycloak follow-ups for the dev environment

未关闭
#71 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
45/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
docker-compose, json, python

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.
主要语言
Jupyter Notebook
星标
1
派生
5
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

pyronear/pyro-envdev 的其他 Issue

查看 pyronear/pyro-envdev 的全部 Issue

相似的 Issue

更多 Security Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。