Please see our Ruby - Supported Technologies page for additional information on our application stacks supported by our Ruby agent.
source 'https://eval.contrastsecurity.com/Contrast/api/repo/rvm’
group :contrast, :development, :testing, :production do
gem 'contrast-agent’
End
bundle config https://eval.contrastsecurity.com/Contrast/api/repo/rvm <USERNAME>:<SERVICE KEY>
bundle update --group contrast
A sample YAML config file is below, but please note that the following variables should be populated with each test run (e.g., by your CI/CD tool):
${app_name}
)${branch_name}
and ${test_run}
)api:
url: https://eval.contrastsecurity.com/Contrast
api_key: API Key from add agent screen in Team Server
service_key: Service Key from add agent screen in Team Server
user_name: Agent user name from add agent screen in Team Server
agent:
service:
logger:
path: contrast_service.log
level: ERROR
host: 127.0.0.1
port: 30555
application:
name: ${app_name}
session_metadata: branchName=${branch_name},testRun=${test_run}