akamai / AkamaiOPEN-edgegrid-python

This library implements an Authentication handler for the Akamai OPEN EdgeGrid Authentication scheme
Apache License 2.0
88 stars 52 forks source link

Gitlab CI/CD Jobs failing due to authorization error when using Akamai api #47

Closed var-sha612 closed 4 years ago

var-sha612 commented 4 years ago

Goal:

I am trying to setup ci/cd for my application using gitlab.

Background Info:

I am using Akamai API in my app using AkamaiOPEN-edgegrid-python. I have setup the Akamai api tokens in the Gitlab Environment variables section.

Problem

I have played around with my application locally multiple times and I did not run into any issues related to authorization issues. When I setup the .gitlab-ci.yml to trigger the gitlab runner, I am seeing 401 error..

'title': 'Not authorized', 'status': 401, 'detail': 'The signature does not match'

I double checked the credentials for typo/newline issues in the environment variables section and everything looks correct.

It looks like the credentials are being accessed successfully but for some reason I see not authorized error.

I wanted to clarify if this is related to any other issue that I am not aware of in the authorization world or could it be due to the this package?

I did spend considerable amount of time troubleshooting this issue but no luck yet. Any help/guidance to troubleshoot this will be appreciated.

Thanks!