AWS Signer
AWS Signer provides an AWS-compatible control plane for code-signing profiles, signing jobs, signing platforms, profile permissions, and signature revocation. It keeps the profile and job records that clients and infrastructure tools need, while artifact signing is optional and disabled by default.
Service scope
Signer serves regional REST JSON requests for signing resources. Profiles describe how an artifact would be signed. Jobs record a request to use a profile against an S3 source and destination.
The service is available when its service setting is enabled. It stores profiles and jobs by account and Region, so the same name can exist in separate Regions or accounts without sharing state.
API surface
The AWS-compatible API groups operations by the resource that owns the state:
| Resource | Main capabilities |
|---|---|
| Signing profile | Create or update, read, list, cancel, revoke, tag, and manage cross-account permissions |
| Signing job | Start, describe, list, and revoke a recorded signature |
| Signing platform | List supported platforms or read one platform's rules |
| Revocation status | Query the service-level revocation response |
Profiles and jobs use paged list responses. Profile and job details include ARNs, platform data, state, and the S3 locations that define a job request.
References: src/…/SignerController.java• L55-250 src/…/SignerService.java• L193-225 src/…/SignerService.java• L446-523
Signing profiles
A signing profile is the named policy for a class of artifacts. It selects a signing platform and can carry certificate material, signature validity, platform overrides, signing parameters, tags, and cross-account grants.
Profile lifecycle
Each successful put creates or refreshes the profile's current version. The profile keeps one current version and a version ARN. A new version becomes active with the same profile name and keeps values that an update omits.
Profile state controls whether new jobs can use it:
| State | Meaning |
|---|---|
Active | The profile can start signing jobs |
Canceled | The profile remains readable but is hidden from normal lists and cannot start jobs; a later put can make it active again |
Revoked | The profile records a revocation reason and time; it cannot be canceled |
Canceling a profile preserves its ARN and version. Revocation also records the requested effective time and the identity that performed it.
References: src/…/SignerService.java• L113-190 src/…/SignerService.java• L193-303 src/…/SigningProfile.java• L11-18
Profile permissions
Profile permissions let a profile owner grant selected Signer actions to another principal. Each grant names an action, principal, statement ID, and the profile version that received the grant.
Adding or removing a grant changes the profile revision. Removal requires the current revision, so a stale caller receives a conflict instead of silently changing a newer permission set. The service accepts the AWS-grantable signer:SignPayload action even though this emulator does not expose a payload-signing operation.
References: src/…/SignerService.java• L305-371 src/…/SignerController.java• L117-161 src/…/SigningProfile.java• L22-71
Signing jobs
A signing job connects an active profile to an S3 source object and an S3 destination. The job captures the profile version and platform at start time, which keeps later profile changes from changing the meaning of an existing record.
When a caller repeats a request with the same client request token, Signer returns the existing job. A new request is accepted only for an active profile and must include a source bucket, key, and version plus a destination bucket.
The job lifecycle is:
flowchart LR
Request[Start job] --> Check[Check token and active profile]
Check --> Record[Record source, destination, profile version]
Record --> Config{Mock signing enabled?}
Config -->|No| Failed[Failed: no signed object]
Config -->|Yes| Succeeded[Succeeded: destination recorded]
Succeeded --> Revoke[Optional signature revocation]
By default, jobs end in Failed because the service does not create a cryptographic signature or write an S3 artifact. In this state there is no signedObject, signature expiry, or signature to revoke. The optional mock-signing setting records a Succeeded job and a destination key without writing the object; this mode supports clients that need metadata flow rather than a downloadable signature.
References: src/…/SignerService.java• L373-495 src/…/SignerController.java• L164-212 src/…/EmulatorConfig.java• L955-966
Platform validation
Signer platforms define the artifact target and the signing choices that a profile may use. The service exposes a fixed set of AWS-compatible platform descriptions instead of discovering platforms at run time.
The current platform set covers AWS Lambda, Notation OCI, and AWS IoT Device Management. A profile must name one of these platform IDs. Any requested hash algorithm, encryption algorithm, image format, or validity period must fit the selected platform's allowed values.
| Platform family | Artifact format | Size limit | Signature validity | Revocation |
|---|---|---|---|---|
| AWS Lambda | JSON | 50 MB | Default 135 months when omitted | Supported |
| Notation OCI | JSON | 500 MB | Default 135 months when omitted | Supported |
| AWS IoT Device Management | JSON embedded or detached | 50 MB | No expiry by default | Not supported |
Validity periods use days, months, or years with service-wide limits. A profile can override the platform default within those limits. A job in mock mode receives an expiry time only when its platform and profile define one.
References: src/…/SignerPlatforms.java• L16-86 src/…/SignerService.java• L725-801 src/…/SignerController.java• L225-354
Request routing
Signer uses the AWS SigV4 service name to select its request handler. Its public paths are literal paths such as /signing-profiles and /signing-jobs, so routing must distinguish them from S3 path-style bucket paths.
The route filter moves only requests signed for the signer service to an internal Signer path before REST route matching. A request signed for another service keeps its original path and cannot reach Signer. Shared tag paths remain outside the internal prefix and are handled by the common tag interface.
sequenceDiagram
participant Client
participant Router
participant IAM
participant Signer
Client->>Router: SigV4 request for signer
Router->>Router: Read service from credential scope
Router->>IAM: Route signer request through internal path
IAM->>IAM: Check signer action and resource
IAM->>Signer: Allow request
Signer-->>Client: REST JSON response
References: src/…/SignerRouteFilter.java• L13-41 src/…/SignerController.java• L29-41 src/…/ResolvedServiceCatalog.java• L784-787
IAM enforcement
Signer requests pass through the shared IAM enforcement layer before the controller handles them. The layer derives the operation from the signed service and request route, then evaluates the caller's policy against the target profile or other request resource.
A caller without a matching policy is denied even when the route has been rewritten internally. A policy can allow all Signer actions or limit an action such as signer:GetSigningProfile to one profile ARN. Profile permission records are separate from IAM identity policy: they describe cross-account use of a profile, while IAM policy controls whether the caller may invoke the API.
Resource tagging also remains subject to IAM. Tag requests use the shared /tags/{resourceArn} routes and require the matching Signer tagging permission.
See IAM and authentication for the shared policy model and CloudFormation for resource-driven profile creation.
References: src/…/SignerIamEnforcementIntegrationTest.java• L22-26 src/…/SignerIamEnforcementIntegrationTest.java• L68-133 src/…/IamEnforcementFilter.java• L61-94
CloudFormation integration
CloudFormation can manage a signing profile as AWS::Signer::SigningProfile. The resource exposes the profile ARN and current version attributes that other resources can use, including Lambda code-signing configuration.
The resource treats platform, name, and validity as create-only inputs. A tags-only update changes the existing profile's tag set without making a new profile version. A change to a create-only input replaces the profile, while deletion cancels it instead of removing its record.
References: src/…/SignerCfnProvisioner.java• L24-35 src/…/SignerCfnProvisioner.java• L68-95 src/…/SignerCfnProvisioner.java• L145-167
Change checklist
When these files or sections are changed, remember to consider these:
- Keep the public route set, SigV4 service scope, and IAM operation/resource mapping aligned. A route can be reachable but still receive the wrong policy decision.
- Keep profile version, version ARN, revision ID, and permission version behavior aligned across API responses and CloudFormation attributes.
- Keep platform option lists aligned with profile override validation. A platform advertised as valid must accept the same values during profile creation.
- Keep the default and mock job outcomes aligned with
signedObject, expiry, and revocation fields. A success record must not imply an artifact that the service did not create. - Keep profile ARN parsing and shared tag routes account- and Region-scoped.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| Request uses an unknown platform or an unsupported override | Profile creation fails with ValidationException | Read the platform description before setting profile options |
| Job uses a canceled or revoked profile | No job is created | Restore the profile to Active with a new put, or use another profile |
| Default signing mode is used while a caller expects an S3 artifact | Job is Failed and has no signedObject | Enable mock mode only for metadata workflows; use a real signer for artifact output |
| Permission removal uses an old revision ID | Signer returns ConflictException and keeps the grant | Read the current permissions revision before removing a grant |
| Caller policy omits the required Signer action or profile resource | IAM returns access denied before the controller runs | Grant the action on the needed profile ARN or Signer resource |
| Signer route is signed with another service name | The request keeps its path and does not reach Signer | Sign the request with the signer SigV4 service scope |
Key files
| File | Why to read it |
|---|---|
| src/…/SignerService.java | Defines profile, permission, job, platform, tag, and state behavior |
| src/…/SignerController.java | Shows the AWS-compatible REST JSON resource groups and response shapes |
| src/…/SignerPlatforms.java | Defines supported platform capabilities and defaults |
| src/…/SignerRouteFilter.java | Explains SigV4-based routing and the S3 path collision |
| src/…/SigningProfile.java | Defines the profile and cross-account permission state |
| src/…/SigningJob.java | Defines the job state and source, destination, and revocation fields |
| src/…/SignerCfnProvisioner.java | Shows how CloudFormation owns and replaces signing profiles |
| src/…/SignerIntegrationTest.java | Demonstrates the public API contract and default job behavior |
| src/…/SignerIamEnforcementIntegrationTest.java | Demonstrates IAM denial, scoped access, and shared tag enforcement |