Skip to content

xebialabs-community/xlr-essential-app-protection-plugin

Repository files navigation

Build Status

Build Status Codacy License: MIT

Preface

This Plugin offers an interface between Release and Essential Application Protection.

Building the plugin

./gradlew clean build

Testing the plugin

Run the following command to run a local docker container with the plugin installed.

./gradlew runDockerCompose

Per the configuration at src/test/resources/docker/docker-compose.yml, the ports are defined so you can browse the local instance at:

http://localhost:35516

Overview

Features

Server Configuration

Add a sever configuration in the Release Shared Configuration page for each server or login you wish to manage.

Each entry has the following configuration items in its definition:

Basics
  • Title - the name by which you will be referring to this definition in your Release Tasks.
  • Base URL - base URL of the Arxan Developer Portal API (https://api.developer.arxan.com).
Authentication
  • Portal Key (obtained from Developer Portal).
  • Portal Secret (obtained from Developer Portal).
  • License Token (obtained from Developer Portal).
  • AppAware Application Token (found on Developer Portal).
  • AppAware Application Endpoint (found on Developer Portal, currently is https://tps.touchstatistics.com).

The Tasks are based on the Essential Application Protection API Docs.

Get Authentication Token

Use this task to obtain an Authentication Token based on your credentials (Portal Key and Portal Secret).

Input Parameters
  • Server. As configured in Release configuration.
Output Parameters
  • Authentication Token.

Upload APK

Upload the APK to the Essential Application Protection cloud.

Input Parameters
  • Server. As configured in Release configuration.
  • Auth String. Authentication string Bearer ${authToken}.
  • File. Local path to the APK file to upload.
Output Parameters
  • Protection ID. If successfully uploaded, Essential Application Protection provides a ${protectionID}.

Get Status

Get the status of protection.

Input parameters
  • Server. As configured in Release configuration.
  • Auth String. Authentication string Bearer ${authToken}.
  • Protection ID. From previous step, ${protectionID}.
Output Properties
  • Protection Status. done if done.

Download Protected APK

Download the protected APK file.

Input Parameters
  • Server. As configured in Release configuration.
  • Auth String. Authentication string Bearer ${authToken}.
  • Protection ID. From previous step, ${protectionID}.
  • Protected File Download Path. Local path to the folder to which to download the protected APK file.
Output
  • If successful, you should now see the file downloaded to your specified local folder.

Delete APK from Server

Delete the uploaded APK file from the Essential Application Protection cloud.

Input parameters
  • Server. As configured in Release configuration.
  • Auth String. Authentication string Bearer ${authToken}.
  • Protection ID. From previous step, ${protectionID}.
Output Properties
  • Status. 200 means success.

About

Essential App Protection Plugin for Release

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
License.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published