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

Enabling admin fails for newly created users #50

Open
rambo opened this issue Mar 23, 2024 · 2 comments
Open

Enabling admin fails for newly created users #50

rambo opened this issue Mar 23, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@rambo
Copy link
Contributor

rambo commented Mar 23, 2024

takrmapi-1  | {"@timestamp":"2024-03-23T16:52:27.998Z","log.level":"warning","message":"User 'RAMBO' certificate check failed ::: [Errno 2] No such file or directory: '/opt/tak/data/certs/files/RAMBO.pem'","ecs":{"version":"1.6.0"},"log":{"logger":"takrmapi.tak_helpers","origin":{"file":{"line":319,"name":"tak_helpers.py"},"function":"user_cert_validate"},"original":"User 'RAMBO' certificate check failed ::: [Errno 2] No such file or directory: '/opt/tak/data/certs/files/RAMBO.pem'"},"process":{"name":"MainProcess","pid":27,"thread":{"id":135757570011136,"name":"MainThread"}}}
takrmapi-1  | {"@timestamp":"2024-03-23T15:18:45.110Z","log.level":"error","message":"Shell command timed out","ecs":{"version":"1.6.0"},"log":{"logger":"takrmapi.tak_helpers","origin":{"file":{"line":350,"name":"tak_helpers.py"},"function":"add_user_to_tak_with_cert"},"original":"Shell command timed out"},"process":{"name":"MainProcess","pid":27,"thread":{"id":126842218758144,"name":"MainThread"}}}
takrmapi-1  | {"@timestamp":"2024-03-23T15:29:46.727Z","log.level":"error","message":"Shell command timed out","ecs":{"version":"1.6.0"},"log":{"logger":"takrmapi.tak_helpers","origin":{"file":{"line":415,"name":"tak_helpers.py"},"function":"delete_user_with_cert"},"original":"Shell command timed out"},"process":{"name":"MainProcess","pid":28,"thread":{"id":126842218758144,"name":"MainThread"}}}

The correct way to solve these is either through #16 or #15 but if we lack Java and Ignite specialists we need to keep doing these hacks.

@rambo rambo changed the title Enablind admin fails Enabling admin fails Mar 23, 2024
@rambo
Copy link
Contributor Author

rambo commented Mar 23, 2024

The wait-for-it.sh (no longer in the issue) -problem is is fixed by #47, the timeouts etc are still an issue.

@rambo
Copy link
Contributor Author

rambo commented Mar 23, 2024

However using admin codes to log stil fails because the certificates are not yet saved. promote should save the cert embedded in the request as the users cert if one is not found.

@rambo rambo changed the title Enabling admin fails Enabling admin fails for newly created users Mar 23, 2024
@rambo rambo added the bug Something isn't working label Apr 6, 2024
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