Skip to content

fix: Don't ask "Do you want to enable disk encryption?" for configured environment#307

Merged
adskyiproger merged 1 commit into
release-v2.0.0from
ocrvs-12500
May 12, 2026
Merged

fix: Don't ask "Do you want to enable disk encryption?" for configured environment#307
adskyiproger merged 1 commit into
release-v2.0.0from
ocrvs-12500

Conversation

@adskyiproger
Copy link
Copy Markdown
Contributor

@adskyiproger adskyiproger commented May 7, 2026

Description

Related issue: opencrvs/opencrvs-core#12500

Applied fixes:

Order for the questions changed

  • From:
    • Choose a name and purpose for the environment?
    • What is the name of your Github organisation?
    • What is your Github infrastructure repository?
    • GH_TOKEN: What is your Github token?
  • To:
    • Choose a name and purpose for the environment?
    • What is the name of your Github organisation?
    • What is your Github infrastructure repository?
    • GH_TOKEN: What is your Github token?

The change allows to add all existing environments to the environment name choice list.

Don't ask question about disk encryption for existing environment

If environment was already setup we need to skip encryption question, otherwise there is a chance to break citizens data. Disk size question should be also skipped.

Testing

Questions order change

image

New environment: Storage configuration with encryption

Goal: Create new environment development and configure encryption partition (size 200g)

image

Existing environment: Storage configuration with encryption

Goal: Re-run script during environment upgrade from vX.Y.Z to vX.B.C. In more real world between v1.9.14 and v2.0.0. We need to skip Storage question to avoid end-user confusion.

image

New environment: Storage configuration without encryption

image

Existing environment: Encryption was disabled at creation time

Goal: Re-run script during environment upgrade from vX.Y.Z to vX.B.C. In more real world between v1.9.14 and v2.0.0. We need to skip Storage question to avoid end-user confusion.

image

@adskyiproger adskyiproger changed the title testing fix: Don't ask "Do you want to enable disk encryption?" for configured environment May 12, 2026
@adskyiproger adskyiproger merged commit 63ef78f into release-v2.0.0 May 12, 2026
adskyiproger added a commit that referenced this pull request May 12, 2026
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.

2 participants