Discovery feature: how to activate

From changelog I see new realse have corteza discovery feature, but how to activate / use it?

Hi @simonetravaglini, I recommend this as a starting point: Corteza Discovery :: Corteza Docs. Let us know if you get stuck.

Corteza Discovery is available on the 2022.3 version we released last week, so if you didn’t already, please make sure you upgrade first.

Cheers, Mia

2 Likes

@mia.arh i also tried following this but together with setting those vars:

DISCOVERY_ENABLED=true
DISCOVERY_BASE_URL=your-discovery-server-base-url

The ‘Discovery’ app doesn’t show on the home screen, how to ‘activate’ this app to actually show up?

(when setting DISCOVERY_ENABLED to true, the ‘Discovery settings’ buttons do show up

Using 2022.3.5

Hi @mia.arh ,

I tried to get discovery to run as well. I wanted to start by adjusting the docker-compose file:

  es:
    image: opensearchproject/opensearch:1.3.0
    restart: on-failure
    networks: [ internal ]
    environment:
      - cluster.name=es-docker-cluster
      - node.name=es
      - cluster.initial_master_nodes=es
      - bootstrap.memory_lock=true # along with the memlock settings below, disables swapping
      - OPENSEARCH_JAVA_OPTS=-Xms8000m -Xmx8000m # minimum and maximum Java heap size, recommend setting both to 50% of system RAM
      - DISABLE_INSTALL_DEMO_CONFIG=true
      - DISABLE_SECURITY_PLUGIN=true
      - VIRTUAL_HOST=es.${DOMAIN}
      - LETSENCRYPT_HOST=es.${DOMAIN}
    ulimits:
      memlock:
        soft: -1
        hard: -1
    volumes:
      - ./data/es:/usr/share/elasticsearch/data

  discovery:
    image: cortezaproject/corteza-server-discovery:${VERSION}
    restart: on-failure
    env_file: [ .env ]
    depends_on: [ es, server ]
    networks: [ proxy, internal ]
    environment:
      VIRTUAL_HOST: discovery.${DOMAIN}
      VIRTUAL_PORT: 80
      LETSENCRYPT_HOST: discovery.${DOMAIN}

In .env i inserted the lines like in description but i have no starting point at what to insert in the EXAMPLES like these:

DISCOVERY_INDEXER_PRIVATE_INDEX_CLIENT_KEY=${PRIVATE_KEY_EXAMPLE}
DISCOVERY_INDEXER_PRIVATE_INDEX_CLIENT_SECRET=${SECRET_EXAMPLE}
DISCOVERY_SEARCHER_CLIENT_KEY=${CLIENT_KEY_EXAMPLE}
DISCOVERY_SEARCHER_CLIENT_SECRET=${CLIENT_SECRET_EXAMPLE}
DISCOVERY_SEARCHER_JWT_SECRET=${JWT_SECRET_EXAMPLE}
DISCOVERY_SEARCHER_ALLOWED_ROLE=${ROLE_ALLOWED_EXAMPLE}

opensearch should be started with no security plugin enabled, so i dont quite get why these keys are required in the first place.
can you please give me a direction how to generate these keys?

Thanks in Advance and please keep up the great work