Hi Kyle!

Regarding your question using StandardOauth2AccessTokenProvider with a proxy. 
The standard NiFi way is to use an implementation of ProxyConfigurationService 
(link 
<linkttps://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-proxy-configuration-nar/1.19.1/org.apache.nifi.proxy.StandardProxyConfigurationService/index.html>)
 to configure a proxy. If a component doesn’t have Proxy Configuration Service 
property, it means that it doesn’t supports using a proxy officially. I’m 
saying “officially” because the underlying library that we use (in our case 
OkHttp) may respect environment variables, but it is out of our hands and I 
wouldn’t rely on that. Here 
<https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-azure-nar/1.19.1/org.apache.nifi.processors.azure.storage.PutAzureBlobStorage_v12/>
 is an example of a processor which supports proxying. As you already 
mentioned, I’d also request this feature through Jira.

Regards,
Nandor

> On Dec 16, 2022, at 5:19 AM, Matt Burgess <mattyb...@apache.org> wrote:
> 
> Kyle,
> 
> Per the new Apache Jira instructions [1], please provide the following
> information to priv...@nifi.apache.org <mailto:priv...@nifi.apache.org> 
> <priv...@apache.org <mailto:priv...@apache.org>> and I can
> create an account for you and add you as a
> contributor:
> 
> - email address
> - preferred username (N.B. hyphens not allowed)
> - alternate username (in case the preferred one is already in use)
> - display name, if it is different from the username
> 
> 
> Regards,
> Matt
> 
> [1] https://infra.apache.org/jira-guidelines.html#who 
> <https://infra.apache.org/jira-guidelines.html#who>
> 
> On Thu, Dec 15, 2022 at 4:43 PM Nguyen, Kyle <kyle.ngu...@mlp.com.invalid 
> <mailto:kyle.ngu...@mlp.com.invalid>>
> wrote:
> 
>> Hi. Thanks for maintaining the project.
>> 
>> 
>> 
>> 1. Can I get a jira account please? Would like to request *
>> StandardProxyConfigurationService* integration into 
>> *StandardOath2AccessTokenProvider
>> *and into *QuerySalesforceObject*
>> 
>> 2. Or perhaps you can help me more directly on this stackoverflow:
>> https://stackoverflow.com/questions/74482819/connecting-to-an-external-http-api-behind-a-proxy-from-nifi
>> 
>> 
>> 
>> I also tried this ENV VAR in my docker nifi instance. It doesn’t work.
>> 
>> 
>> 
>> JAVA_FLAGS=-Dhttp.nonProxyHosts="localhost,.amazonaws.com"
>> -Dhttp.proxyHost=proxy.foo.com -Dhttp.proxyPort=3128 -Dhttp.proxyUser=foo
>> -Dhttp.proxyPassword=bar
>> 
>> 
>> 
>> 
>> 
>> [image: cid:17261f6184a4cff311 <cid:17261f6184a4cff311>]
>> 
>> *Kyle Nguyen*
>> Corporate Technology, Software Engineer
>> 
>> 
>> 
>> *Millennium Management LLC*
>> 
>> 399 Park Avenue | New York, NY 10022
>> 
>> 📞 +1.212.708.1366 | 📱 +1.929.837.1788
>> 
>> mlp.com <http://mlp.com/> <https://www.mlp.com/home/ 
>> <https://www.mlp.com/home/>>
>> 
>> 
>> 
>> 
>> 
>> ######################################################################
>> 
>> The information contained in this communication is confidential and
>> 
>> may contain information that is privileged or exempt from disclosure
>> 
>> under applicable law. If you are not a named addressee, please notify
>> 
>> the sender immediately and delete this email from your system.
>> 
>> If you have received this communication, and are not a named
>> 
>> recipient, you are hereby notified that any dissemination,
>> 
>> distribution or copying of this communication is strictly prohibited.
>> ######################################################################

Reply via email to