Skip to main content
The HTTP Resolver fetches Tekton resources from HTTP and HTTPS URLs, enabling simple distribution of Tasks and Pipelines via web servers.

Resolver Type

This resolver responds to type http.

Parameters

string
required
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.yaml
string
Optional username for basic authentication. Must be used with http-password-secret.Example: git
string
Optional secret name containing the password for basic authentication. Must be used with http-username.Example: http-password
string
default:"password"
Optional key in the password secret to fetch the password from.Default: password
string
Optional 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-resolver feature flag set to true in the resolvers-feature-flags ConfigMap
  • Beta features enabled
  • Only HTTP and HTTPS URLs are supported

Configuration

The HTTP Resolver uses the http-resolver-config ConfigMap in the tekton-pipelines-resolvers namespace.

Configuration Options

string
default:"1m"
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, 700ms

Calculating 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:
Or using YAML:

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

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

Limitations

The HTTP Resolver does not support caching. Each resolution fetches the resource from the URL, which may impact performance for frequently used resources.
  • 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:
Example:
For GitHub repositories, consider using the Git Resolver for better caching and version control features.

Troubleshooting

If resolution times out, check the fetch-timeout configuration and ensure the URL is accessible from the cluster.
Verify the secret exists in the correct namespace and contains the expected key. Check that the username and password are correct.
Recalculate the digest using sha256sum or sha512sum and ensure it matches the digest parameter exactly.
Ensure the URL uses http:// or https:// scheme and is properly formatted.