st2 icon indicating copy to clipboard operation
st2 copied to clipboard

st2client always returns 403

Open handziuk opened this issue 4 years ago • 2 comments

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

handziuk avatar Dec 08 '21 15:12 handziuk

Maybe the user that the API key is for doesn't have permissions to access anykey?

minsis avatar Dec 16 '21 16:12 minsis

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.

stale[bot] avatar Apr 16 '22 05:04 stale[bot]