kanunnikau commented on issue #2103:
URL: 
https://github.com/apache/incubator-kie-issues/issues/2103#issuecomment-3317069381

   Further down the rabbit hole :)
   
   Building just the CORS proxy (pnpm -F cors-proxy build:dev) failed, 
complaining about dependencies agent-base and https-proxy-agent. It was looking 
for files at the path .../node_modules/.../src/..., while in reality files were 
in .../node_modules/.../dist/....
   
   Building everything worked, though, and I managed to start the CORS proxy 
locally.
   
   ....Aaaaand nothing was happening, just CORS proxy listening at port 7081.
   It's like Sandbox wasn't even reaching it.
   I checked the Docker config. There were lines like this
   KIE_SANDBOX_CORS_PROXY_URL: 
"http://localhost:${KIE_SANDBOX_DISTRIBUTION__corsProxyExposedPort}";
   for the CORS proxy and the extended services.
   But this would not work, would it? Those services are run as separate Docker 
containers, therefore they are all separate "localhosts", no?
   
   What is curious is that in the Sandbox config for the Extended services is 
editable:
   
   <img width="1112" height="561" alt="Image" 
src="https://github.com/user-attachments/assets/5d5be926-010b-4707-b470-00f5ae2e4239";
 />
   
   And, apparently, I had already fixed the localhost here, typing in actual 
local IP address.
   CORS config is not editable. Hardcoding the IP in docker-compose.yaml fixed 
this:
   
   <img width="1112" height="338" alt="Image" 
src="https://github.com/user-attachments/assets/e46123b3-6e5f-4344-89cd-065e5acb2864";
 />
   
   And the CORS Docker container logs came alive! The proxy started receiving 
requests.
   (Which tells us that GitLab token validation happens outside the proxy. As 
well as creating GitLab repos, somehow. As those two things were working even 
when Sandbox couldn't connect to the CORS proxy).
   
   Yet despite the happy messages
   
    New request:  .../bpm/kie/test.git/info/refs?service=git-upload-pack
    Proxying to:  https://.../bpm/kie/test.git/info/refs?service=git-upload-pack
    Request succesfully proxied!
   things aren't quite working.
   
   Cloning only works if I check the "Insecurely disable TLS certificate 
validation" box:
   
   <img width="839" height="618" alt="Image" 
src="https://github.com/user-attachments/assets/76bb1424-c6a3-4307-a58b-b65e3e372182";
 />
   
   <img width="839" height="598" alt="Image" 
src="https://github.com/user-attachments/assets/19047276-503c-4f2a-8ed0-df1be043bcac";
 />
   
   Once I clone a repo (insecurely) I can push, but cannot pull.
   
   <img width="1179" height="294" alt="Image" 
src="https://github.com/user-attachments/assets/c5ac5b1d-d649-418c-9ef7-a233e31f424f";
 />
   
   <img width="670" height="96" alt="Image" 
src="https://github.com/user-attachments/assets/12e7a6e0-cf6a-41f9-a0dd-ba5b80a0d4b4";
 />
   
   <img width="911" height="246" alt="Image" 
src="https://github.com/user-attachments/assets/04699cbc-ca70-423e-b36f-333def332733";
 />
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to