SpecialistOff.NET / Вопросы / Статьи / Фрагменты кода / Резюме / Метки / Помощь / Файлы
НазадМетки: airflow apache airflow
The gRPC connection type enables integrated connection to a gRPC service
There are several ways to connect to gRPC service using Airflow.
Using NO_AUTH mode, simply setup an insecure channel of connection.
Using SSL or TLS mode, supply a credential pem file for the connection id, this will setup SSL or TLS secured connection with gRPC service.
Using JWT_GOOGLE mode. It is using google auth default credentials by default, further use case of getting credentials from service account can be add later on.
Using OATH_GOOGLE mode. Scopes are required in the extra field, can be setup in the UI. It is using google auth default credentials by default, further use case of getting credentials from service account can be add later on.
Using CUSTOM mode. For this type of connection, you can pass in a connection function takes in the connection object and return a gRPC channel and supply whatever authentication type you want.
The following connection IDs are used by default.
grpc_defaultUsed by the GrpcHook hook.
The host url of the gRPC server
The port to connect to on gRPC server
Authentication type of the gRPC connection. NO_AUTH by default, possible values areNO_AUTH, SSL, TLS, JWT_GOOGLE, OATH_GOOGLE, CUSTOM
Pem file that contains credentials for SSL and TLS type auth Not required for other types.
A list of comma-separated Google Cloud scopes to authenticate with. Only for OATH_GOOGLEtype connection