Introducing a new way to review your PRs.

Read the announcement

floci-io / floci

Light, fluffy, and always free - The AWS Local Emulator alternative

View on GitHub

38 documents · Updated Nov 23, 2026

docs / svc-signer

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:

ResourceMain capabilities
Signing profileCreate or update, read, list, cancel, revoke, tag, and manage cross-account permissions
Signing jobStart, describe, list, and revoke a recorded signature
Signing platformList supported platforms or read one platform's rules
Revocation statusQuery 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:

StateMeaning
ActiveThe profile can start signing jobs
CanceledThe profile remains readable but is hidden from normal lists and cannot start jobs; a later put can make it active again
RevokedThe 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 familyArtifact formatSize limitSignature validityRevocation
AWS LambdaJSON50 MBDefault 135 months when omittedSupported
Notation OCIJSON500 MBDefault 135 months when omittedSupported
AWS IoT Device ManagementJSON embedded or detached50 MBNo expiry by defaultNot 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

TriggerConsequenceGuard
Request uses an unknown platform or an unsupported overrideProfile creation fails with ValidationExceptionRead the platform description before setting profile options
Job uses a canceled or revoked profileNo job is createdRestore the profile to Active with a new put, or use another profile
Default signing mode is used while a caller expects an S3 artifactJob is Failed and has no signedObjectEnable mock mode only for metadata workflows; use a real signer for artifact output
Permission removal uses an old revision IDSigner returns ConflictException and keeps the grantRead the current permissions revision before removing a grant
Caller policy omits the required Signer action or profile resourceIAM returns access denied before the controller runsGrant the action on the needed profile ARN or Signer resource
Signer route is signed with another service nameThe request keeps its path and does not reach SignerSign the request with the signer SigV4 service scope

Key files

FileWhy to read it
src/…/SignerService.javaDefines profile, permission, job, platform, tag, and state behavior
src/…/SignerController.javaShows the AWS-compatible REST JSON resource groups and response shapes
src/…/SignerPlatforms.javaDefines supported platform capabilities and defaults
src/…/SignerRouteFilter.javaExplains SigV4-based routing and the S3 path collision
src/…/SigningProfile.javaDefines the profile and cross-account permission state
src/…/SigningJob.javaDefines the job state and source, destination, and revocation fields
src/…/SignerCfnProvisioner.javaShows how CloudFormation owns and replaces signing profiles
src/…/SignerIntegrationTest.javaDemonstrates the public API contract and default job behavior
src/…/SignerIamEnforcementIntegrationTest.javaDemonstrates IAM denial, scoped access, and shared tag enforcement