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

Msg91 send OTP javax.crypto.AEADBadTagException #673

Closed
1t5j0y opened this issue Dec 26, 2023 · 1 comment
Closed

Msg91 send OTP javax.crypto.AEADBadTagException #673

1t5j0y opened this issue Dec 26, 2023 · 1 comment
Assignees
Labels

Comments

@1t5j0y
Copy link
Contributor

1t5j0y commented Dec 26, 2023

https://app.bugsnag.com/samanvay-research-and-development-foundation/avni-server/errors/6585530be11f9c00080046df

javax.crypto.AEADBadTagException: Tag mismatch!
        at com.sun.crypto.provider.GaloisCounterMode.decryptFinal(GaloisCounterMode.java:620)
        at com.sun.crypto.provider.CipherCore.finalNoPadding(CipherCore.java:1116)
        at com.sun.crypto.provider.CipherCore.fillOutputBuffer(CipherCore.java:1053)
        at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:853)
        at com.sun.crypto.provider.AESCipher.engineDoFinal(AESCipher.java:446)
        at javax.crypto.Cipher.doFinal(Cipher.java:2168)
        at org.avni.server.service.CryptoService.decrypt(CryptoService.java:57)
        at org.avni.server.service.CryptoService.decryptWithIVPrefixed(CryptoService.java:67)
        at org.avni.server.service.Msg91ConfigService.decryptAuthKey(Msg91ConfigService.java:28)
        at org.avni.server.service.PhoneNumberVerificationService.createMsg91Request(PhoneNumberVerificationService.java:186)
        at org.avni.server.service.PhoneNumberVerificationService.sendOTP(PhoneNumberVerificationService.java:56)
        at org.avni.server.web.PhoneNumberVerificationController.sendOTP(PhoneNumberVerificationController.java:36)
        at org.avni.server.web.PhoneNumberVerificationController$$FastClassBySpringCGLIB$$12fce09d.invoke(<generated>:-1)
        at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
@1t5j0y 1t5j0y converted this from a draft issue Dec 26, 2023
@1t5j0y 1t5j0y added the bugsnag label Dec 26, 2023
@mahalakshme mahalakshme moved this from New Issues to Ready in Avni Product Dec 26, 2023
@1t5j0y 1t5j0y moved this from Ready to In Progress in Avni Product Dec 26, 2023
@1t5j0y 1t5j0y self-assigned this Dec 26, 2023
1t5j0y added a commit to avniproject/avni-infra that referenced this issue Dec 26, 2023
@1t5j0y
Copy link
Contributor Author

1t5j0y commented Dec 26, 2023

Root cause: Incorrect encryption key configured for prod environment.

@1t5j0y 1t5j0y closed this as completed Dec 26, 2023
@github-project-automation github-project-automation bot moved this from In Progress to Done in Avni Product Dec 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

No branches or pull requests

1 participant