Skip to content

Add "change database password" parameter - JIRA >10.3#429

Merged
SimonHoenscheid merged 14 commits intovoxpupuli:masterfrom
diLLec:master
Feb 24, 2025
Merged

Add "change database password" parameter - JIRA >10.3#429
SimonHoenscheid merged 14 commits intovoxpupuli:masterfrom
diLLec:master

Conversation

@diLLec
Copy link
Copy Markdown
Contributor

@diLLec diLLec commented Jan 27, 2025

Pull Request (PR) description

From JIRA 10.3 on the password in the dbconfig.xml gets replaced with {ATL_SECURED} after JIRA has read-in the password and encrypted it into it's local password store.

This Pull Request (PR) fixes the following issues

Add the change_dbpassword parameter. Unless it is set to true the password will not be written into dbconfig.xml

@ShadNex
Copy link
Copy Markdown

ShadNex commented Feb 19, 2025

I have tested your PR in our environment and it fixed the issue for us as well. Can we get this merged?

Comment thread templates/dbconfig.xml.epp
@kenyon kenyon changed the title Add change password parameter - JIRA >10.3 Add "change database password" parameter - JIRA >10.3 Feb 19, 2025
Comment thread templates/dbconfig.xml.epp
Copy link
Copy Markdown
Member

@kenyon kenyon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you take a look at the test failures?

@kenyon kenyon removed the tests-fail label Feb 21, 2025
Copy link
Copy Markdown
Member

@kenyon kenyon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we consider this a breaking change, since a user now has to set $change_dbpassword to true to keep the same behavior as before?

@diLLec
Copy link
Copy Markdown
Contributor Author

diLLec commented Feb 24, 2025

Do we consider this a breaking change, since a user now has to set $change_dbpassword to true to keep the same behavior as before?

We either do that, or we add a version condition to $change_dbpassword = $jira::change_dbpassword in the config.pp like this

  if versioncmp($jira::version, '10.3.0') > 0 {
    $change_dbpassword = $jira::change_dbpassword
  }

Which way do you like more?

@diLLec
Copy link
Copy Markdown
Contributor Author

diLLec commented Feb 24, 2025

Tests are OK now. Please let me know about the breaking change issue

Copy link
Copy Markdown
Member

@SimonHoenscheid SimonHoenscheid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@SimonHoenscheid SimonHoenscheid merged commit 147efd3 into voxpupuli:master Feb 24, 2025
@alexjfisher
Copy link
Copy Markdown
Member

Is there anyway to read the password (or a hash of it) from the 'local password store'?

@SimonHoenscheid SimonHoenscheid added the enhancement New feature or request label Feb 24, 2025
@h-haaks
Copy link
Copy Markdown
Contributor

h-haaks commented Feb 25, 2025

Hmm, there is no added tests on jira versions less then 10.3 and the default of false. All tests have been changed to have 'change_dbpassword = true'

I'm afraid this change breaks existing setups with older versions of jira ...
This is because the template is changed to always insert '{ATL_SECURED}' when change_dbpassword is false.
I have not tested this yet, and it might be stopped by password policy, but if not the password will actually be changed to {ATL_SECURED}

@diLLec
Copy link
Copy Markdown
Contributor Author

diLLec commented Feb 25, 2025

Hmm, there is no added tests on jira versions less then 10.3 and the default of false. All tests have been changed to have 'change_dbpassword = true'

I'm afraid this change breaks existing setups with older versions of jira ... This is because the template is changed to always insert '{ATL_SECURED}' when change_dbpassword is false. I have not tested this yet, and it might be stopped by password policy, but if not the password will actually be changed to {ATL_SECURED}

Thats totally true - I've asked if we should add a versioncmp here #429 (comment) but did not get any answers.

@kenyon
Copy link
Copy Markdown
Member

kenyon commented Feb 25, 2025

Hmm, there is no added tests on jira versions less then 10.3 and the default of false. All tests have been changed to have 'change_dbpassword = true'
I'm afraid this change breaks existing setups with older versions of jira ... This is because the template is changed to always insert '{ATL_SECURED}' when change_dbpassword is false. I have not tested this yet, and it might be stopped by password policy, but if not the password will actually be changed to {ATL_SECURED}

Thats totally true - I've asked if we should add a versioncmp here #429 (comment) but did not get any answers.

I think the versioncmp would have been a good idea, but this was merged and released a bit hastily. We could still add the versioncmp and make another release.

rwaffen added a commit that referenced this pull request Mar 27, 2025
Fix breaking change regression of PR #429
cegeka-jenkins pushed a commit to cegeka/puppet-jira that referenced this pull request Sep 1, 2025
cegeka-jenkins pushed a commit to cegeka/puppet-jira that referenced this pull request Sep 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants