Resolver Type
This resolver responds to typehttp.
Parameters
The HTTP or HTTPS URL to fetch the resource from.Example:
https://raw.githubusercontent.com/tektoncd-catalog/git-clone/main/task/git-clone/git-clone.yamlOptional username for basic authentication. Must be used with
http-password-secret.Example: gitOptional secret name containing the password for basic authentication. Must be used with
http-username.Example: http-passwordOptional key in the password secret to fetch the password from.Default:
passwordOptional digest to verify the integrity of the fetched content. Format:
<algorithm>:<hash>Supported algorithms: sha256, sha512Example: sha256:f37cdd0e86...Requirements
- A cluster running Tekton Pipeline v0.41.0 or later
- Built-in remote resolvers installed
- The
enable-http-resolverfeature flag set totruein theresolvers-feature-flagsConfigMap - Beta features enabled
- Only HTTP and HTTPS URLs are supported
Configuration
The HTTP Resolver uses thehttp-resolver-config ConfigMap in the tekton-pipelines-resolvers namespace.
Configuration Options
Maximum time for any HTTP fetch operation. Note: A global maximum timeout of 1 minute is enforced on all resolution requests.Example values:
1m, 2s, 700msCalculating Digests
To verify resource integrity, calculate the digest of your Tekton resource:sha256sum and sha512sum are available on all major Linux distributions and macOS.Usage Examples
Task Resolution from Public URL
Task Resolution with Basic Authentication
Task Resolution with Digest Verification
Pipeline Resolution from Public URL
Pipeline Resolution with Digest Verification
Creating Authentication Secrets
For resources requiring authentication, create a Kubernetes secret:Security Best Practices
Use HTTPS
Always use HTTPS URLs to ensure encrypted transmission
Verify Digests
Use digest verification for production resources
Secure Credentials
Store authentication credentials in Kubernetes secrets
Validate Sources
Only fetch resources from trusted sources
Supported URL Schemes
| Scheme | Supported | Notes |
|---|---|---|
https:// | Yes | Recommended for production |
http:// | Yes | Use only for development/testing |
file:// | No | Not supported |
ftp:// | No | Not supported |
Use Cases
GitHub Raw Files
Fetch resources directly from GitHub repositories
Internal Servers
Host resources on internal web servers
CDN Distribution
Distribute resources via content delivery networks
Simple Sharing
Share resources via simple HTTP hosting
Comparison with Other Resolvers
| Feature | HTTP Resolver | Git Resolver | Bundle Resolver |
|---|---|---|---|
| Version Control | No | Yes | Yes |
| Authentication | Basic Auth | Token/SSH | Registry credentials |
| Digest Verification | Optional | Automatic | Automatic |
| Caching | No | Yes | Yes |
| Complexity | Low | Medium | Medium |
Limitations
- No automatic digest calculation (must be provided manually)
- No built-in caching mechanism
- Subject to network availability and latency
- Basic authentication only (no OAuth or advanced auth)
- 1-minute global timeout for all resolution requests
Example: GitHub Raw URL Format
When fetching from GitHub, use the raw content URL format:Troubleshooting
Resolution timeout
Resolution timeout
If resolution times out, check the
fetch-timeout configuration and ensure the URL is accessible from the cluster.Authentication failed
Authentication failed
Verify the secret exists in the correct namespace and contains the expected key. Check that the username and password are correct.
Digest verification failed
Digest verification failed
Recalculate the digest using
sha256sum or sha512sum and ensure it matches the digest parameter exactly.Invalid URL
Invalid URL
Ensure the URL uses
http:// or https:// scheme and is properly formatted.