st2client always returns 403
SUMMARY
st2client always returns 403 while trying to read from Datastore.
STACKSTORM VERSION
st2 3.6.0, on Python 3.6.9
OS, environment, install method
https://github.com/StackStorm/st2-docker Up and running behind enterprise proxy.
Steps to reproduce the problem
Inside any Python action.
from st2client.client import Client
c = Client(api_key="<VALID_API_KEY>")
# c = Client(token="<VALID_TOKEN>")
# c = Client()
c.keys.get_by_name(name="anykey")
Expected Results
Value from Datastore, if it exists
Actual Results
403 Client Error: Forbidden
Maybe the user that the API key is for doesn't have permissions to access anykey?
Thanks for contributing to this issue. As it has been 90 days since the last activity, we are automatically marking is as stale. If this issue is not relevant or applicable anymore (problem has been fixed in a new version or similar), please close the issue or let us know so we can close it. On the contrary, if the issue is still relevant, there is nothing you need to do, but if you have any additional details or context which would help us when working on this issue, please include it as a comment to this issue.