cosign.Sign
Explore with Pulumi AI
This signs the provided image digest with cosign.
Create Sign Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Sign(name: string, args: SignArgs, opts?: CustomResourceOptions);
@overload
def Sign(resource_name: str,
args: SignArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Sign(resource_name: str,
opts: Optional[ResourceOptions] = None,
image: Optional[str] = None,
conflict: Optional[str] = None,
fulcio_url: Optional[str] = None,
rekor_url: Optional[str] = None)
func NewSign(ctx *Context, name string, args SignArgs, opts ...ResourceOption) (*Sign, error)
public Sign(string name, SignArgs args, CustomResourceOptions? opts = null)
type: cosign:Sign
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SignArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SignArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SignArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SignArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SignArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var signResource = new Cosign.Sign("signResource", new()
{
Image = "string",
Conflict = "string",
FulcioUrl = "string",
RekorUrl = "string",
});
example, err := cosign.NewSign(ctx, "signResource", &cosign.SignArgs{
Image: pulumi.String("string"),
Conflict: pulumi.String("string"),
FulcioUrl: pulumi.String("string"),
RekorUrl: pulumi.String("string"),
})
var signResource = new Sign("signResource", SignArgs.builder()
.image("string")
.conflict("string")
.fulcioUrl("string")
.rekorUrl("string")
.build());
sign_resource = cosign.Sign("signResource",
image="string",
conflict="string",
fulcio_url="string",
rekor_url="string")
const signResource = new cosign.Sign("signResource", {
image: "string",
conflict: "string",
fulcioUrl: "string",
rekorUrl: "string",
});
type: cosign:Sign
properties:
conflict: string
fulcioUrl: string
image: string
rekorUrl: string
Sign Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Sign resource accepts the following input properties:
- image str
- The digest of the container image to sign.
- conflict str
- How to handle conflicting signature values
- fulcio_
url str - Address of sigstore PKI server (default https://fulcio.sigstore.dev).
- rekor_
url str - Address of rekor transparency log server (default https://rekor.sigstore.dev).
Outputs
All input properties are implicitly available as output properties. Additionally, the Sign resource produces the following output properties:
- id str
- The provider-assigned unique ID for this managed resource.
- signed_
ref str - This always matches the input digest, but is a convenience for composition.
Look up Existing Sign Resource
Get an existing Sign resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: SignState, opts?: CustomResourceOptions): Sign
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
conflict: Optional[str] = None,
fulcio_url: Optional[str] = None,
image: Optional[str] = None,
rekor_url: Optional[str] = None,
signed_ref: Optional[str] = None) -> Sign
func GetSign(ctx *Context, name string, id IDInput, state *SignState, opts ...ResourceOption) (*Sign, error)
public static Sign Get(string name, Input<string> id, SignState? state, CustomResourceOptions? opts = null)
public static Sign get(String name, Output<String> id, SignState state, CustomResourceOptions options)
resources: _: type: cosign:Sign get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Conflict string
- How to handle conflicting signature values
- Fulcio
Url string - Address of sigstore PKI server (default https://fulcio.sigstore.dev).
- Image string
- The digest of the container image to sign.
- Rekor
Url string - Address of rekor transparency log server (default https://rekor.sigstore.dev).
- Signed
Ref string - This always matches the input digest, but is a convenience for composition.
- Conflict string
- How to handle conflicting signature values
- Fulcio
Url string - Address of sigstore PKI server (default https://fulcio.sigstore.dev).
- Image string
- The digest of the container image to sign.
- Rekor
Url string - Address of rekor transparency log server (default https://rekor.sigstore.dev).
- Signed
Ref string - This always matches the input digest, but is a convenience for composition.
- conflict String
- How to handle conflicting signature values
- fulcio
Url String - Address of sigstore PKI server (default https://fulcio.sigstore.dev).
- image String
- The digest of the container image to sign.
- rekor
Url String - Address of rekor transparency log server (default https://rekor.sigstore.dev).
- signed
Ref String - This always matches the input digest, but is a convenience for composition.
- conflict string
- How to handle conflicting signature values
- fulcio
Url string - Address of sigstore PKI server (default https://fulcio.sigstore.dev).
- image string
- The digest of the container image to sign.
- rekor
Url string - Address of rekor transparency log server (default https://rekor.sigstore.dev).
- signed
Ref string - This always matches the input digest, but is a convenience for composition.
- conflict str
- How to handle conflicting signature values
- fulcio_
url str - Address of sigstore PKI server (default https://fulcio.sigstore.dev).
- image str
- The digest of the container image to sign.
- rekor_
url str - Address of rekor transparency log server (default https://rekor.sigstore.dev).
- signed_
ref str - This always matches the input digest, but is a convenience for composition.
- conflict String
- How to handle conflicting signature values
- fulcio
Url String - Address of sigstore PKI server (default https://fulcio.sigstore.dev).
- image String
- The digest of the container image to sign.
- rekor
Url String - Address of rekor transparency log server (default https://rekor.sigstore.dev).
- signed
Ref String - This always matches the input digest, but is a convenience for composition.
Package Details
- Repository
- cosign chainguard-dev/terraform-provider-cosign
- License
- Notes
- This Pulumi package is based on the
cosign
Terraform Provider.