Tyk是开源企业API网关,支持REST、GraphQL、TCP和gRPC协议,提供认证、限流、安全控制等“开箱即用”功能,帮助组织管理API访问,保护上游服务,适用于Open Banking、云环境及API暴露场景。
Tyk API Gateway
Tyk is an open source Enterprise API Gateway, supporting REST, GraphQL, TCP and gRPC protocols.
Tyk Gateway is provided ‘Batteries-included’, with no feature lockout. Enabling your organization to control who accesses your APIs, when they access, and how they access it.
Tyk Technologies uses the same API Gateway for all it’s applications. Protecting, securing, and processing APIs for thousands of organizations and businesses around the world. Ideal for Open Banking, building software in the clouds as well as exposing APIs to teams, partners & consumers.
Built from the ground up to be the fastest API gateway on the planet. It does not depend on a legacy proxy underneath. It has no 3rd party dependencies aside from https://github.com/redis/redis for distributed rate-limiting and token storage. Tyk Gateway can also be deployed as part of a larger Full Lifecycle API Management platform https://tyk.io/features/dashboard/ which also includes Management Control Plane, Dashboard GUI and Developer Portal.
Open Source API Gateway Features
Use any protocol: REST, SOAP, https://tyk.io/docs/tyk-apis/tyk-gateway-api/api-definition-objects/graphql/, https://tyk.io/docs/key-concepts/grpc-proxy/, and https://tyk.io/docs/key-concepts/tcp-proxy/.
Industry Standard Authentication: https://tyk.io/docs/advanced-configuration/integrate/api-auth-mode/open-id-connect/#setting-up-oidc, https://tyk.io/docs/tyk-apis/tyk-gateway-api/api-definition-objects/jwt/ https://tyk.io/docs/basic-config-and-security/security/authentication-authorization/bearer-tokens/, https://tyk.io/docs/tyk-apis/tyk-dashboard-api/basic-authentication/, Client Certificates and more.
https://tyk.io/docs/getting-started/import-apis/ Import your Swagger and OAS2/3 documents to scaffold APIs in Tyk.
https://tyk.io/performance-tuning-your-tyk-api-gateway/: Low latency, and thousands of rps with just a single CPU, horizontally and vertically scalable.
https://tyk.io/docs/advanced-configuration/transform-traffic/: Transform all the things, from request or response headers to converting between SOAP and GraphQL.
https://tyk.io/docs/plugins/: Customize Tyk’s middleware chain by writing plugins in your language of choice - from Python to Javascript to Go, or any language which supports gRPC.
https://tyk.io/docs/basic-config-and-security/control-limit-traffic/rate-limiting/#setting-rate-limits-in-the-tyk-community-edition-gateway-ce & Quotas: Protect your upstreams from becoming overloaded and/or apply limits for each consumer.
https://tyk.io/docs/tyk-apis/tyk-gateway-api/api-definition-objects/versioning-endpoint/ - API Versions can be easily set and deprecated at a specific time and date.
https://tyk.io/docs/security/security-policies/secure-apis-method-path/ - Grant access to one or more APIs on a per version and operation basis.
https://tyk.io/docs/tyk-apis/tyk-gateway-api/api-definition-objects/ip-blacklisting//https://tyk.io/docs/tyk-apis/tyk-gateway-api/api-definition-objects/ip-whitelisting//Ignored endpoint access - Enforce strict security models on a version-by-version basis to your access points.
Analytics logging - Record detailed usage data on who is using your API's (raw data only)
https://tyk.io/docs/tyk-apis/tyk-gateway-api/api-definition-objects/cors/ - Enable CORS for certain APIs so users can make browser-based requests
https://tyk.io/docs/basic-config-and-security/report-monitor-trigger-events/webhooks/ - Trigger webhooks against events such as Quota Violations and Authentication failures
https://tyk.io/docs/tyk-apis/tyk-gateway-api/api-definition-objects/ip-whitelisting/ - Block access to non-trusted IP addresses for more secure interactions
https://tyk.io/docs/tyk-configuration-reference/hot-restart-tyk-gateway-process/ - Tyk configurations can be altered dynamically and the service restarted without affecting any active request
https://tyk.io/docs/tyk-oss/ce-helm-chart/ declarative API: using Open Source https://github.com/TykTechnologies/tyk-operator (more info in OSS section)
Quick Start on your platform
Get Started today with Tyk Gateway (standalone)
Install
- https://tyk.io/docs/tyk-oss/ce-docker/ (Recommended method)
- https://github.com/TykTechnologies/tyk-oss-k8s-deployment
- https://github.com/TykTechnologies/tyk-helm-chart#install-tyk-community-edition
- https://tyk.io/docs/tyk-oss/ce-ansible/
- https://tyk.io/docs/tyk-oss/ce-redhat/
- https://tyk.io/docs/tyk-oss/ce-ubuntu/
- https://tyk.io/docs/tyk-oss/ce-centos/
- Compile from Source (see instructions below)
Compiling Tyk Gateway
Compile from Source
git clone https://github.com/TykTechnologies/tyk go build
Go version 1.12 is required to build master, the current development version. Tyk is officially supported on linux/amd64, linux/i386 and linux/arm64.
Tests are run against both Go versions 1.12, 1.13, 1.14 and 1.15, however at present, only Go 1.12 is officially supported. In order to run tests locally use the following command:
go test ./...
Note that tests require Redis to be running on the same machine (default port).
In order to write your own test pls use this guide https://github.com/TykTechnologies/tyk/blob/master/TESTING.md
Contributing
For more information about contributing PRs and issues, see https://github.com/TykTechnologies/tyk/blob/master/CONTRIBUTING.md.
Tyk OSS Integrations
Tyk Technologies maintains other Open Source Software which can be used in conjunction with Tyk API Gateway:
https://github.com/TykTechnologies/tyk-pump - Pluggable analytics purger to move Analytics generated by your Tyk nodes to any back-end.
https://github.com/TykTechnologies/tyk-operator - Brings API Management capabilities to Kubernetes. Configure Ingress, APIs, Security Policies, Authentication, Authorization, Mediation and more - all using Custom Resources and Kubernetes Native primitives
https://github.com/TykTechnologies/tyk-identity-broker - Tyk Authentication Proxy for third-party login
https://github.com/TykTechnologies/tyk-sync- Command line tool and library to manage and synchronise a Tyk installation with your version control system (VCS).
https://github.com/TykTechnologies/mserv - Asset Server and gRPC host
Documentation
All the documentation for Tyk Gateway and other OSS can be found at https://tyk.io/docs/tyk-oss-gateway/
Community
- https://community.tyk.io - Technical support from the Tyk Community
- https://github.com/TykTechnologies/tyk/issues/new/choose - Feature requests & bug reports welcome
- https://tyk.io/api-expertise/blog/ - Tyk announcements and updates
- https://pages.tyk.io/newsletter- Subscribe to our GraphQL & API newsletters
- If you are using Tyk give us a star ⭐️
Open Source License
Tyk is released under the MPL v2.0; please see https://github.com/TykTechnologies/tyk/blob/master/LICENSE.md for a full version of the license.
镜像拉取方式
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
轩辕镜像加速拉取命令点我查看更多 tyk-gateway 镜像标签
DockerHub 原生拉取命令
用户好评
来自真实用户的反馈,见证轩辕镜像的优质服务