mirror of
				https://github.com/open-metadata/OpenMetadata.git
				synced 2025-10-31 10:39:30 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			87 lines
		
	
	
		
			4.6 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			87 lines
		
	
	
		
			4.6 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| ---
 | |
| description: This is a guide to configure Ingestion Connectors with security.
 | |
| ---
 | |
| 
 | |
| # Copy of Configure Ingestion
 | |
| 
 | |
| ## Add Metadata Authentication for Connectors
 | |
| 
 | |
| All Connectors have **metadata\_server** config. Pass the public/private key pair generated in step 1 in [Create Service Account](../../../deploy-on-bare-metal/enable-security/okta-sso/create-ingestion-service-account.md) as secret\_key
 | |
| 
 | |
| {% code title="Connector Config for MySQL Connector:" %}
 | |
| ```javascript
 | |
| {
 | |
| ...
 | |
|    "metadata_server": {
 | |
|     "type": "metadata-server",
 | |
|     "config": {
 | |
|       "api_endpoint": "http://localhost:8585/api",
 | |
|     "auth_provider_type": "okta",
 | |
|     "client_id": "{CLIENT_ID - SPA APP}",
 | |
|     "org_url": "{ISSUER_URL}/v1/token",
 | |
|     "private_key": "{public/private keypair}"
 | |
|     "email": "{email}",
 | |
|     "scopes": [
 | |
|      "token"
 | |
|      ]
 | |
|     }
 | |
|   },
 | |
| ...
 | |
| }
 | |
| ```
 | |
| {% endcode %}
 | |
| 
 | |
| * **auth\_provider\_type** - Okta
 | |
| * **client\_id** - Use the CLIENT\_ID for the service application that was created using curl command. 
 | |
| * **org\_url **_**** -_ It is the same as the __ ISSUER\_URL with v1/token. It is recommended to use a separate authorization server for different applications, rather than using the default authorization server.
 | |
| * **private\_key** - Use the Public/Private Key Pair that was generated while [Creating the Service Application](../../../deploy-on-bare-metal/enable-security/okta-sso/create-ingestion-service-account.md). When copy-pasting the keys ensure that there are no additional codes and that it is a JSON compatible string.
 | |
| 
 | |
| .png>)
 | |
| 
 | |
| * **email** - Enter the email address
 | |
| * **scopes** - Add the details of the scope created in the Authorization Server. Enter the name of the default scope created.
 | |
| 
 | |
| {% hint style="warning" %}
 | |
| Make sure you configure the metadata\_server section on all of the connector configs if you are ingesting into a secured OpenMetadataServer
 | |
| {% endhint %}
 | |
| 
 | |
| ## Example
 | |
| 
 | |
| Here's an example on adding the authentication details in the ingestion connectors. Ensure that the **private key** is added in a single line under `metadata_server` when trying to ingest the data using a JSON config file.
 | |
| 
 | |
| ```json
 | |
| {
 | |
|   "source": {
 | |
|     "type": "bigquery",
 | |
|     "config": {
 | |
|       "service_name": "gcp_bigquery",
 | |
|       "schema_filter_pattern": {
 | |
|         "includes": [
 | |
|           "sdoh_cms_dual_eligible_enrollment"
 | |
|         ]
 | |
|       }
 | |
|     }
 | |
|   },
 | |
|   "sink": {
 | |
|     "type": "metadata-rest",
 | |
|     "config": {
 | |
|       "api_endpoint": "http://localhost:8585/api"
 | |
|     }
 | |
|   },
 | |
|   "metadata_server": {
 | |
|     "type": "metadata-server",
 | |
|     "config": {
 | |
|       "api_endpoint": "http://localhost:8585/api",
 | |
|       "auth_provider_type": "okta",
 | |
|       "client_id": "0oa3ych62pOhHz5m75d7",
 | |
|       "org_url": "https://dev-83408225.okta.com/oauth2/aus3yd11n4v16X8MO5d7/v1/token",
 | |
|       "private_key": "{    'p': 'xr51wRsX6Tt90kBTTRjqEuO7XxW3tarSJT_v9n6bPRupzvhsjRrQFhoTmYQwLJy4uoxtyi7T9E86MxMQHUDnmnAJpEeen-18qGf3GAw7EJBTFMQl2ulueeRW_UnLknZUjjuA2gOO06TI7kugnMjjuUzEpzrU-9yGgCYGFYVwr7M',    'kty': 'RSA',    'q': 'rw6BY9JI2cMHkN634g4h2W1dZ2EdgCBuVFkGp1k4HtZKkvnCZ8PEMSO_jEmi-nEZzhi828becuVoih53KHJGbcZM5gnHFJ1WAxIltY-R7E68BwvYZMA403LAk6Vy7GQAtNY0t_8FrPz34NXnL_6vlRoDZo1Wr--TwJP9aAOSfzU',    'd': 'RaOXAguYxXI2P4A_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qu3HtWy_sDmxfm8EDOwbFzNFdEq60eTZzo2gmlqW1pfwMDvBGW-LcjrxQ7HSQ2DvdV5DJNGkv-dtmdEwLe6NLgOsJBP3R2YgP6krqUQyU7CHu2CNCfBDf6f9DfXQAExCe0dSPNOD5mu9SCIyhhp2EnYEq9jc7Xm9ul_Mr00R0Wlb7L4mS2GSucLeiGa6MuaKPtCsYyZE-j4yYVLnAyw_U7qOy1JQtDw'}",
 | |
|       "email": "ayush@open-metadata.org",
 | |
|       "scopes": [
 | |
|         "token"
 | |
|       ]
 | |
|     }
 | |
|   }
 | |
| }
 | |
| ```
 | 
