travelaudience / kubernetes-nexus

Run Sonatype Nexus Repository Manager OSS on top of Kubernetes (GKE). Includes instructions for automated backups (GCS) and day-to-day usage.
Apache License 2.0
130 stars 61 forks source link

Enable debugger #49

Open GMafra opened 5 years ago

GMafra commented 5 years ago

Hi,

I need to know if there is a way to enable a debugger on the proxy and nexus itself, because even after following the instructions multiple times I still can't get it work, it seems the X-forwarded-user header is not being passed correctly and I end up not being able to log on nexus, I get these errors:

image

Checking the cookies I saw that 3 different JWT tokens are present in the cookie, not sure if this is the expected behavior:

image

pires commented 5 years ago

Hey @GMafra, I suggest you fork the nexus-proxy project in order to validate your assumptions. Then, maybe you'll find an issue and we can discuss it, maybe even contribute a fix. That would be awesome!

GMafra commented 5 years ago

Hi Pires,

Quick question that might solve my problem: Are we required to create users on Nexus even if we have GCP authentication enabled?

From my understanding the Rut Auth capability automatically creates a local nexus user based on the authenticated user that is sent from IAP within the cookie, or is this not correct?