Uploaded image for project: 'Application Authorization Framework'
  1. Application Authorization Framework
  2. AAF-618

AAF Shiro Plugin (aaf.cadi.shiro) needs to work with bath.csv file

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Medium Medium
    • Casablanca Release
    • Casablanca Release
    • Casablanca-RC2 (11/08/18), Casablanca-RC2.1 (11/30/18)

      AAF Shiro Plugin (aaf.cadi.shiro) is failing to work with bath.csv file.

       

      bath_config.csv:

      APPC_RESTCONF_UI -> appc@appc.onap.org
      Basic YWRtaW46S3A4Yko0U1hzek0wV1hsaGFrM2VIbGNzZTJnQXc4NHZhb0dHbUp2VXkyVQ==,Basic YXBwY0BhcHBjLm9uYXAub3JnOmRlbW8xMjM0NTYh,2050-03-03

      cadi.properties:

      ###

      1. ============LICENSE_START=======================================================
      2. APPC
      3. ================================================================================
      4. Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
      5. ================================================================================
      6. Licensed under the Apache License, Version 2.0 (the "License");
      7. you may not use this file except in compliance with the License.
      8. You may obtain a copy of the License at
        #
      9. http://www.apache.org/licenses/LICENSE-2.0
        #
      10. Unless required by applicable law or agreed to in writing, software
      11. distributed under the License is distributed on an "AS IS" BASIS,
      12. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      13. See the License for the specific language governing permissions and
      14. limitations under the License.
      15. ============LICENSE_END=========================================================
        ###
        #hostname=localhost

      cadi_loglevel=INFO
      cadi_bath_convert=/opt/onap/appc/data/properties/bath_config.csv

      ############################################################

      1. Properties Generated by AT&T Certificate Manager
      2. @copyright 2016, AT&T
        ############################################################
        cadi_x509_issuers=CN=intermediateCA_1, OU=OSAAF, O=ONAP, C=US
        cadi_keyfile=/opt/onap/appc/data/stores/org.onap.appc.keyfile
        cadi_keystore=/opt/onap/appc/data/stores/org.onap.appc.p12
        cadi_keystore_password=enc:4DVUTKvRCCtebQrKskDsuKFIHLzOf2M9XxNOhVIK4xb
        #cadi_key_password=enc:<KEY PASSWORD (optional if the same as KEYSTORE PASSWORD)>
        cadi_alias=appc@appc.onap.org
        cadi_truststore=/opt/onap/appc/data/stores/truststoreONAPall.jks
        cadi_truststore_password=enc:O3Vtv5e77OQWJ_OiLC9Atj3ngyYfulRK519JYFmbKl7

      ##

        1. org.osaaf.location.props
          ##
        2. Localized Machine Information
          ##
      1. Almeda California ?
        cadi_latitude=37.78187
        cadi_longitude=-122.26147
      1. Locate URL (which AAF Env)
        aaf_locate_url=https://aaf-locate.\.Release.Namespace:8095
      1. AAF URL
        aaf_url=https://AAF_LOCATE_URL/AAF_NS.service:2.0
      1. AAF Environment Designation
        aaf_env=DEV
      1. OAuth2 Endpoints
        aaf_oauth2_token_url=https://AAF_LOCATE_URL/AAF_NS.token:2.0/token
        aaf_oauth2_introspect_url=https://AAF_LOCATE_URL/AAF_NS.introspect:2.0/introspect

       

      Karaf Log: 

      Apache Karaf starting up. Press Enter to open the shell now...
      92% [==================================================================> ]Starting the bundle
      95% [====================================================================> ]2018-11-07T20:48:37.498+0000 INIT [cadi] Loading CADI Properties from /opt/onap/appc/data/properties/cadi.properties
      2018-11-07T20:48:37.502+0000 INIT [cadi] cadi_keyfile points to /opt/onap/appc/data/stores/org.onap.appc.keyfile
      2018-11-07T20:48:37.608+0000 INIT [cadi] Loading CADI Properties from /opt/onap/appc/data/properties/cadi.properties
      2018-11-07T20:48:37.614+0000 INIT [cadi] cadi_keyfile points to /opt/onap/appc/data/stores/org.onap.appc.keyfile
      2018-11-07T20:48:38.018+0000 INIT [cadi] Loading CADI Properties from /opt/onap/appc/data/properties/cadi.properties
      2018-11-07T20:48:38.019+0000 INIT [cadi] cadi_keyfile points to /opt/onap/appc/data/stores/org.onap.appc.keyfile
      2018-11-07T20:48:38.173+0000 INIT [cadi] cadi_protocols is set to TLSv1.1,TLSv1.2
      2018-11-07T20:48:40.927+0000 INIT [cadi] java.lang.NoSuchMethodException: org.onap.aaf.cadi.aaf.v2_0.AAFLocator.create(java.lang.String)
      2018-11-07T20:48:41.238+0000 INFO [cadi] AAFLocator enabled using https://aaf-locate.onap:8095
      2018-11-07T20:48:41.265+0000 INIT [cadi] Cleaning Thread initialized with interval of 60000 ms and max objects of 1000
      2018-11-07T20:48:41.361+0000 INIT [cadi] java.lang.NoSuchMethodException: org.onap.aaf.cadi.aaf.v2_0.AAFLocator.create(java.lang.String)
      2018-11-07T20:48:41.329+0000 INIT [cadi] java.lang.NoSuchMethodException: org.onap.aaf.cadi.aaf.v2_0.AAFLocator.create(java.lang.String)
      2018-11-07T20:48:41.391+0000 INFO [cadi] AAFLocator enabled using https://aaf-locate.onap:8095
      2018-11-07T20:48:41.411+0000 INFO [cadi] AAFLocator enabled using https://aaf-locate.onap:8095
      2018-11-07T20:48:41.421+0000 INIT [cadi] Cleaning Thread initialized with interval of 60000 ms and max objects of 1000
      2018-11-07T20:48:41.425+0000 INIT [cadi] Cleaning Thread initialized with interval of 60000 ms and max objects of 1000
      2018-11-07T20:48:41.866+0000 INIT [cadi] Loading CADI Properties from /opt/onap/appc/data/properties/cadi.properties
      2018-11-07T20:48:41.867+0000 INIT [cadi] cadi_keyfile points to /opt/onap/appc/data/stores/org.onap.appc.keyfile
      2018-11-07T20:48:41.906+0000 INIT [cadi] Loading CADI Properties from /opt/onap/appc/data/properties/cadi.properties
      2018-11-07T20:48:41.907+0000 INIT [cadi] cadi_keyfile points to /opt/onap/appc/data/stores/org.onap.appc.keyfile
      2018-11-07T20:48:41.943+0000 INIT [cadi] Loading CADI Properties from /opt/onap/appc/data/properties/cadi.properties
      2018-11-07T20:48:41.943+0000 INIT [cadi] cadi_keyfile points to /opt/onap/appc/data/stores/org.onap.appc.keyfile
      2018-11-07T20:48:42.235+0000 INIT [cadi] java.lang.NoSuchMethodException: org.onap.aaf.cadi.aaf.v2_0.AAFLocator.create(java.lang.String)
      2018-11-07T20:48:42.267+0000 INIT [cadi] java.lang.NoSuchMethodException: org.onap.aaf.cadi.aaf.v2_0.AAFLocator.create(java.lang.String)
      2018-11-07T20:48:42.290+0000 INFO [cadi] AAFLocator enabled using https://aaf-locate.onap:8095
      2018-11-07T20:48:42.291+0000 INIT [cadi] Cleaning Thread initialized with interval of 60000 ms and max objects of 1000
      2018-11-07T20:48:42.596+0000 INFO [cadi] AAFLocator enabled using https://aaf-locate.onap:8095
      2018-11-07T20:48:42.670+0000 INIT [cadi] Cleaning Thread initialized with interval of 60000 ms and max objects of 1000
      2018-11-07T20:48:42.871+0000 INIT [cadi] java.lang.NoSuchMethodException: org.onap.aaf.cadi.aaf.v2_0.AAFLocator.create(java.lang.String)
      2018-11-07T20:48:43.573+0000 INFO [cadi] AAFLocator enabled using https://aaf-locate.onap:8095
      2018-11-07T20:48:43.574+0000 INIT [cadi] Cleaning Thread initialized with interval of 60000 ms and max objects of 1000
      100% [========================================================================]
      Karaf started in 113s. Bundle stats: 570 active, 571 total
      2018-11-07T20:50:37.303+0000 INFO [cadi] AAFLurPerm: Loaded appc@appc.onap.org perms from AAF in 27.413511 ms, remote=25.556120
      2018-11-07T20:50:41.264+0000 INFO [cadi] admin remains in Missed Credential Map (0 invalid tries) for 55 more seconds
      2018-11-07T20:50:41.421+0000 INFO [cadi] admin remains in Missed Credential Map (0 invalid tries) for 55 more seconds
      2018-11-07T20:50:41.430+0000 INFO [cadi] admin remains in Missed Credential Map (0 invalid tries) for 55 more seconds
      2018-11-07T20:50:42.296+0000 INFO [cadi] admin remains in Missed Credential Map (0 invalid tries) for 54 more seconds
      2018-11-07T20:50:42.677+0000 INFO [cadi] admin remains in Missed Credential Map (0 invalid tries) for 54 more seconds
      2018-11-07T20:50:43.574+0000 INFO [cadi] admin remains in Missed Credential Map (0 invalid tries) for 53 more seconds

      2018-11-08T13:11:42.016+0000 INFO [cadi] admin remains in Missed Credential Map (0 invalid tries) for 40 more seconds
      2018-11-08T13:11:42.125+0000 INFO [cadi] admin remains in Missed Credential Map (0 invalid tries) for 40 more seconds
      2018-11-08T13:11:42.125+0000 INFO [cadi] admin remains in Missed Credential Map (0 invalid tries) for 40 more seconds
      2018-11-08T13:11:42.892+0000 INFO [cadi] admin remains in Missed Credential Map (0 invalid tries) for 39 more seconds
      2018-11-08T13:11:43.130+0000 INFO [cadi] admin remains in Missed Credential Map (0 invalid tries) for 39 more seconds
      2018-11-08T13:11:43.984+0000 INFO [cadi] admin remains in Missed Credential Map (0 invalid tries) for 38 more seconds
      2018-11-08T13:12:42.017+0000 INFO [cadi] admin has been removed from Missed Credential Map (0 invalid tries)

            sg481n sg481n
            ah415j ah415j
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: