Keycloak follow-ups for the dev environment
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- docker-compose, json, python
- Domain
- authentication, devops
Research direction
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.
Written by the indexing model from the issue text.
Description
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_IDandKEYCLOAK_REDIRECT_URI(http://localhost:8080/) tocontainers/frontend/app-config.js. - Add
http://localhost:8080/*to the redirect URIs andhttp://localhost:8080to the web origins of thenew-pyro-platformclient inrealm_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_scriptsstill logs in with the superadmin credentials through/login/creds.get_tokenincontainers/notebooks/app/api.pydoes the same.- Both should use the
pyro-scriptsservice 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.
- Dominant language
- Jupyter Notebook
- Stars
- 1
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from pyronear/pyro-envdev
-
enhancement good first issue help wanted
Difficulty 3/5 1-2 days Newbie friendliness 64/100
pyronear/pyro-envdev#64 ·
-
enhancement help wanted
Difficulty 3/5 1-2 days Newbie friendliness 68/100
pyronear/pyro-envdev#63 ·
-
enhancement help wanted
Difficulty 4/5 3-5 days Newbie friendliness 48/100
pyronear/pyro-envdev#62 ·
-
enhancement good first issue help wanted
Difficulty 3/5 1-2 days Newbie friendliness 57/100
pyronear/pyro-envdev#61 ·
-
Playwright test: acknowledge an alertMay be free again @princecherry9905 claimed this 33 days ago, and no pull request is open. Openenhancement good first issue help wanted
Difficulty 3/5 1-2 days Newbie friendliness 57/100
pyronear/pyro-envdev#60 · 1 comment ·
All issues in pyronear/pyro-envdev
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
bug module:core
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
digitalfabrik/integreat-app#4558 ·
Maintainers usually reply within 5 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
google/osv-scanner#3327 ·
Maintainers usually reply within 1 day