minio / console

Simple UI for MinIO Object Storage :abacus:
https://min.io/docs/minio/linux/index.html
GNU Affero General Public License v3.0
850 stars 278 forks source link

unpkg.com call in the front #3468

Open p1r4t3-s4il0r opened 1 week ago

p1r4t3-s4il0r commented 1 week ago

NOTE

Please subscribe to our paid subscription plans for 24x7 support from our Engineering team.

Trough a web browser, the login page of minio is making a request to https://unpkg.com/detect-gpu@5.0.38/dist/benchmark/d-amd.json.

Expected Behavior

I want do deactivate this request.

Current Behavior

Request to https://unpkg.com/detect-gpu@5.0.38/dist/benchmark/d-amd.json.

Steps to Reproduce (for bugs)

  1. Go to login page
  2. Open the inspector
  3. Go to network and reload the page
  4. You should see a request to unpkg.com

Context

I need to deactivate this request. Because I want to prevent unwanted call to internet.

Regression

No regression (as far as I know).

Your Environment

ramondeklein commented 1 week ago

Just confirmed that RELEASE.2024-10-29T16-01-48Z is making this request. Just checked the code and this is coming from the LoginWrapper in the MDS component (source). It looks like this is used to determine if a GPU is available to play the background video in the login-page.

p1r4t3-s4il0r commented 1 week ago

Thanks for your answer.

Are you planning on implementing a environment variable to control this behavior ?

Thanks.

harshavardhana commented 1 week ago

Are you planning on implementing a environment variable to control this behavior ?

Set

export MINIO_BROWSER_LOGIN_ANIMATION=off
ramondeklein commented 1 week ago

@harshavardhana This disables the login animation, but it still makes the call to unpkg.com.

ramondeklein commented 1 week ago

See https://github.com/minio/mds/pull/1091.