Need an explanation for the Kibana Licensing

I read this: License settings | Reference but there are some things I dont understand.

This issue says it is only for elasticsearch: Unable to configure xpack license setting via ENV vars · Issue #78 · elastic/kibana-docker · GitHub . Does this mean Kibana has no licenses?

Does this variable only set the license type for Elasticsearch, or does it set it for Kibana as well?

xpack.license.self_generated.type

Also, what version do I get with the trial? Is it the full enterprise experience?

HI @ItsMeBrille

An elastic cluster is "Licensed" not individual components.
That license is applied / stored in Elasticsearch.
There are 2 ways to CRUD licenses for a normal self managaed clusters

  1. Via the Elasticsearch license API
  2. Via Kibana - Stack Management -> License Management

Via Docker this worked for me in the elasticsearch definition

    environment:
      - ES_JAVA_OPTS=-Xms2g -Xmx2g
      - bootstrap.memory_lock=true
      - discovery.type=single-node
      - xpack.security.enabled=false
      - xpack.security.enrollment.enabled=false
      - xpack.license.self_generated.type=trial