Skip to content

[MOSIP-45715] Generate new machine public keys for every UI test run - #869

Open
jayesh12234 wants to merge 1 commit into
mosip:developfrom
jayesh12234:MOSIP-45715
Open

jayesh12234 wants to merge 1 commit into
mosip:developfrom
jayesh12234:MOSIP-45715

Conversation

@jayesh12234

@jayesh12234 jayesh12234 commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Jira: MOSIP-45715

Summary

  • ConfigManager now generates a new 2048-bit RSA public key for publicKey and signPublicKey on every run, instead of reading fixed values from Kernel.properties or environment variables.
  • The hardcoded publicKey and signPublicKey entries are removed from Kernel.properties.

Why

Masterdata rejects creating a machine whose key fingerprint is already mapped to another machine. With fixed keys, the machine tests fail on every run after the first one against the same environment.

Test plan

  • mvn compile on uitest-admin
  • Run the machine create tests twice against the same environment and confirm both runs pass

Masterdata rejects a machine whose key fingerprint is already mapped, so fixed publicKey and signPublicKey values in Kernel.properties fail after the first run. ConfigManager now creates a 2048-bit RSA public key for each value at startup.

Signed-off-by: Jayesh Kharode <jayesh.kharode@technoforte.co.in>
@coderabbitai

coderabbitai Bot commented Oct 28, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI; Enforced overrides: Organization
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 90b4ef71-7839-4213-8069-6d870eb908b1
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants