Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

encryptedAPKAMSymmetric key is missed when the pending enrollments are fetched. #527

Closed
sitaram-kalluri opened this issue Feb 27, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@sitaram-kalluri
Copy link
Member

sitaram-kalluri commented Feb 27, 2024

Describe the bug

Upon app restarting, when the pending enrollments are fetched from the secondary server, the notification contains "appName", "deviceName" and "namespaces".

To approve an enrollment the encryptedAPKAMSymmetricKey is needed. But the enrollments that are fetched using "enroll:list" does not contain the encryptedAPKAMSymmetricKey.

Steps to reproduce

The enroll:list command does not have encryptedAPKAMSymmetricKey because of which pending enrollment cannot be approved by the approving apps.

Solution

Currently, the encryptedAPKAMSymmetricKey is not encapsulated in the EnrollDataStoreValue class which is used to store the enrollment params in the secondary server.

To fix the issue, include encryptedAPKAMSymmetricKey in the EnrollDataStoreValue and persist in the secondary server. When notify, fetch the value and notify along with the other enrollment params.

@sitaram-kalluri sitaram-kalluri added the bug Something isn't working label Feb 27, 2024
@sitaram-kalluri
Copy link
Member Author

Accidentally raised the issue in the wrong repo. Raised the issue in at_server: atsign-foundation/at_server#1821. Closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant