Skip to content

Message codes: URL credentials

See also: Message codes (the index of every code) and Messages and codes (the line grammar, what a code guarantees and when to trust one).

Trust a code only when the line is one of the lines below, a value in place of each <name>, after at most one prefix: the index lists the prefixes and message-codes-values.md the values.

Codes

Code Level Means Since
credentials-unsafe WARNING A URL-typed value the SBOM states (a dependency's direct URL, a project URL, a download location) holds what may be a credential only: a query parameter named code, session, ticket, sid or otp, another whose name ends in _key, or a user name alone on an ssh or git URL (git@). Pitloom never rewrites a value: one that holds a credential is warned of (credentials-unsafe/written) or, in the refuse mode, refused (credentials-unsafe/refused) unless the user accepts that value by its fingerprint; one that may be a credential only, common in example and OAuth URLs, is warned of in either mode. 0.25.0
credentials-unsafe/accepted WARNING A URL-typed value the SBOM states holds what reads as a credential, and the user accepted it by its fingerprint (--accept-url-credential, accept-url-credentials in [tool.pitloom], the library's CredentialPolicy(accepted=...)), in either mode. 0.25.0
credentials-unsafe/git-line-break WARNING The user name or password of a Git URL holds a line break (an encoded %0A or %0D). A line break would add a line to what the credential helper hands git, so git could be told another value. 0.25.0
credentials-unsafe/git-userinfo ERROR A Git URL holds user information (an @ before the first /) that Pitloom cannot split off the command line the way git reads it: a bracket or port that is not valid, an empty host, or an @ git reads as a password where the URL parser sees a query. Or the user name or password holds a NUL (an encoded %00), which cannot be handed to git at all. 0.25.0
credentials-unsafe/http-clear WARNING A plain http:// Git URL holds a user name or password: git sends it to the server unencrypted, readable by anyone on the path. 0.25.0
credentials-unsafe/refused ERROR A URL-typed value the SBOM would state (a dependency's direct URL, a download location, a PURL, an external reference's locator) holds a user name or password, a query parameter named like a secret, an access token's shape, an scp-style address with a password, or a query nested or encoded too deeply to read, and the run is in the refuse mode (url-credentials = "refuse" in [tool.pitloom], --refuse-url-credentials, the library's CredentialPolicy(refuse=True)). An SBOM can be published, so it must not carry one. Each such value is one line naming the element and field that hold it and its fingerprint; the last line counts them and names no URL. Each line says how the surface that ran accepts the value: the command line's option, the build hook's [tool.pitloom] list, or the library's credentials argument. 0.25.0
credentials-unsafe/registry ERROR, WARNING A key or namespace given to the ID registry (an external reference URL), or the key or id of an SBOM element it would record, holds a user name or password, a query parameter named like a secret or an access token (also percent-encoded in a PURL qualifier), or a query nested too deeply to read (a value with more than 16 ?) or a PURL qualifier encoded too deeply to read (still encoded after five decodes). The registry file stores a key, an id and its namespace as written. A key given (register, 'loom id generate -e') and a registry file's entry follow the run's url-credentials mode; a namespace is refused in either mode. 0.25.0
credentials-unsafe/written WARNING A URL-typed value the SBOM states (a dependency's direct URL, a download location, a PURL, an external reference's locator) holds a user name or password, a query parameter named like a secret, an access token's shape, an scp-style address with a password, or a query nested or encoded too deeply to read, and the run is in the warn mode, the default (Pitloom runs in CI and build hooks and does not fail them by default). Each such value is one line naming the element and field that hold it and its fingerprint, and how the surface that ran turns the refuse mode on: the command line's --refuse-url-credentials, the build hook's [tool.pitloom] url-credentials, or the library's credentials argument. 0.25.0

credentials-unsafe

  • Level: WARNING.
  • Means: A URL-typed value the SBOM states (a dependency's direct URL, a project URL, a download location) holds what may be a credential only: a query parameter named code, session, ticket, sid or otp, another whose name ends in _key, or a user name alone on an ssh or git URL (git@). Pitloom never rewrites a value: one that holds a credential is warned of (credentials-unsafe/written) or, in the refuse mode, refused (credentials-unsafe/refused) unless the user accepts that value by its fingerprint; one that may be a credential only, common in example and OAuth URLs, is warned of in either mode.
  • SBOM effect: none: the SBOM states what the input holds.
  • Pitloom did: Did not refuse the value: the SBOM is written with it as written, unless another value is refused (credentials-unsafe/refused), which refuses the whole SBOM; said once per value of each SBOM, shown masked. Nothing is removed or rewritten.
  • Tell the user: which value, as the line shows it, and that the SBOM states it as written. They check that the parameter or the ssh user name is no credential; if it is one, they remove it from the source and generate again, and rotate it, since a credential in a project's files is also in its history. Do not edit their files; ask first, and with nobody to ask, report it only.
  • Lines:
WARNING: URL=<url>: holds a code, session, ticket, sid, otp or other _key parameter or an ssh user name; the SBOM states it as written [credentials-unsafe]

credentials-unsafe/accepted

  • Level: WARNING.
  • Means: A URL-typed value the SBOM states holds what reads as a credential, and the user accepted it by its fingerprint (--accept-url-credential, accept-url-credentials in [tool.pitloom], the library's CredentialPolicy(accepted=...)), in either mode.
  • SBOM effect: none: the SBOM states what the input holds.
  • Pitloom did: Did not refuse the value: the SBOM is written with it as written, unless another value is refused (credentials-unsafe/refused), which refuses the whole SBOM; said once per value of each SBOM, shown masked.
  • Tell the user: which value the SBOM states as written, as the line shows it, and that anyone who reads the SBOM reads it too. If it is a real credential, they remove it from the source, rotate it and drop the acceptance. Do not edit their files or configuration; ask first, and with nobody to ask, report it only.
  • Lines:
WARNING: URL=<url>: holds a credential that <fingerprint> accepts; the SBOM states it as written [credentials-unsafe/accepted]

credentials-unsafe/git-line-break

  • Level: WARNING.
  • Means: The user name or password of a Git URL holds a line break (an encoded %0A or %0D). A line break would add a line to what the credential helper hands git, so git could be told another value.
  • SBOM effect: thinner: the SBOM says less than reading the input would.
  • Pitloom did: Fetched the URL without its credentials (a private repository then fails); said once per URL, shown masked.
  • Tell the user: which URL, as the line shows it, and that its credentials were not used; a credential belongs in a .netrc file, a keyring (a git credential helper) or an environment variable, never in a URL. A credential typed into a command line is exposed in the shell history: they should consider it exposed and rotate it. Do not edit their files; ask first, and with nobody to ask, report it only.
  • Lines:
WARNING: URL=<url>: credentials holding a line break are not sent to git [credentials-unsafe/git-line-break]

credentials-unsafe/git-userinfo

  • Level: ERROR. As an ERROR, the command stops for that input and writes nothing for it (exit 1).
  • Means: A Git URL holds user information (an @ before the first /) that Pitloom cannot split off the command line the way git reads it: a bracket or port that is not valid, an empty host, or an @ git reads as a password where the URL parser sees a query. Or the user name or password holds a NUL (an encoded %00), which cannot be handed to git at all.
  • SBOM effect: not-written: no SBOM is written for the input.
  • Pitloom did: Did not run git for the URL, and sent no request; the URL is shown masked.
  • Tell the user: which URL, as the line shows it, and that it was not fetched; a credential belongs in a .netrc file, a keyring (a git credential helper) or an environment variable, never in a URL. They give the address without user information and run again. Do not edit their files; ask first, and with nobody to ask, report it only.
  • Lines:
ERROR: URL=<url>: user information cannot be taken out of the git command line; not fetched [credentials-unsafe/git-userinfo]

credentials-unsafe/http-clear

  • Level: WARNING.
  • Means: A plain http:// Git URL holds a user name or password: git sends it to the server unencrypted, readable by anyone on the path.
  • SBOM effect: none: the SBOM states what the input holds.
  • Pitloom did: Fetched the URL with its credentials, as asked; said once per URL, shown masked.
  • Tell the user: which URL, as the line shows it, and that its credentials crossed the network in clear: they should use the https:// address and consider the credential exposed; a credential belongs in a .netrc file, a keyring (a git credential helper) or an environment variable, never in a URL. Do not edit their files; ask first, and with nobody to ask, report it only.
  • Lines:
WARNING: URL=<url>: credentials are sent in clear over http; use https [credentials-unsafe/http-clear]

credentials-unsafe/refused

  • Level: ERROR. As an ERROR, the command stops for that input and writes nothing for it (exit 1).
  • Means: A URL-typed value the SBOM would state (a dependency's direct URL, a download location, a PURL, an external reference's locator) holds a user name or password, a query parameter named like a secret, an access token's shape, an scp-style address with a password, or a query nested or encoded too deeply to read, and the run is in the refuse mode (url-credentials = "refuse" in [tool.pitloom], --refuse-url-credentials, the library's CredentialPolicy(refuse=True)). An SBOM can be published, so it must not carry one. Each such value is one line naming the element and field that hold it and its fingerprint; the last line counts them and names no URL. Each line says how the surface that ran accepts the value: the command line's option, the build hook's [tool.pitloom] list, or the library's credentials argument.
  • SBOM effect: not-written: no SBOM is written for the input.
  • Pitloom did: Wrote no SBOM: the command exits 1 (the Action step fails), the build hook fails the build, and the library raises ValueError carrying the code; 'embed-wheel --sbom' embeds nothing and leaves the wheel as it is, and loom.Run writes no fragment. Nothing is removed or rewritten.
  • Tell the user: which value, as the line shows it, and where it is. First they remove the credential from the source and generate again; a credential in a project's files is also in its history, so they should consider it exposed and rotate it. Only once they have confirmed that one value is no secret (an example URL in a README) do they accept that value alone, the way the line gives with its fingerprint: --accept-url-credential, accept-url-credentials in [tool.pitloom] (also for the command line), the GitHub Action's accept-url-credentials input, or the library's credentials argument. Do not suggest turning the refuse mode off to get past it. Do not edit their files; ask first, and with nobody to ask, report it only.
  • Lines:
ERROR: URL=<url>: holds a credential (<element> <pointer>, <fingerprint>); remove it from the source, or accept this value with <option> <fingerprint> [credentials-unsafe/refused]
ERROR: URL=<url>: holds a credential (<element> <pointer>, <fingerprint>); remove it from the source, or accept this value by listing it in [tool.pitloom] <setting> [credentials-unsafe/refused]
ERROR: URL=<url>: holds a credential (<element> <pointer>, <fingerprint>); remove it from the source, or accept this value with credentials=CredentialPolicy(accepted=["<fingerprint>"]) [credentials-unsafe/refused]
ERROR: <number> URL value(s) in the SBOM hold credentials; the SBOM is refused [credentials-unsafe/refused]

credentials-unsafe/registry

  • Level: ERROR, WARNING. As an ERROR, the command stops for that input and writes nothing for it (exit 1).
  • Means: A key or namespace given to the ID registry (an external reference URL), or the key or id of an SBOM element it would record, holds a user name or password, a query parameter named like a secret or an access token (also percent-encoded in a PURL qualifier), or a query nested too deeply to read (a value with more than 16 ?) or a PURL qualifier encoded too deeply to read (still encoded after five decodes). The registry file stores a key, an id and its namespace as written. A key given (register, 'loom id generate -e') and a registry file's entry follow the run's url-credentials mode; a namespace is refused in either mode.
  • SBOM effect: thinner: the SBOM says less than reading the input would.
  • Pitloom did: In the refuse mode, refused the key and stored nothing (error), or did not load a registry file with an entry holding one, left it as it is and stopped the run (error naming the file). In the warn mode, the default, stored the key as written, or loaded the file as it is (warning). A namespace holding one is refused in either mode (error). An SBOM element whose key or id holds one is left out of the registry in either mode, and the rest written (warning). A run whose SBOM is already built that reads the file again to save, in the refuse mode, says the refusal as a warning: nothing is saved and the SBOM stands.
  • Tell the user: which value, as the line shows it. For an error, they give the value without the credential and run again; a credential typed on a command line is exposed in their shell history. For a warning, the value came from an SBOM ('loom id import'), the run's own data or their registry file: that element has no stable id (a new one is minted next run), and a credential in a shared SBOM, a project's files or a committed registry file is exposed, in its history too. For a line naming an ID registry file, they remove that entry from the file themselves and run again. A key the registry stores as written is in the registry file, and in its history once committed. Either way they should rotate it. Do not edit their registry file; ask first, and with nobody to ask, report it only.
  • Lines:
ERROR: URL=<url>: holds user information, a secret query value or an access token, or a query nested or encoded too deeply to read; an ID registry key is stored as written, so it is refused [credentials-unsafe/registry]
ERROR: URL=<url>: holds user information, a secret query value or an access token, or a query nested or encoded too deeply to read; an ID registry namespace is stored as written, so it is refused [credentials-unsafe/registry]
WARNING: URL=<url>: holds user information, a secret query value or an access token, or a query nested or encoded too deeply to read; the ID registry stores an element's key and id as written, so the element is skipped [credentials-unsafe/registry]
ERROR: URL=<url>: holds user information, a secret query value or an access token, or a query nested or encoded too deeply to read; ID registry file '<path>' is not loaded; remove the entry [credentials-unsafe/registry]
WARNING: URL=<url>: holds user information, a secret query value or an access token, or a query nested or encoded too deeply to read; ID registry file '<path>' is loaded as it is; remove the entry [credentials-unsafe/registry]
WARNING: URL=<url>: holds user information, a secret query value or an access token, or a query nested or encoded too deeply to read; the ID registry stores the key as written [credentials-unsafe/registry]
WARNING: URL=<url>: holds user information, a secret query value or an access token, or a query nested or encoded too deeply to read; ID registry file '<path>' is not loaded; remove the entry [credentials-unsafe/registry]

credentials-unsafe/written

  • Level: WARNING.
  • Means: A URL-typed value the SBOM states (a dependency's direct URL, a download location, a PURL, an external reference's locator) holds a user name or password, a query parameter named like a secret, an access token's shape, an scp-style address with a password, or a query nested or encoded too deeply to read, and the run is in the warn mode, the default (Pitloom runs in CI and build hooks and does not fail them by default). Each such value is one line naming the element and field that hold it and its fingerprint, and how the surface that ran turns the refuse mode on: the command line's --refuse-url-credentials, the build hook's [tool.pitloom] url-credentials, or the library's credentials argument.
  • SBOM effect: none: the SBOM states what the input holds.
  • Pitloom did: Wrote the SBOM with the value as written: the command exits 0, the build hook does not fail the build, and the library returns. Said once per value of each SBOM, shown masked. Nothing is removed or rewritten.
  • Tell the user: which value, as the line shows it, and where it is, and that the SBOM now carries the credential: anyone who reads the SBOM reads it, and it is also in the project's files and their history, so they should consider it exposed, rotate it and remove it from the source, then generate again. Offer to turn on url-credentials = "refuse" in [tool.pitloom] (--refuse-url-credentials on the command line, url-credentials: refuse on the GitHub Action) so that CI refuses such an SBOM from then on. Only once they have confirmed that one value is no secret (an example URL in a README) do they accept that value alone by its fingerprint (--accept-url-credential, accept-url-credentials in [tool.pitloom], the GitHub Action's accept-url-credentials input), which quiets this line. Do not edit their files; ask first, and with nobody to ask, report it only.
  • Lines:
WARNING: URL=<url>: holds a credential (<element> <pointer>, <fingerprint>); the SBOM states it as written; remove it from the source, or refuse such values with <option> [credentials-unsafe/written]
WARNING: URL=<url>: holds a credential (<element> <pointer>, <fingerprint>); the SBOM states it as written; remove it from the source, or refuse such values with [tool.pitloom] <setting> = "refuse" [credentials-unsafe/written]
WARNING: URL=<url>: holds a credential (<element> <pointer>, <fingerprint>); the SBOM states it as written; remove it from the source, or refuse such values with credentials=CredentialPolicy(refuse=True) [credentials-unsafe/written]