blob: aaad60320d08b8684c4796d11a6dd47eb243b562 [file] [log] [blame]
MichaelMorris37cacbd2019-08-02 23:20:31 +00001The following describes how to configure authentication for the VNFM adapter.
2
MichaelMorris7ad6f762019-09-20 13:57:10 +01003TLS should always be configured to ensure secure communication between the VNFM-adapter <-> BPMN infra and VNFM-adapter <-> VNFM
4If two-way TLS is configured then there is no need for any further authentication (i.e. no need for token or basic auth).
5If two-way TLS is NOT configured then authentication is REQUIRED. Oauth token based authentication must be used for requests, while for notifications either oauth tokens or basic auth can be used.
6
MichaelMorris37cacbd2019-08-02 23:20:31 +00007
8==========================================
9To confgure TLS
10==========================================
11
12---------------
13VNFM Adapter
14---------------
15The following parameters can be set to configure the certificate for the VNFM adapter
16server:
17 ssl:
18 key-alias: so@so.onap.org
MichaelMorris7ad6f762019-09-20 13:57:10 +010019 key--store-password: 'ywsqCy:EEo#j}HJHM7z^Rk[L'
20 key-store: classpath:so-vnfm-adapter.p12
MichaelMorris37cacbd2019-08-02 23:20:31 +000021 key-store-type: PKCS12
22The values shown above relate to the certificate included in the VNFM adapter jar which has been generated from AAF. If a different certificate is to be used then these values should be changed accordingly.
23
24The following paramters can be set to configure the trust store for the VNFM adapter:
25http:
26 client:
27 ssl:
MichaelMorris7ad6f762019-09-20 13:57:10 +010028 trust-store: classpath:org.onap.so.trust.jks
29 trust-store-password: ',sx#.C*W)]wVgJC6ccFHI#:H'
MichaelMorris37cacbd2019-08-02 23:20:31 +000030The values shown above relate to the trust store included in the VNFM adapter jar which has been generated from AAI. If a different trust store is to be used then these values should be changed accordingly.
31
32Ensure the value for the below parameter uses https instead of http
33vnfmadapter:
34 endpoint: http://so-vnfm-adapter.onap:9092
35
36---------------
37bpmn-infra
38---------------
39For bpmn-infra, ensure the value for the below parameter uses https instead of http
40so:
41 vnfm:
42 adapter:
43 url: https://so-vnfm-adapter.onap:9092/so/vnfm-adapter/v1/
44
45
46==========================================
47To use two way TLS
48==========================================
49
50Ensure the value for username and password are empty in the AAI entry for the VNFM (The VNFM adapter will use oauth instead of two way TLS if the username/password is set).
51Ensure TLS has been configuered as detailed above.
52
53---------------
54VNFM adapter
55---------------
56Set the following parameter for the VNFM adapter:
57server:
58 ssl:
59 client-auth: need
60
61---------------
62bpmn-infra:
63---------------
64Set the following paramters for bpmn-infra:
65rest:
66 http:
67 client:
68 configuration:
69 ssl:
70 keyStore: classpath:org.onap.so.p12
71 keyStorePassword: 'RLe5ExMWW;Kd6GTSt0WQz;.Y'
72 trustStore: classpath:org.onap.so.trust.jks
73 trustStorePassword: '6V%8oSU$,%WbYp3IUe;^mWt4'
74Ensure the value for the below parameter uses https instead of http
75so:
76 vnfm:
77 adapter:
78 url: https://so-vnfm-adapter.onap:9092/so/vnfm-adapter/v1/
79
80---------------
81VNFM simulator:
82---------------
83Set the following parameters for the VNFM simulator (if used):
84server:
85 ssl:
86 client-auth: need
87 request:
88 grant:
89 auth: twowaytls
90
91==========================================
92To use oauth token base authentication
93==========================================
94
95---------------
96VNFM adapter:
97---------------
98Ensure the value for username and password set set in the AAI entry for the VNFM. The VNFM adapter will use this username/password as the client credentials in the request for a token for the VNFM. The token endpoint
99for the VNFM will by default will be derived from the service url for the VNFM in AAI as follows: <base of service url>/oauth/token, e.g. if the service url is https://so-vnfm-simulator.onap/vnflcm/v1 then the token url will
100be taken to be https://so-vnfm-simulator.onap/oauth/token. This can be overriden using the following parameter for the VNFM adapter:
101vnfmadapter:
102 temp:
103 vnfm:
104 oauth:
105 endpoint:
106
107The VNFM adapter exposes a token point at url: https://<hostname>:<port>/oauth/token e.g. https://so-vnfm-adapter.onap:9092/oauth/token. The VNFM can request a token from this endpoint for use in grant requests and notifications
108to the VNFM adapter. The username/password to be used in the token request are passed to the VNFM in a subscription request. The username/password sent by the VNFM adpater in the subscription request can be configuered using the
109following parameter:
110vnfmadapter:
111 auth: <encoded value>
112where <encoded value> is '<username>:<password>' encoded using org.onap.so.utils.CryptoUtils with the key set by the paramter:
113mso:
114 key: <key>
115The default username:password is vnfm-adapter:123456 when vnfm-adapter.auth is not set.
116
117---------------
118VNFM simulator:
119---------------
120Set the following parameters for the simulator:
121spring:
122 profiles:
123 active: oauth-authentication
124server:
125 request:
126 grant:
127 auth: oauth
128
129==========================================
130To use basic auth for notifications
131==========================================
132The same username/password is used as for oauth token requests as describe above and passed to the VNFM in the subscription request.