Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Rename dataHash fields

Carlos Monastyrski6cc917acdd07
diff --git a/backend/src/services/approval-policy/code-signing/code-signing-policy-enums.ts b/backend/src/services/approval-policy/code-signing/code-signing-policy-enums.ts
index 04e1d38d3d..517f83cf9f 100644
--- a/backend/src/services/approval-policy/code-signing/code-signing-policy-enums.ts
+++ b/backend/src/services/approval-policy/code-signing/code-signing-policy-enums.ts
@@ -15,5 +15,5 @@ export const CODE_SIGNING_SCOPE_FIELD_LABELS: Record<CodeSigningScopeField, stri
[CodeSigningScopeField.Hostname]: "hostname",
[CodeSigningScopeField.OsUsername]: "OS username",
[CodeSigningScopeField.IpAddress]: "IP address",
- [CodeSigningScopeField.DataHash]: "data digest"
+ [CodeSigningScopeField.DataHash]: "data hash"
};
diff --git a/backend/src/services/approval-policy/code-signing/code-signing-policy-schemas.ts b/backend/src/services/approval-policy/code-signing/code-signing-policy-schemas.ts
index a7fa2d8fe6..c37b9ef306 100644
--- a/backend/src/services/approval-policy/code-signing/code-signing-policy-schemas.ts
+++ b/backend/src/services/approval-policy/code-signing/code-signing-policy-schemas.ts
@@ -65,7 +65,7 @@ export const CodeSigningScopeSchema = z.object({
.optional()
.transform((value) => (value === "" ? undefined : value))
.refine((value) => value === undefined || z.string().ip().safeParse(value).success, "Must be a valid IP address"),
- [CodeSigningScopeField.DataHash]: scopeSha256("Data digest must be a 64-character SHA-256 hex string")
+ [CodeSigningScopeField.DataHash]: scopeSha256("Data hash must be a 64-character SHA-256 hex string")
});
export const CodeSigningScopeInputSchema = CodeSigningScopeSchema.strict();
diff --git a/docs/documentation/platform/pki/code-signing/approvals.mdx b/docs/documentation/platform/pki/code-signing/approvals.mdx
index 53e2b25c3d..74314a83db 100644
--- a/docs/documentation/platform/pki/code-signing/approvals.mdx
+++ b/docs/documentation/platform/pki/code-signing/approvals.mdx
@@ -100,7 +100,7 @@ By default an approval means "this member may sign N times before it expires". E
| **Hostname** | The machine the sign calls come from. |
| **OS Username** | The operating system account running the signing tool. |
| **IP Address** | The address sign calls have to arrive from, for example a build agent's egress address. Infisical reads the address off the sign call itself, the same way audit logs record it, so the caller cannot present a different one. |
-| **Data Digest** | The SHA-256 digest of the payload submitted for signing, which pins the approval to one artifact. Signing tools submit a digest of the file rather than the file itself, so this is not the same value as `sha256sum yourfile`. The [PKCS#11 module](/documentation/platform/pki/code-signing/pkcs11-module) and the Windows KSP fill it in for you. |
+| **Data Hash** | The SHA-256 digest of the payload submitted for signing, which pins the approval to one artifact. Signing tools submit a digest of the file rather than the file itself, so this is not the same value as `sha256sum yourfile`. The [PKCS#11 module](/documentation/platform/pki/code-signing/pkcs11-module) and the Windows KSP fill it in for you. |
<Warning>
**A parameter you fill in has to match every time.** If a scoped approval still has 999 signatures left but you switch to a different machine, tool, or command than the one you declared, those sign calls are denied. When signing suddenly stops working under an approval that clearly has signatures remaining, compare your current signing setup against the scope on the request: that mismatch is almost always the cause. To sign in a different situation, open a new request describing it.
@@ -120,12 +120,12 @@ By default an approval means "this member may sign N times before it expires". E
### Scoping to one artifact
-Pinning an approval to a **Data Digest** is the tightest option: the approver signs off on one file rather than on a window of time, and no other payload can be signed under it.
+Pinning an approval to a **Data Hash** is the tightest option: the approver signs off on one file rather than on a window of time, and no other payload can be signed under it.
The [PKCS#11 module](/documentation/platform/pki/code-signing/pkcs11-module) and the [Windows KSP](/documentation/platform/pki/code-signing/windows-ksp) fill this in for you. When signing is denied, the request they open is already scoped to the artifact of the denied attempt, along with the command and machine it came from, so you approve it in Infisical and re-run the same command.
<Tip>
- For release pipelines, pair a data digest scope with a signature count of **1**. The approval then covers exactly one signature over exactly one file.
+ For release pipelines, pair a data hash scope with a signature count of **1**. The approval then covers exactly one signature over exactly one file.
</Tip>
<Note>
@@ -173,7 +173,7 @@ There are two ways someone gets active access on a Signer: Administrators **pre-
| **Justification** | Short note recorded on the access record for audit. Required. |
| **Signatures allowed** | How many sign operations the access permits. Capped at the policy's **Signatures per approval**. Leave empty to fall back to the policy ceiling. |
| **How long the approval lasts** | How long the access stays usable, counted from the moment the access is granted. Capped at the policy's **Signing window**. |
- | **Scope this request** | Optional. Expand it to [scope](#scoping-an-approval) the access to a specific command, signing tool, checksum, machine, OS account, IP address, or payload digest. Useful for pre-approving a known build agent: set its address and the access only works from there. |
+ | **Scope this request** | Optional. Expand it to [scope](#scoping-an-approval) the access to a specific command, signing tool, checksum, machine, OS account, IP address, or data hash. Useful for pre-approving a known build agent: set its address and the access only works from there. |
<Note>
Per-access values cannot exceed the policy ceilings. Requesting `maxSignings=10` against a policy that allows 3 returns a 400 with a clear message. Omitting a field that the policy caps simply clamps to the ceiling, never silently unlimited.
@@ -202,7 +202,7 @@ There are two ways someone gets active access on a Signer: Administrators **pre-
|-------|-------------|
| **Signatures requested** | How many sign operations you need. Capped at the policy's **Signatures per approval**. Leave empty to fall back to the policy ceiling. |
| **How long the approval lasts** | How long you need the access for, counted from the moment approvals complete. Capped at the policy's **Signing window**. Waiting for an approver does not eat into it. |
- | **Scope this request** | Optional. Expand it to [scope](#scoping-an-approval) your access to the command, signing tool, checksum, machine, OS account, IP address, or payload digest you will sign with. Approvers see whatever you declare, and the access only covers matching sign calls. |
+ | **Scope this request** | Optional. Expand it to [scope](#scoping-an-approval) your access to the command, signing tool, checksum, machine, OS account, IP address, or data hash you will sign with. Approvers see whatever you declare, and the access only covers matching sign calls. |
<Note>
Submitting a request with the same scope as one you already have pending returns the pending request instead of opening a duplicate. Signing clients that auto-request access can safely retry without flooding approvers.
diff --git a/docs/documentation/platform/pki/code-signing/pkcs11-module.mdx b/docs/documentation/platform/pki/code-signing/pkcs11-module.mdx
index 9c2ee7ea75..a98f11c36b 100644
--- a/docs/documentation/platform/pki/code-signing/pkcs11-module.mdx
+++ b/docs/documentation/platform/pki/code-signing/pkcs11-module.mdx
@@ -213,7 +213,7 @@ The request is [scoped](/documentation/platform/pki/code-signing/approvals#scopi
### Leaving parameters out of a request
-Every parameter on a request has to match at signing time, so a request that names the artifact digest covers exactly one artifact. To have one approval cover a series of builds, name the parameters that vary in `approval.exclude_scope_fields` and the module leaves them off every request it opens:
+Every parameter on a request has to match at signing time, so a request that names the artifact hash covers exactly one artifact. To have one approval cover a series of builds, name the parameters that vary in `approval.exclude_scope_fields` and the module leaves them off every request it opens:
```json
{
@@ -233,7 +233,7 @@ Leave out only what genuinely varies, and be aware that dropping a parameter wid
Excluding every parameter leaves the request with no scope at all. The resulting approval permits any command, on any machine, against any artifact, for the whole of its window and signature count, which is the same access you would have with no scoping at all. Excluding `data_hash` alone is almost always what a build pipeline needs.
</Warning>
-An excluded parameter is still recorded on the signing operation, so the command, machine, account and artifact digest behind every signature stay available to auditors even when they no longer constrain the approval.
+An excluded parameter is still recorded on the signing operation, so the command, machine, account and artifact hash behind every signature stay available to auditors even when they no longer constrain the approval.
### Scoping by address
diff --git a/docs/documentation/platform/pki/code-signing/windows-ksp.mdx b/docs/documentation/platform/pki/code-signing/windows-ksp.mdx
index 6fbb00a22e..c8358ca137 100644
--- a/docs/documentation/platform/pki/code-signing/windows-ksp.mdx
+++ b/docs/documentation/platform/pki/code-signing/windows-ksp.mdx
@@ -215,7 +215,7 @@ The request is [scoped](/documentation/platform/pki/code-signing/approvals#scopi
### Leaving parameters out of a request
-Every parameter on a request has to match at signing time, so a request that names the artifact digest covers exactly one artifact. To have one approval cover a series of builds, name the parameters that vary in `approval.exclude_scope_fields` and the provider leaves them off every request it opens:
+Every parameter on a request has to match at signing time, so a request that names the artifact hash covers exactly one artifact. To have one approval cover a series of builds, name the parameters that vary in `approval.exclude_scope_fields` and the provider leaves them off every request it opens:
```json
{
@@ -235,7 +235,7 @@ Leave out only what genuinely varies, and be aware that dropping a parameter wid
Excluding every parameter leaves the request with no scope at all. The resulting approval permits any command, on any machine, against any artifact, for the whole of its window and signature count, which is the same access you would have with no scoping at all. Excluding `data_hash` alone is almost always what a build pipeline needs.
</Warning>
-An excluded parameter is still recorded on the signing operation, so the command, machine, account and artifact digest behind every signature stay available to auditors even when they no longer constrain the approval.
+An excluded parameter is still recorded on the signing operation, so the command, machine, account and artifact hash behind every signature stay available to auditors even when they no longer constrain the approval.
### Scoping by address
diff --git a/frontend/src/hooks/api/signers/types.ts b/frontend/src/hooks/api/signers/types.ts
index e96be1ac2d..1f369f1a90 100644
--- a/frontend/src/hooks/api/signers/types.ts
+++ b/frontend/src/hooks/api/signers/types.ts
@@ -95,7 +95,7 @@ export const codeSigningScopeFieldLabels: Record<CodeSigningScopeField, string>
[CodeSigningScopeField.Hostname]: "Hostname",
[CodeSigningScopeField.OsUsername]: "OS Username",
[CodeSigningScopeField.IpAddress]: "IP Address",
- [CodeSigningScopeField.DataHash]: "Data Digest"
+ [CodeSigningScopeField.DataHash]: "Data Hash"
};
export const codeSigningScopeFieldDescriptions: Record<CodeSigningScopeField, string> = {
@@ -106,7 +106,7 @@ export const codeSigningScopeFieldDescriptions: Record<CodeSigningScopeField, st
[CodeSigningScopeField.Hostname]: "The machine the signing requests come from.",
[CodeSigningScopeField.OsUsername]: "The operating system account running the signing tool.",
[CodeSigningScopeField.IpAddress]: "The address sign calls must come from.",
- [CodeSigningScopeField.DataHash]: "SHA-256 digest of the payload being signed."
+ [CodeSigningScopeField.DataHash]: "SHA-256 hash of the payload being signed."
};
/** How each value is compared at signing time, mirroring the API's matching rules. */
@@ -115,7 +115,7 @@ export const codeSigningScopeFieldMatchRules: Record<CodeSigningScopeField, stri
"Compared exactly, apart from whitespace. Reordering the options counts as a different command.",
[CodeSigningScopeField.SigningApplication]: "Compared exactly, including capitalisation.",
[CodeSigningScopeField.SigningApplicationHash]:
- "Compared as a hex digest, so capitalisation does not matter.",
+ "Compared as a hex string, so capitalisation does not matter.",
[CodeSigningScopeField.Hostname]: "Compared without regard to capitalisation.",
[CodeSigningScopeField.OsUsername]: "Compared exactly, including capitalisation.",
[CodeSigningScopeField.IpAddress]: "Compared exactly, so one address per approval.",
diff --git a/frontend/src/pages/cert-manager/SignerDetailPage/components/SigningOperationsTable.tsx b/frontend/src/pages/cert-manager/SignerDetailPage/components/SigningOperationsTable.tsx
index b2ccc43844..e61c6902af 100644
--- a/frontend/src/pages/cert-manager/SignerDetailPage/components/SigningOperationsTable.tsx
+++ b/frontend/src/pages/cert-manager/SignerDetailPage/components/SigningOperationsTable.tsx
@@ -138,7 +138,7 @@ export const SigningOperationsTable = ({ signer, signerId, projectId }: Props) =
<TableHead>Timestamp</TableHead>
<TableHead>Status</TableHead>
<TableHead>Algorithm</TableHead>
- <TableHead>Data Digest</TableHead>
+ <TableHead>Data Hash</TableHead>
<TableHead>Actor</TableHead>
</TableRow>
</TableHeader>
diff --git a/frontend/src/pages/cert-manager/SigningOperationDetailPage/SigningOperationDetailPage.tsx b/frontend/src/pages/cert-manager/SigningOperationDetailPage/SigningOperationDetailPage.tsx
index 7c6d225748..754b6f6fcf 100644
--- a/frontend/src/pages/cert-manager/SigningOperationDetailPage/SigningOperationDetailPage.tsx
+++ b/frontend/src/pages/cert-manager/SigningOperationDetailPage/SigningOperationDetailPage.tsx
@@ -117,7 +117,7 @@ export const SigningOperationDetailPage = () => {
</Detail>
</div>
<Detail>
- <DetailLabel>Data Digest</DetailLabel>
+ <DetailLabel>Data Hash</DetailLabel>
<MonoValue value={operation.dataHash} />
</Detail>
{operation.errorMessage && (
diff --git a/frontend/src/pages/cert-manager/components/ScopeFieldsFormSection.tsx b/frontend/src/pages/cert-manager/components/ScopeFieldsFormSection.tsx
index 5ba636e376..3aacbd5095 100644
--- a/frontend/src/pages/cert-manager/components/ScopeFieldsFormSection.tsx
+++ b/frontend/src/pages/cert-manager/components/ScopeFieldsFormSection.tsx
@@ -48,7 +48,7 @@ const validateScopeValue = (field: CodeSigningScopeField, value: string): string
switch (field) {
case CodeSigningScopeField.SigningApplicationHash:
case CodeSigningScopeField.DataHash:
- return SHA256_HEX.test(value) ? undefined : "Must be a 64-character SHA-256 hex digest";
+ return SHA256_HEX.test(value) ? undefined : "Must be a 64-character SHA-256 hex string";
case CodeSigningScopeField.IpAddress:
return z.string().ip().safeParse(value).success ? undefined : "Must be a valid IP address";
case CodeSigningScopeField.Command: