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] Missing user problem during promote/demote #71

Open
Street3r opened this issue Jan 26, 2025 · 0 comments
Open

[Bug] Missing user problem during promote/demote #71

Street3r opened this issue Jan 26, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Street3r
Copy link
Contributor

When promoting a user, you may encounter an issue if the user creation was missed and the user cannot be found. In these situations, create the user and promote them automatically.

Take this to account also in fake product.

{"@timestamp":"2025-01-26T14:54:57.487Z","log.level":"info","message":"Promoting user 'UserPC' to admin","ecs.version":"1.6.0","log":{"logger":"takrmapi.api.usercrud","origin":{"file":{"line":44,"name":"usercrud.py"},"function":"user_promoted"},"original":"Promoting user 'UserPC' to admin"},"process":{"name":"MainProcess","pid":39,"thread":{"id":140522935848960,"name":"MainThread"}}}
{"@timestamp":"2025-01-26T14:54:57.489Z","log.level":"warning","message":"User 'UserPC' certificate check failed ::: [Errno 2] No such file or directory: '/opt/tak/data/certs/files/UserPC.pem'","ecs.version":"1.6.0","log":{"logger":"takrmapi.tak_helpers","origin":{"file":{"line":328,"name":"tak_helpers.py"},"function":"user_cert_validate"},"original":"User 'UserPC' certificate check failed ::: [Errno 2] No such file or directory: '/opt/tak/data/certs/files/UserPC.pem'"},"process":{"name":"MainProcess","pid":39,"thread":{"id":140522935848960,"name":"MainThread"}}}

@Street3r Street3r added the bug Something isn't working label Jan 26, 2025
rambo added a commit to pvarki/docker-rasenmaeher-integration that referenced this issue Jan 26, 2025
rambo added a commit to pvarki/docker-rasenmaeher-integration that referenced this issue Feb 10, 2025
Street3r added a commit to Street3r/docker-rasenmaeher-integration that referenced this issue Feb 17, 2025
* update takserver to 5.3-24

* increase timeout

* update rmapi pointer

* update takrmapi pointer

* battlelog miniwerk configs

* Update compositions for new miniwerk config requirements

* updated api dockerfile

* disable battlelog from manifest in production until we finish integrating it

* log the random callsign we try to get things for to refer to logs

* try to set log rmapi/takrmapi levels via env

* retry the user files

* takintegration race conditions and temp directory handling

* update takrmapi pointer, use prefixed log_level

* fix production log level ENV

* takrmapi mitigations for pvarki/python-tak-rmapi#71

* Add release tag to ENV/ARG for rmapi and rmui

* update api pointer for deployment tag

* Add mTLS verify failure reason to the redirects

* treat 495 as 302 redirect to the error page

* update api pointer to include the new by role and only deleted list endpoints

* update submodule pointers to current mains

* updates path to update

* update takserver pointer, ref 43b9038

* update rmapi pointer to the group names branch

* update takserver pointer to new group names branch

* update nginx tags after rebasing the Snyk update from main

* update submodule pointers to main-merges

* Update README.rst

Added new instructions for running Rasenmaeher on docker environment. Instructions include also the network parts and basic first steps for admin.

* Update README.rst

Fixes on styling of the added instructions

* Update README.rst

Additional design features for the text.

* Update README.rst

Final adjustment on formatting for pull reguest

* Update README.rst

Moving the new instructions to the top of the instructions part of README

---------

Co-authored-by: Eero af Heurlin <eero.afheurlin@iki.fi>
Co-authored-by: Ari Karhunen <ari.karhunen@remod.fi>
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