Skip to content

ST2_AUTH_TOKEN env variable set in sensor container but not in action leading to issues #2693

@lakshmi-kannan

Description

@lakshmi-kannan

User was following this doc to access key value items instead of datastore services but it looks like we don't set the ST2_AUTH_TOKEN env variable in action runners. This means the same code works in sensor but fails in action complaining about auth.

lkannan@HQ2-LC02QV2NDFVH8 /Volumes/workspace/src/storm/st2 (master●)$ ag "AUTH_TOKEN_ENV_VARIABLE_NAME"       [ruby-2.0.0p648]
st2common/st2common/constants/system.py
22:    'AUTH_TOKEN_ENV_VARIABLE_NAME',
29:AUTH_TOKEN_ENV_VARIABLE_NAME = 'ST2_AUTH_TOKEN'

st2reactor/st2reactor/container/process_container.py
30:from st2common.constants.system import AUTH_TOKEN_ENV_VARIABLE_NAME
297:        env[AUTH_TOKEN_ENV_VARIABLE_NAME] = temporary_token.token
lkannan@HQ2-LC02QV2NDFVH8 /Volumes/workspace/src/storm/st2 (master●)$

Also related: StackStorm/st2docs#156

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions