Datatypes › Secrets and credentials (passwords, keys, tokens)
URI with embedded password
ID uri_with_password
DatatypePersonal data (PII)identifierDraft
This record is a draft: it has not been reviewed yet and may be incomplete or wrong. Do not rely on it for compliance decisions. Help improve it (see CONTRIBUTING.md).
URI whose user information part contains a password, as in scheme://user:password@host/. RFC 3986 deprecates this form, but database and message broker connection URIs still use it. The user name may be empty, as in Redis URIs.
- Parent datatype
- Uniform Resource Identifier (URI)
uri - Categories
- Secrets and credentials (passwords, keys, tokens), Internet
- Countries
- Global (not tied to a country)
- Languages
- Common to most languages
- Quality
- 78/100 · missing: second example, mapping (Wikidata, Schema.org, ...), translation
- Metacrafter rules
- no detection rule yet
- Supported by tools
- detect-secrets, GitGuardian, GitHub secret scanning, Semgrep, TruffleHog
Regular expression
^[A-Za-z][A-Za-z0-9+.-]*://[^\s:/?#@]*:[^\s/?#@]+@[^\s/?#]+(?:[/?#]\S*)?$
Python re syntax.
Test a value
Examples
| Value | Description |
|---|---|
| postgresql://user:secret@localhost | Example connection URI from the PostgreSQL documentation |
| postgresql://user@localhost invalid | User name without a password |
Sources
Use this record
- Page URL:
https://registry.apicrafter.io/datatype/uri_with_password - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/any/secrets/uri_with_password.yamlon GitHub