mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -05:00
Signer was the last control plane Floci's CloudFormation provisioner stubbed: SignerCfnProvisioner recorded only the identifiers a template handed it, with a comment saying Floci has no Signer API. This serves the API, so an SDK, the CLI or a stack sees the profile it actually created. Cancellation keeps the profile, as AWS does: it stays readable through GetSigningProfile with the same ARN and version and the status Canceled, it stops accepting jobs, and ListSigningProfiles hides it unless includeCanceled is set or statuses names Canceled. A PutSigningProfile on the same name brings it back as a new active version. A signing job fails by default, and says why. Nothing on this machine signs the artifact, so a succeeded job would advertise a signedObject key that does not exist and every download of it would fail; the job instead completes as Failed with a statusReason naming the object that was not written, and RevokeSignature refuses it because there is no signature to revoke. Metadata-only callers can set floci.services.signer.mock-signing-jobs=true, which records jobs as succeeded and is documented as a mock rather than as AWS behaviour. Signer routes collide with S3's path-style ones, so a request signed for the signer scope is rewritten onto an internal prefix before matching. That rewrite used to happen before IAM resolved the action from the path, which left every Signer call unchecked; IamActionRegistry now strips the internal prefix the signing service owns, and SignerIamEnforcementIntegrationTest proves a key with no policy is refused while one with signer:* is allowed. Co-authored-by: David Guardiola <davidguardiola@gmail.com>