<?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 Re: MiNiFi agent cannot connect to secure EFM in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/MiNiFi-agent-cannot-connect-to-secure-EFM/m-p/344323#M234143</link>
    <description>&lt;P&gt;I answer my own question. This is due to wrong user login format. It should be in email format.&lt;BR /&gt;Change this&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;FONT face="courier new,courier"&gt;efm.security.user.auth.adminIdentities=admin&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;to&lt;/P&gt;&lt;PRE&gt;&lt;FONT face="courier new,courier"&gt;efm.security.user.auth.adminIdentities=admin@domain.com&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Tue, 24 May 2022 03:05:47 GMT</pubDate>
    <dc:creator>nur.majid</dc:creator>
    <dc:date>2022-05-24T03:05:47Z</dc:date>
    <item>
      <title>MiNiFi agent cannot connect to secure EFM</title>
      <link>https://community.cloudera.com/t5/Support-Questions/MiNiFi-agent-cannot-connect-to-secure-EFM/m-p/344294#M234139</link>
      <description>&lt;P&gt;Hi, I've been successfully secure EFM to Keycloak server with oidc auth. But Minifi agent wont show up in EFM Dashboard. I've check both EFM and minifi log but not found any clues. Need your help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot at May 23 15-56-51.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/34420iFC6BE2DAA0E61E1A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot at May 23 15-56-51.png" alt="Screenshot at May 23 15-56-51.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Here my &lt;FONT face="courier new,courier"&gt;conf/efm.properties&lt;/FONT&gt; config:&lt;/P&gt;&lt;PRE&gt;&lt;FONT face="courier new,courier"&gt;# Web Server TLS Properties&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;efm.server.ssl.enabled=true&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;efm.server.ssl.keyStore=/home/efm/certs/keystore.jks&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;efm.server.ssl.keyStoreType=jks&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;efm.server.ssl.keyStorePassword=ksPasswd&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;efm.server.ssl.keyPassword=ksPasswd&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;efm.server.ssl.trustStore=/home/efm/certs/truststore.jks&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;efm.server.ssl.trustStoreType=jks&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;efm.server.ssl.trustStorePassword=changeit&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;efm.server.ssl.clientAuth=WANT&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;# User Authentication Properties&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;efm.security.user.auth.enabled=true&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;efm.security.user.auth.adminIdentities=admin&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;efm.security.user.auth.autoRegisterNewUsers=true&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;efm.security.user.auth.authTokenExpiration=12h&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;efm.security.user.certificate.enabled=true&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;efm.security.user.oidc.enabled=true&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;efm.security.user.oidc.issuerUri=https://keycloak.domain.com:8443/realms/efm&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;efm.security.user.oidc.clientId=efm&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;efm.security.user.oidc.clientSecret=gW23NlKxOfdsFmJMiarFNcXs454g1Zk4ZTew4&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;efm.security.user.oidc.scopes=profile,email&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;efm.security.user.oidc.usernameAttribute=email&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;efm.security.user.oidc.displayNameAttribute=name&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;efm.security.user.oidc.staticConfig.enabled=false&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;efm.security.user.oidc.staticConfig.authorizationUri=&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;efm.security.user.oidc.staticConfig.tokenUri=&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;efm.security.user.oidc.staticConfig.userInfoUri=&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;efm.security.user.oidc.staticConfig.jwkSetUri=&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Minifi &lt;FONT face="courier new,courier"&gt;conf/bootstrap.conf&lt;/FONT&gt;:&lt;/P&gt;&lt;PRE&gt;# Security Properties #&lt;BR /&gt;# These properties take precedence over any equivalent properties specified in config.yml #&lt;BR /&gt;nifi.minifi.security.keystore=/home/minifi/certs/keystore.jks&lt;BR /&gt;nifi.minifi.security.keystoreType=jks&lt;BR /&gt;nifi.minifi.security.keystorePasswd=ksPasswd&lt;BR /&gt;nifi.minifi.security.keyPasswd=ksPasswd&lt;BR /&gt;nifi.minifi.security.truststore=/home/minifi/certs/truststore.jks&lt;BR /&gt;nifi.minifi.security.truststoreType=jks&lt;BR /&gt;nifi.minifi.security.truststorePasswd=changeit&lt;BR /&gt;nifi.minifi.security.ssl.protocol=TLSv1.2&lt;BR /&gt;&lt;BR /&gt;nifi.minifi.sensitive.props.key=myEfmPassword123456&lt;BR /&gt;nifi.minifi.sensitive.props.algorithm=PBEWITHMD5AND256BITAES-CBC-OPENSSL&lt;BR /&gt;nifi.minifi.sensitive.props.provider=BC&lt;BR /&gt;&lt;BR /&gt;# MiNiFi Command &amp;amp; Control Configuration&lt;BR /&gt;# C2 Properties&lt;BR /&gt;# Enabling C2 Uncomment each of the following options&lt;BR /&gt;# define those with missing options&lt;BR /&gt;nifi.c2.enable=true&lt;BR /&gt;## define protocol parameters&lt;BR /&gt;nifi.c2.rest.url=https://efm.domain.com:10090/efm/api/c2-protocol/heartbeat&lt;BR /&gt;nifi.c2.rest.url.ack=https://efm.domain.com:10090/efm/api/c2-protocol/acknowledge&lt;BR /&gt;## heartbeat in milliseconds. defaults to once a second&lt;BR /&gt;nifi.c2.agent.heartbeat.period=1000&lt;BR /&gt;## define parameters about your agent&lt;BR /&gt;nifi.c2.agent.class=java-linux&lt;BR /&gt;# Optional. Defaults to a hardware based unique identifier&lt;BR /&gt;nifi.c2.agent.identifier=ip221&lt;BR /&gt;## Define TLS security properties for C2 communications&lt;BR /&gt;nifi.c2.security.truststore.location=/home/minifi/certs/truststore.jks&lt;BR /&gt;nifi.c2.security.truststore.password=changeit&lt;BR /&gt;nifi.c2.security.truststore.type=JKS&lt;BR /&gt;nifi.c2.security.keystore.location=/home/minifi/certs/keystore.jks&lt;BR /&gt;nifi.c2.security.keystore.password=ksPasswd&lt;BR /&gt;nifi.c2.security.keystore.type=JKS&lt;BR /&gt;nifi.c2.security.need.client.auth=true&lt;BR /&gt;&lt;BR /&gt;Minifi Logs:&lt;BR /&gt;&lt;BR /&gt;$ tail -f logs/minifi-bootstrap.log&lt;BR /&gt;2022-05-23 15:15:24,241 INFO [MiNiFi Bootstrap Command Listener] o.apache.nifi.minifi.bootstrap.RunMiNiFi The thread to run Apache MiNiFi is now running and listening for Bootstrap requests on port 37443&lt;BR /&gt;2022-05-23 15:15:29,119 INFO [pool-2-thread-1] o.a.n.m.b.s.r.RestHeartbeatReporter Performing request to https://efm.domain.com:10090/efm/api/c2-protocol/heartbeat&lt;BR /&gt;2022-05-23 15:15:29,813 INFO [pool-2-thread-1] o.a.n.m.b.s.r.RestHeartbeatReporter Performing request to https://efm.domain.com:10090/efm/api/c2-protocol/heartbeat&lt;BR /&gt;2022-05-23 15:15:30,803 INFO [pool-2-thread-1] o.a.n.m.b.s.r.RestHeartbeatReporter Performing request to https://efm.domain.com:10090/efm/api/c2-protocol/heartbeat&lt;BR /&gt;2022-05-23 15:15:31,784 INFO [pool-2-thread-1] o.a.n.m.b.s.r.RestHeartbeatReporter Performing request to https://efm.domain.com:10090/efm/api/c2-protocol/heartbeat&lt;BR /&gt;2022-05-23 15:15:32,778 INFO [pool-2-thread-1] o.a.n.m.b.s.r.RestHeartbeatReporter Performing request to https://efm.domain.com:10090/efm/api/c2-protocol/heartbeat&lt;BR /&gt;2022-05-23 15:15:33,782 INFO [pool-2-thread-1] o.a.n.m.b.s.r.RestHeartbeatReporter Performing request to https://efm.domain.com:10090/efm/api/c2-protocol/heartbeat&lt;BR /&gt;2022-05-23 15:15:34,779 INFO [pool-2-thread-1] o.a.n.m.b.s.r.RestHeartbeatReporter Performing request to https://efm.domain.com:10090/efm/api/c2-protocol/heartbeat&lt;BR /&gt;2022-05-23 15:15:35,773 INFO [pool-2-thread-1] o.a.n.m.b.s.r.RestHeartbeatReporter Performing request to https://efm.domain.com:10090/efm/api/c2-protocol/heartbeat&lt;BR /&gt;2022-05-23 15:15:36,778 INFO [pool-2-thread-1] o.a.n.m.b.s.r.RestHeartbeatReporter Performing request to https://efm.domain.com:10090/efm/api/c2-protocol/heartbeat&lt;BR /&gt;2022-05-23 15:15:37,776 INFO [pool-2-thread-1] o.a.n.m.b.s.r.RestHeartbeatReporter Performing request to https://efm.domain.com:10090/efm/api/c2-protocol/heartbeat&lt;BR /&gt;2022-05-23 15:15:38,771 INFO [pool-2-thread-1] o.a.n.m.b.s.r.RestHeartbeatReporter Performing request to https://efm.domain.com:10090/efm/api/c2-protocol/heartbeat&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EFM version&amp;nbsp;efm-1.4.0.0-125&lt;/P&gt;&lt;P&gt;MiNiFi version&amp;nbsp;minifi-0.6.0.1.3.1.0-68&lt;BR /&gt;&lt;BR /&gt;References:&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&lt;A href="https://docs.cloudera.com/cem/1.4.0/securing-cem/topics/cem-agent-authentication.html" target="_blank"&gt;Agent authentication (cloudera.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&lt;A href="https://nizan-shookroun.medium.com/install-and-configure-minifi-agents-f22a0cc09622" target="_blank"&gt;https://nizan-shookroun.medium.com/install-and-configure-minifi-agents-f22a0cc09622&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2022 09:12:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/MiNiFi-agent-cannot-connect-to-secure-EFM/m-p/344294#M234139</guid>
      <dc:creator>nur.majid</dc:creator>
      <dc:date>2022-05-23T09:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: MiNiFi agent cannot connect to secure EFM</title>
      <link>https://community.cloudera.com/t5/Support-Questions/MiNiFi-agent-cannot-connect-to-secure-EFM/m-p/344323#M234143</link>
      <description>&lt;P&gt;I answer my own question. This is due to wrong user login format. It should be in email format.&lt;BR /&gt;Change this&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;FONT face="courier new,courier"&gt;efm.security.user.auth.adminIdentities=admin&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;to&lt;/P&gt;&lt;PRE&gt;&lt;FONT face="courier new,courier"&gt;efm.security.user.auth.adminIdentities=admin@domain.com&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 03:05:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/MiNiFi-agent-cannot-connect-to-secure-EFM/m-p/344323#M234143</guid>
      <dc:creator>nur.majid</dc:creator>
      <dc:date>2022-05-24T03:05:47Z</dc:date>
    </item>
  </channel>
</rss>

