Skip to content

Unable to decrypt key from datastore inside mistral-v2 workflow  #4461

@hasija

Description

@hasija
SUMMARY

Not able to fetch Decrypted value of key stored in the datastore through command <% st2kv('testkey',decrypt=true) %> inside a mistral-v2 workflow.
It is giving back the encrypted value of the key. According to the documentation : https://docs.stackstorm.com/mistral_yaql.html , as it says in note i did the same.

ISSUE TYPE
  • Bug Report
STACKSTORM VERSION

st2 2.9.1, on Python 2.7.5

OS / ENVIRONMENT / INSTALL METHOD

CentOS 7

STEPS TO REPRODUCE
st2 key set testkey testval --encrypt
  tasks:
    TestTask:
      action: core.noop
      publish:
        password: <% st2kv('system.testkey',decrypt=true) %>
EXPECTED RESULTS

testval

ACTUAL RESULTS

30303030302A93583622D1B1145E678F02CF014691DD6DC1FAC7CE6D1C8597F3AA29ED52305ABA1C1B42E569123A7220FD50B37B12B430E893

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions