Skip to content

Environment Variables: Inconsistency between docs & code #1781

@anhldbk

Description

@anhldbk

Describe the issue

This is an accompanied issue with the unmerged PR dapr/cli#770.

I spotted the inconsistency in following sources:

  • Our document
  • Env passed by CLI to child apps
  • Our Python SDK: global settings

URL of the docs

Screenshots

Screen Shot 2021-09-12 at 16 20 23

To summarize, here are the inconsistencies

Variable Fact Note
APP_ID Expected from Python SDK, not defined by docs
APP_PORT Expected from Python SDK, not defined by docs port of apps, http/grpc depending on mode.
APP_TOKEN_API Expected by Doc. dapr/cli does not pass to child apps
DAPR_METRICS_PORT Not defined by docs. Used by dapr/cli, Python SDK
DAPR_PROFILE_PORT Expected from Python SDK, not defined by docs
DAPR_PLACEMENT_HOST Expected by docs. dapr/cli does not pass to child apps
DAPR_TOKEN_API Expected by docs. dapr/cli does not pass to child apps
HOST_ADDRESS Expected from Python SDK, not defined by docs

Questions

I want to correct our docs. So please answer following questions

  1. For expected-but-not-defined variables, what should we do? Define them in docs?
  • APP_ID
  • APP_PORT
  • APP_TOKEN_API
  • DAPR_METRICS_PORT
  • DAPR_PROFILE_PORT
  • HOST_ADDRESS
  1. For defined-but-not-passed variables, do we need to change dapr/cli or just remove them?
  • DAPR_PLACEMENT_HOST
  • DAPR_TOKEN_API
  1. If we pass APP_PORT, do we need to pass the associated mode? Actually I can't find things related to mode in our documentation. The most resemble to that variable is app-protocol

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions