Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

With a KeyValueMapOperations policy, variables set via GET are not visible in Trace?

When I use a KVM GET (KeyValueMapOperations, Get) , I am no longer seeing the data i retrieve, in the trace panel at runtime.

Why not?

My policy configuration looks like this:

<KeyValueMapOperations name='KVM-Get-JiraCreds' mapIdentifier='secrets1'>
  <Scope>environment</Scope>
  <Get assignTo='private.jira_username'>
    <Key>
      <Parameter>jiraUser</Parameter>
    </Key>
  </Get>
  <Get assignTo='private.jira_password'>
    <Key>
      <Parameter>jiraPwd</Parameter>
    </Key>
  </Get>
</KeyValueMapOperations>

It seems though, that the data is actually there, in the context variables. It's just that Trace is obscuring or ignoring them. Why? Is this a bug? If not, Can I change this behavior? How?

0 1 1,496
1 REPLY 1