Skip to content

Conversation

@ncode
Copy link
Contributor

@ncode ncode commented Mar 19, 2025

Accessing Nomad via nacp with resolve token enabled will lead to a crash since we pass and empty pointer to applogger, so now we will only try to log if a token is render regardless if enabled or not.

The second part is to change to only log when a token resolution fail, so avoid use popups like the attached image shows

image (5)

@ncode ncode changed the title FIX unauthenticated /ui/ access crash FIX: Accessing UI with unauthenticated and/or expired token lead to a crash Apr 11, 2025
@ncode ncode changed the title FIX: Accessing UI with unauthenticated and/or expired token lead to a crash Draft: Accessing UI with unauthenticated and/or expired token lead to a crash Apr 11, 2025
@ncode
Copy link
Contributor Author

ncode commented Apr 11, 2025

@mxab I will leave as a draft until I find all the corner cases :)

@ncode ncode changed the title Draft: Accessing UI with unauthenticated and/or expired token lead to a crash Accessing UI with unauthenticated and/or expired token lead to a crash Apr 14, 2025
@ncode
Copy link
Contributor Author

ncode commented Apr 14, 2025

We've been running with this patch since last week and found no more issues. So I'm happy with it now.

@mxab
Copy link
Owner

mxab commented Sep 30, 2025

Hi @ncode really sorry for picking this up now, I was in the middle of the otel stuff and just had the time to review and reproduce it now.

I'm currently trying to setup a test for it now an wondering if we should either "ignore" the resolving error like you do it or actually check if is one of the actionable calls i.e. registry, plan or validate and only do then the resolving?

@mxab
Copy link
Owner

mxab commented Oct 3, 2025

I hope you don't might that I'm closing this PR as I think the way where we handle only relevant requests is more suitable #49

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants