apiops icon indicating copy to clipboard operation
apiops copied to clipboard

Convert Publisher yaml to classic pipeline

Open Navraj80 opened this issue 8 months ago • 1 comments

Release version

ApiOps v6.0.1.7

Question Details

Subject: Issue with JWT Token Handling in APIOps Publisher Pipeline

Description: As my Organization has restrictions in creating Yaml pipelines at release level. I am trying to create a classic release pipeline for publisher pipeline .We are encountering an issue where the APIOps Publisher pipeline does not correctly handle the JWT token. Even after hardcoding a valid JWT token, the execution fails with the following error: JWT is not well formed, there are no dots (.). The token needs to be in JWS or JWE Compact Serialization Format.

Troubleshooting Steps Taken:

Verified that the JWT token is correctly formatted (three parts separated by dots).
Printed the token before execution to confirm correct passing.
Removed unnecessary quotes while passing the token in the command.

Expected behavior

The APIOps Publisher should accept the valid JWT token without throwing a format error and publish the artifacts to APIM

Actual behavior

The tool incorrectly reports that the token is not well-formed, preventing execution.

Reproduction Steps

Download and extract the latest APIOps Publisher tool.
Define a valid JWT token with three parts (header.payload.signature).
Execute the following command:& "$publisherPath" --config "$artifactPath/configuration.extractor.yaml" --token $jwttesttoken

The process fails, stating that the JWT token is not well-formed.

Navraj80 avatar May 08 '25 11:05 Navraj80

  Thank you for opening this issue! Please be patient while we will look into it and get back to you as this is an open source project. In the meantime make sure you take a look at the [closed issues](https://github.com/Azure/apiops/issues?q=is%3Aissue+is%3Aclosed) in case your question has already been answered. Don't forget to provide any additional information if needed (e.g. scrubbed logs, detailed feature requests,etc.).
  Whenever it's feasible, please don't hesitate to send a Pull Request (PR) our way. We'd greatly appreciate it, and we'll gladly assess and incorporate your changes.

github-actions[bot] avatar May 08 '25 11:05 github-actions[bot]