elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.72k stars 8.14k forks source link

When setting environment variable to `I18N_LOCALE: zh-CN`, Kibana’s Security icon is broken #129893

Open linghengqian opened 2 years ago

linghengqian commented 2 years ago

Kibana version:

Elasticsearch version:

Server OS version:

Browser version:

Browser OS version:

Original install method (e.g. download page, yum, from source, etc.):

Describe the bug:

Steps to reproduce:

  1. Assuming the following docker-compose.yml file, the kibana API key is generated by bin/elasticsearch-create-enrollment-token -s kibana.

    version: "3.8"
    services:
    elasticsearch-node01:
    image: elastic/elasticsearch:8.1.2
    environment:
      bootstrap.memory_lock: true
      ELASTIC_PASSWORD: "1234AF12-12CA-B2E0-BE8B-12345D5C123E"
      ES_JAVA_OPTS: "-Xms4g -Xmx4g"
    volumes:
      - elasticsearch-data01:/usr/share/elasticsearch/data
      - elasticsearch-config01:/usr/share/elasticsearch/config:rw
    ports:
      - "9200:9200"
      - "9300:9300"
    ulimits:
      memlock:
        soft: -1
        hard: -1
    kibana-node01:
    image: elastic/kibana:8.1.2
    ports:
      - "5601:5601"
    volumes:
      - kibana-data01:/usr/share/kibana/data
      - kibana-config01:/usr/share/kibana/config
    volumes:
    elasticsearch-data01:
    driver: local
    elasticsearch-config01:
    driver: local
    kibana-data01:
    driver: local
    kibana-config01:
    driver: local
  2. Start with docker compose up -d. Open Kibana normally, and the icon is normal at this time.

    • image
  3. Then change docker-compose.yml as follows, add environment variable I18N_LOCALE: zh-CN, and docker compose up -d again.

    version: "3.8"
    services:
    elasticsearch-node01:
    image: elastic/elasticsearch:8.1.2
    environment:
      bootstrap.memory_lock: true
      ELASTIC_PASSWORD: "1234AF12-12CA-B2E0-BE8B-12345D5C123E"
      ES_JAVA_OPTS: "-Xms4g -Xmx4g"
    volumes:
      - elasticsearch-data01:/usr/share/elasticsearch/data
      - elasticsearch-config01:/usr/share/elasticsearch/config:rw
    ports:
      - "9200:9200"
      - "9300:9300"
    ulimits:
      memlock:
        soft: -1
        hard: -1
    kibana-node01:
    image: elastic/kibana:8.1.2
    ports:
      - "5601:5601"
    environment:
      I18N_LOCALE: zh-CN
    volumes:
      - kibana-data01:/usr/share/kibana/data
      - kibana-config01:/usr/share/kibana/config
    volumes:
    elasticsearch-data01:
    driver: local
    elasticsearch-config01:
    driver: local
    kibana-data01:
    driver: local
    kibana-config01:
    driver: local
  4. At this time, the Security icon of Kibana is damaged and cannot be viewed, which should not be normal behavior.

Expected behavior:

Screenshots (if relevant):

Errors in browser console (if relevant):

Provide logs and/or server output (if relevant):

Any additional context:

elasticmachine commented 2 years ago

Pinging @elastic/security-solution (Team: SecuritySolution)

linghengqian commented 3 weeks ago

- Should this issue be closed?
azasypkin commented 3 weeks ago

@azasypkin @MindyRS @kevinlog @elasticmachine So, 2 years later I'm back testing the Elastic Stack. This interface no longer appears to exist, so there seems to be no point in keeping this issue open.

I'll defer that decision to @MindyRS @kevinlog