<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Nifi cannot auth using OIDC keycloak with proxy server in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Nifi-cannot-auth-using-OIDC-keycloak-with-proxy-server/m-p/412694#M253629</link>
    <description>&lt;P&gt;I launch nifi server using docker with connection to external Keycloak:&lt;/P&gt;&lt;PRE&gt;nifi:&lt;BR /&gt;  hostname: &amp;lt;IP&amp;gt;&lt;BR /&gt;  image: apache/nifi:latest&lt;BR /&gt;  environment:&lt;BR /&gt;    AUTH: oidc&lt;BR /&gt;    NIFI_SECURITY_USER_OIDC_DISCOVERY_URL: https://&amp;lt;keycloak_url&amp;gt;/realms/&amp;lt;realm&amp;gt;/.well-known/openid-configuration&lt;BR /&gt;    NIFI_SECURITY_USER_OIDC_CLIENT_ID: &amp;lt;client_id&amp;gt;&lt;BR /&gt;    NIFI_SECURITY_USER_OIDC_CLIENT_SECRET: &amp;lt;client_secret&amp;gt;&lt;BR /&gt;    NIFI_SECURITY_USER_OIDC_ADDITIONAL_SCOPES: email&lt;BR /&gt;    NIFI_SECURITY_USER_OIDC_CLAIM_IDENTIFYING_USER: preferred_username&lt;BR /&gt;    NIFI_SECURITY_USER_OIDC_TRUSTSTORE_STRATEGY: NIFI&lt;BR /&gt;    NIFI_CLUSTER_NODE_PROTOCOL_PORT: 6007&lt;BR /&gt;    NIFI_SENSITIVE_PROPS_KEY: &amp;lt;key&amp;gt;&lt;BR /&gt;    SINGLE_USER_CREDENTIALS_USERNAME: admin&lt;BR /&gt;    SINGLE_USER_CREDENTIALS_PASSWORD: &amp;lt;pass&amp;gt;&lt;BR /&gt;    NIFI_WEB_HTTPS_HOST: &amp;lt;IP&amp;gt;&lt;BR /&gt;    NIFI_WEB_PROXY_HOST: &amp;lt;domain&amp;gt;&lt;BR /&gt;    NIFI_WEB_HTTPS_PORT: 8443&lt;BR /&gt;    KEYSTORE_PATH: /opt/certs/keystore.p12&lt;BR /&gt;    KEYSTORE_TYPE: PKCS12&lt;BR /&gt;    KEYSTORE_PASSWORD: &amp;lt;pass&amp;gt;&lt;BR /&gt;    TRUSTSTORE_PATH: /opt/certs/truststore.p12&lt;BR /&gt;    TRUSTSTORE_TYPE: PKCS12&lt;BR /&gt;    TRUSTSTORE_PASSWORD: &amp;lt;pass&amp;gt;&lt;BR /&gt;    NIFI_SECURITY_USER_AUTHORIZER: single-user-authorizer&lt;BR /&gt;    NIFI_SECURITY_USER_LOGIN_IDENTITY_PROVIDER: single-user-provider&lt;BR /&gt;    NIFI_CLUSTER_IS_NODE: true&lt;BR /&gt;    NIFI_CLUSTER_MANAGER_ADDRESS: zookeeper&lt;BR /&gt;    NIFI_CLUSTER_MANAGER_PORT: 2181&lt;BR /&gt;    NIFI_ZK_CONNECT_STRING: "localhost:2181"&lt;BR /&gt;    NIFI_ELECTION_MAX_CANDIDATES: 1&lt;BR /&gt;    NIFI_ELECTION_MAX_TIMEOUT: "10 sec"&lt;BR /&gt;  volumes:&lt;BR /&gt;    - nifi_conf:/opt/nifi/nifi-current/conf&lt;BR /&gt;    - nifi_content_repository:/opt/nifi/nifi-current/content_repository&lt;BR /&gt;    - nifi_flowfile_repository:/opt/nifi/nifi-current/flowfile_repository&lt;BR /&gt;    - nifi_provenance_repository:/opt/nifi/nifi-current/provenance_repository&lt;BR /&gt;    - nifi_database_repository:/opt/nifi/nifi-current/database_repository&lt;BR /&gt;    - nifi_logs:/opt/nifi/nifi-current/logs&lt;BR /&gt;    - ./certs/keystore.p12:/opt/certs/keystore.p12&lt;BR /&gt;    - ./certs/truststore.p12:/opt/certs/truststore.p12&lt;BR /&gt;  network_mode: host&lt;BR /&gt;nginx:&lt;BR /&gt;  image: nginx&lt;BR /&gt;  container_name: nginx&lt;BR /&gt;  volumes:&lt;BR /&gt;    - ./nginx/nginx.conf:/etc/nginx/nginx.conf&lt;BR /&gt;    - ./nginx/certs:/keys&lt;BR /&gt;  network_mode: host&lt;BR /&gt;  restart: unless-stopped&lt;/PRE&gt;&lt;P&gt;With using proxy server nginx:&lt;/P&gt;&lt;PRE&gt;http {&lt;BR /&gt;  server {&lt;BR /&gt;    listen 443 ssl;&lt;BR /&gt;    server_name &amp;lt;domain&amp;gt;;&lt;BR /&gt;    ssl_certificate /keys/certificate.pem;&lt;BR /&gt;    ssl_certificate_key /keys/certificate.key;&lt;BR /&gt;    proxy_ssl_certificate /keys/nifi.pem;&lt;BR /&gt;    proxy_ssl_certificate_key /keys/nifi.key;&lt;BR /&gt;    proxy_ssl_trusted_certificate /keys/nifi.pem;&lt;BR /&gt;&lt;BR /&gt;    location / {&lt;BR /&gt;      proxy_set_header Host $http_host;&lt;BR /&gt;      proxy_set_header X-ProxyScheme "https";&lt;BR /&gt;      proxy_set_header X-ProxyHost $host;&lt;BR /&gt;      proxy_set_header X-ProxyPort 8443;&lt;BR /&gt;      proxy_set_header X-ProxyContextPath "/";&lt;BR /&gt;      proxy_pass https://&amp;lt;IP&amp;gt;:8443;&lt;BR /&gt;    }&lt;BR /&gt;  }&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;From my local machine if I try to access via IP address, nifi redirect me to keycloak and auth working with my keycloak user.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I try to access via domain, I already auth in nifi with tls (with using cert from proxy server, account "CN=&amp;lt;IP&amp;gt;, Ou=...") without redirect to keycloak.&lt;/P&gt;&lt;P&gt;Can you explain me in Nifi auth process and what can I do so that I could auth in nifi server via domain with oidc Keycloak?&lt;/P&gt;</description>
    <pubDate>Sun, 19 Oct 2025 14:05:00 GMT</pubDate>
    <dc:creator>aaaver</dc:creator>
    <dc:date>2025-10-19T14:05:00Z</dc:date>
    <item>
      <title>Nifi cannot auth using OIDC keycloak with proxy server</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-cannot-auth-using-OIDC-keycloak-with-proxy-server/m-p/412694#M253629</link>
      <description>&lt;P&gt;I launch nifi server using docker with connection to external Keycloak:&lt;/P&gt;&lt;PRE&gt;nifi:&lt;BR /&gt;  hostname: &amp;lt;IP&amp;gt;&lt;BR /&gt;  image: apache/nifi:latest&lt;BR /&gt;  environment:&lt;BR /&gt;    AUTH: oidc&lt;BR /&gt;    NIFI_SECURITY_USER_OIDC_DISCOVERY_URL: https://&amp;lt;keycloak_url&amp;gt;/realms/&amp;lt;realm&amp;gt;/.well-known/openid-configuration&lt;BR /&gt;    NIFI_SECURITY_USER_OIDC_CLIENT_ID: &amp;lt;client_id&amp;gt;&lt;BR /&gt;    NIFI_SECURITY_USER_OIDC_CLIENT_SECRET: &amp;lt;client_secret&amp;gt;&lt;BR /&gt;    NIFI_SECURITY_USER_OIDC_ADDITIONAL_SCOPES: email&lt;BR /&gt;    NIFI_SECURITY_USER_OIDC_CLAIM_IDENTIFYING_USER: preferred_username&lt;BR /&gt;    NIFI_SECURITY_USER_OIDC_TRUSTSTORE_STRATEGY: NIFI&lt;BR /&gt;    NIFI_CLUSTER_NODE_PROTOCOL_PORT: 6007&lt;BR /&gt;    NIFI_SENSITIVE_PROPS_KEY: &amp;lt;key&amp;gt;&lt;BR /&gt;    SINGLE_USER_CREDENTIALS_USERNAME: admin&lt;BR /&gt;    SINGLE_USER_CREDENTIALS_PASSWORD: &amp;lt;pass&amp;gt;&lt;BR /&gt;    NIFI_WEB_HTTPS_HOST: &amp;lt;IP&amp;gt;&lt;BR /&gt;    NIFI_WEB_PROXY_HOST: &amp;lt;domain&amp;gt;&lt;BR /&gt;    NIFI_WEB_HTTPS_PORT: 8443&lt;BR /&gt;    KEYSTORE_PATH: /opt/certs/keystore.p12&lt;BR /&gt;    KEYSTORE_TYPE: PKCS12&lt;BR /&gt;    KEYSTORE_PASSWORD: &amp;lt;pass&amp;gt;&lt;BR /&gt;    TRUSTSTORE_PATH: /opt/certs/truststore.p12&lt;BR /&gt;    TRUSTSTORE_TYPE: PKCS12&lt;BR /&gt;    TRUSTSTORE_PASSWORD: &amp;lt;pass&amp;gt;&lt;BR /&gt;    NIFI_SECURITY_USER_AUTHORIZER: single-user-authorizer&lt;BR /&gt;    NIFI_SECURITY_USER_LOGIN_IDENTITY_PROVIDER: single-user-provider&lt;BR /&gt;    NIFI_CLUSTER_IS_NODE: true&lt;BR /&gt;    NIFI_CLUSTER_MANAGER_ADDRESS: zookeeper&lt;BR /&gt;    NIFI_CLUSTER_MANAGER_PORT: 2181&lt;BR /&gt;    NIFI_ZK_CONNECT_STRING: "localhost:2181"&lt;BR /&gt;    NIFI_ELECTION_MAX_CANDIDATES: 1&lt;BR /&gt;    NIFI_ELECTION_MAX_TIMEOUT: "10 sec"&lt;BR /&gt;  volumes:&lt;BR /&gt;    - nifi_conf:/opt/nifi/nifi-current/conf&lt;BR /&gt;    - nifi_content_repository:/opt/nifi/nifi-current/content_repository&lt;BR /&gt;    - nifi_flowfile_repository:/opt/nifi/nifi-current/flowfile_repository&lt;BR /&gt;    - nifi_provenance_repository:/opt/nifi/nifi-current/provenance_repository&lt;BR /&gt;    - nifi_database_repository:/opt/nifi/nifi-current/database_repository&lt;BR /&gt;    - nifi_logs:/opt/nifi/nifi-current/logs&lt;BR /&gt;    - ./certs/keystore.p12:/opt/certs/keystore.p12&lt;BR /&gt;    - ./certs/truststore.p12:/opt/certs/truststore.p12&lt;BR /&gt;  network_mode: host&lt;BR /&gt;nginx:&lt;BR /&gt;  image: nginx&lt;BR /&gt;  container_name: nginx&lt;BR /&gt;  volumes:&lt;BR /&gt;    - ./nginx/nginx.conf:/etc/nginx/nginx.conf&lt;BR /&gt;    - ./nginx/certs:/keys&lt;BR /&gt;  network_mode: host&lt;BR /&gt;  restart: unless-stopped&lt;/PRE&gt;&lt;P&gt;With using proxy server nginx:&lt;/P&gt;&lt;PRE&gt;http {&lt;BR /&gt;  server {&lt;BR /&gt;    listen 443 ssl;&lt;BR /&gt;    server_name &amp;lt;domain&amp;gt;;&lt;BR /&gt;    ssl_certificate /keys/certificate.pem;&lt;BR /&gt;    ssl_certificate_key /keys/certificate.key;&lt;BR /&gt;    proxy_ssl_certificate /keys/nifi.pem;&lt;BR /&gt;    proxy_ssl_certificate_key /keys/nifi.key;&lt;BR /&gt;    proxy_ssl_trusted_certificate /keys/nifi.pem;&lt;BR /&gt;&lt;BR /&gt;    location / {&lt;BR /&gt;      proxy_set_header Host $http_host;&lt;BR /&gt;      proxy_set_header X-ProxyScheme "https";&lt;BR /&gt;      proxy_set_header X-ProxyHost $host;&lt;BR /&gt;      proxy_set_header X-ProxyPort 8443;&lt;BR /&gt;      proxy_set_header X-ProxyContextPath "/";&lt;BR /&gt;      proxy_pass https://&amp;lt;IP&amp;gt;:8443;&lt;BR /&gt;    }&lt;BR /&gt;  }&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;From my local machine if I try to access via IP address, nifi redirect me to keycloak and auth working with my keycloak user.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I try to access via domain, I already auth in nifi with tls (with using cert from proxy server, account "CN=&amp;lt;IP&amp;gt;, Ou=...") without redirect to keycloak.&lt;/P&gt;&lt;P&gt;Can you explain me in Nifi auth process and what can I do so that I could auth in nifi server via domain with oidc Keycloak?&lt;/P&gt;</description>
      <pubDate>Sun, 19 Oct 2025 14:05:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-cannot-auth-using-OIDC-keycloak-with-proxy-server/m-p/412694#M253629</guid>
      <dc:creator>aaaver</dc:creator>
      <dc:date>2025-10-19T14:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi cannot auth using OIDC keycloak with proxy server</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-cannot-auth-using-OIDC-keycloak-with-proxy-server/m-p/413553#M254132</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/134449"&gt;@aaaver&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just wanted to see if you can share little bit more details, for example, the NiFi version and if your using the CFM provided by Cloudera.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you followed these steps from the documentation?&amp;nbsp;&lt;BR /&gt;&lt;A href="https://docs.cloudera.com/cfm-operator/2.11.0/configure-nifi-cr/topics/cfm-op-configure-nifi-cr-oidc-auth.html" target="_blank"&gt;https://docs.cloudera.com/cfm-operator/2.11.0/configure-nifi-cr/topics/cfm-op-configure-nifi-cr-oidc-auth.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Feb 2026 20:00:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-cannot-auth-using-OIDC-keycloak-with-proxy-server/m-p/413553#M254132</guid>
      <dc:creator>vafs</dc:creator>
      <dc:date>2026-02-15T20:00:27Z</dc:date>
    </item>
  </channel>
</rss>

