SeaLights Agent Token Security
Last updated
Was this helpful?
Instructions for generating a SeaLights Agent token can be found here.
The SeaLights Java Agent requires a valid SeaLights Agent token for authorization. This agent token can be passed as a string (using --token), in a text file (using --tokenFile) or as an environment variable.
We recommend storing sensitive data like your SeaLights Agent Token using secure Secrets in your pipeline.
An alternative/supplemental approach is described below.
Background: The SeaLights Java Agent requires an Agent Token for authorization. In environments where using secure Secrets is not an option and/or security policies requires to use encrypted credentials, the SeaLights Java agents and build plugins support the use of encoded token values.
Parameter: encodeToken *See example below
Scope: The SeaLights Build Scanner can be used to generate an encoded version of your Agent Token.
Since:
Java Agent: 4.0.2621
Maven Plugin: 4.0.1135
Gradle Plugin: 4.0.985
Use the SeaLights Build Scanner to encode your SeaLights Agent Token
as a string:
as a file
The encoded token will be saved in the specified output file (e.g., encoded.txt).
The encoded SeaLights Agent Token can be used in the same way as the token you download from the SeaLights settings page.
The encoded value can be passed using either the --token or --tokenFile arguments.
Last updated
Was this helpful?
Was this helpful?
java -jar sl-build-scanner.jar encodeToken --tokenFile sltoken.txt --outputFile encoded.txtjava -jar sl-build-scanner.jar encodeToken --token <token-value-to-encode> --outputFile encoded.txt
