Migrate aaa-encrypt-service to OSGi DS 90/94290/20
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 14 Feb 2023 11:28:24 +0000 (12:28 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 14 Feb 2023 18:29:10 +0000 (19:29 +0100)
commit574af617deed15c625ab420c85ade467308a0d9c
tree5e92abb07f974d238e7848fe760346be1e6f3067
parent0ca412d7387be08bc904fc5f2cc96c9f2001204f
Migrate aaa-encrypt-service to OSGi DS

This service is using clustered-app-config, hence the migration
is a bit more involved, but this gets rid of another blueprint.

The way this operates is it instantiates listens for datastore changes,
updates the configuration if needed, and then uses a ComponentFactory
to instantiate the service.

One notable change here is that we no longer provide an .xml which the
user can edit -- hence the datastore is only populated if it is empty
and we generate a new encryption key for every new deployment.

JIRA: AAA-204
Change-Id: I83a8f8fea8e272dc4b9c801be6799a15aa71f5ec
Signed-off-by: Tomas Cere <tomas.cere@pantheon.tech>
Signed-off-by: Peter Suna <peter.suna@pantheon.tech>
Signed-off-by: OleksandrZharov <Oleksandr.Zharov@pantheon.tech>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
16 files changed:
aaa-encrypt-service/impl/pom.xml
aaa-encrypt-service/impl/src/main/java/org/opendaylight/aaa/encrypt/impl/AAAEncryptionServiceConfigurator.java [deleted file]
aaa-encrypt-service/impl/src/main/java/org/opendaylight/aaa/encrypt/impl/AAAEncryptionServiceImpl.java
aaa-encrypt-service/impl/src/main/java/org/opendaylight/aaa/encrypt/impl/EncryptServiceConfigImpl.java [new file with mode: 0644]
aaa-encrypt-service/impl/src/main/java/org/opendaylight/aaa/encrypt/impl/EncryptServiceConfigSupplier.java [deleted file]
aaa-encrypt-service/impl/src/main/java/org/opendaylight/aaa/encrypt/impl/OSGiEncryptionServiceConfigurator.java [new file with mode: 0644]
aaa-encrypt-service/impl/src/main/resources/OSGI-INF/blueprint/encryptservice.xml [deleted file]
aaa-encrypt-service/impl/src/main/resources/initial/aaa-encrypt-service-config.xml [deleted file]
aaa-encrypt-service/impl/src/main/yang/aaa-encrypt-service-config.yang
aaa-encrypt-service/impl/src/test/java/org/opendaylight/aaa/encrypt/impl/AAAEncryptServiceImplTest.java
aaa-encrypt-service/impl/src/test/java/org/opendaylight/aaa/encrypt/impl/OSGiEncryptionServiceConfiguratorTest.java [new file with mode: 0644]
artifacts/pom.xml
dependency-check/pom.xml
features/odl-aaa-cert/src/main/feature/feature.xml
features/odl-aaa-encryption-service/pom.xml
features/odl-aaa-encryption-service/src/main/feature/feature.xml