This page is mostly a wishful thinking. It does not reflect the current state of ONAP security. It's rather where we would like to be.
ONAP introduction
ONAP from the milky way point of view
From the very optimistic perspective ONAP is an independent system in the outer space that provides interfaces for User, Admin and OSS/BSS system in the North and xNF in the South and uses interfaces provided by NFVI and xNF.
ONAP deployed on kubernetes
ONAP has to be deployed on some infra. Currently it's kubernetes.
ONAP deployed on kubernetes with external databases
As most of applications ONAP requires some persistence layer in form of databases. As ONAP follows micro-service architecture principle in theory each component could ship its own database but in practice in commercial deployments its desired to configure ONAP to use external DB engines already existing in operators infrastructure.
ONAP deployed on kubernetes with external databases and external IAM
Obviously it's hard to imagine operator that would like to have one more identity DB to managed specifically for ONAP thus ONAP should have the ability to integrate with external IAM system.
ONAP deployed on kubernetes with external databases and external IAM and external CA
Most of the operators probably already have Certificate Authority server running in their network and a requirement that all services should present a valid certificate signed by this CA. This means that ONAP should provide the ability to integrate with external CA instead of shipping own one.
Defining system boundaries
Provided interfaces
- Admin/User/OSS/BSS interfaces are REST.
- xNF southbound interfaces are VES events (protocol depends on the collector used)
Used interfaces
- Kubernetes interface is REST. Exact supported version of kubernetes has to be specified by every ONAP release
- Database interface depends on DB type but only encrypted communication should be used
- xNF interface depends on particular xNF but all xNFs should support secure protocols for communication
- NFVI interface is REST (usually OpenStack or Kubernetes)
- IAM interface is Open ID Connect
- if operator already has OIDC compatible solution ONAP should just use it
- if operator has Identity Provider (LDAP/Kerberos/etc) external OIDC solution should be deployed (ie keycloak) with operator IdP configured as backend
- In testing environment external OIDC solution should be deployed and bootstraped with test users
- CA interface can be one of:
- Manual interaction by deployer that will retrieve certificates and the bootstrap ONAP instance with them
- One of automated certificate retrieval protocols (ACME, CMPv2 etc)
- In testing environment external CA (and ONAP should use automated certificate retrieval as described in b) solution should be deployed
Requirements towards used interfaces
Kubernetes
- Cluster should be configured according to CIS guideline
- Encryption at rest should be properly configured to ensure that secrets are never stored in the plain text
Databases
- Each DB should be configured according to corresponding CIS guideline
- All DB should be already created or ONAP should be provided with user that is capable of creating DB
- If ONAP creates a DB a dedicated user account with privileges limited to that DB should be created. Password used for this user cannot be hardcoded in ONAP source.
xNF
As defined in ONAP VNF security requirements
NFVI
As defined in CNTT Reference Architecture 1 & 2
IAM
- IAM has to support OpenID connect standard
CA
- If automated certificate retrieval is used one of .... has to be supported by the CA
Requirements towards exposed interfaces
- North and south interfaces should be separated (ie different instance of ingress controller) to allow to configure operator network policy properly
- All Northbound interfaces has to be protected using TLS
- All Northbound interfaces has to support SSO
- All Northbound interfaces has to support RBAC
- All roles used in ONAP have to be documented
- All forms should validate and sanitize their input provided by the user
- Southbound interfaces has to fulfill VNF security requirements
- ...
Internal ONAP security requirements
- ONAP should not include any user database
- ONAP should not implement RBAC on it's own but depend on external component to provide it
- ONAP should not implement CA functionality but depend on external component to provide it
- ONAP components should use mTLS instead of username/password for authentication between each other
- ONAP should configure network policies so that only desired components can communicate with each other
- ONAP have to store all sensitive material (keys, passwords) in kubernetes secrets
- ONAP docker images have to be hardened
- ONAP can use only approved docker base images
- ONAP should log all important events in the centralized place
- ONAP should log security audit logs to a secure location
- ONAP logs cannot include any secret material
- All ONAP components have to support OIDC
- ...