Code Scan Agent
Overview
The PQC Agent uses a download-and-execute deployment model and does not require permanent installation on CI/CD runners.
During pipeline execution, the required agent files are downloaded from a centrally managed repository and executed locally on the runner. Once the scan is completed, no persistent agent service remains installed on the runner.
Deployment Options
The PQC Code Scan Agent is available in the following deployment options:
- Ubuntu 20.04 or later
- RHEL 8 or later
- GLIBC version 2.28 or later
- Any operating system that supports Docker Engine 20.10 or later
- Windows 10 and above with 64-bit architecture
- Windows Server 2019 and above with 64-bit architecture
Required Agent Files
| File | Description |
|---|---|
code-scan-agent |
Executable responsible for performing the code scan. |
config.ini |
Agent configuration file. |
secret.key |
Authentication key used by the agent. |
Execution Flow
- The pipeline downloads the required agent files from the configured repository.
- The files are downloaded to the CI/CD runner executing the pipeline.
- The PQC Agent is executed locally on the runner.
- The code scan is performed and results are generated.
- The pipeline execution completes.
Scalability Across CI/CD Runners
The PQC Agent supports environments containing any number of CI/CD runners.
Each runner independently downloads and executes the required agent files whenever a pipeline is triggered. No centralized agent deployment, synchronization, or runtime coordination between runners is required.
Example: In an environment with 100 CI/CD runners, the PQC Agent does not need to be installed or maintained on each runner. A single pipeline configuration can be reused across all runners, and each runner automatically downloads and executes the agent when the pipeline runs.
DevOps Team Responsibilities
The DevOps team is responsible for configuring the agent download and execution process within the CI/CD pipeline.
- Configuring the centralized location that hosts the required agent files.
- Configuring authentication and access controls for hosted location, if required.
- Configuring the pipeline steps used to download and execute the agent.
- Configuring fallback download sources for high availability, if applicable.
- Ensuring CI/CD runners have the required network connectivity and permissions to access the configured centralized location.
- Maintaining and updating the centrally hosted agent files.
- Reusing the same pipeline configuration across CI/CD runners where appropriate.
PQC Agent Availability and Failover
To improve availability and resiliency, the DevOps team can configure multiple download sources that host the PQC Agent files.
When a CI/CD pipeline is triggered, the pipeline first attempts to download the required files from the primary configured download source. If the download fails or the primary download source is unavailable, the pipeline automatically attempts to download the files from the next configured source based on the predefined failover order.
The failover sequence is fully controlled by the DevOps team through the CI/CD pipeline configuration.
- Reduces dependency on a single download source.
- Improves resilience against infrastructure or network failures.
- Supports business continuity during temporary outages.
- Helps ensure uninterrupted PQC scanning operations when an alternative download source is available.
