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

[Backport][ipa-4-6] certprofile: reject config with multiple profileIds #1836

Closed
wants to merge 2 commits into from

Conversation

rcritten
Copy link
Contributor

@rcritten rcritten commented Apr 19, 2018

This PR was opened automatically because PR #1830 was pushed to master and backport to ipa-4-6 is required.

In certprofile-import if the config file contains two profileId
directives with different values, with the first matching the
profile ID CLI argument and the second differing, the profile gets
imported under the second ID.  This leads to:

- failure to enable the profile
- failure to add the IPA "tracking" certprofile object
- inability to delete the misnamed profile from Dogtag (via ipa CLI)

To avert this scenario, detect and reject profile configurations
where profileId is specified multiple times (whether or not the
values differ).

https://pagure.io/freeipa/issue/7503
Update the certprofile tests to cover the various scenarios
concerning the profileId property in the profile configuration.
The scenarios now explicitly tested are:

- profileId not specified (should succeed)
- mismatched profileId property (should fail)
- multiple profileId properties (should fail)
- one profileId property, matching given ID (should succeed)

https://pagure.io/freeipa/issue/7503
@rcritten rcritten added the ack Pull Request approved, can be merged label Apr 19, 2018
@rcritten
Copy link
Contributor Author

PR was ACKed automatically because this is backport of PR #1830. Wait for CI to finish before pushing. In case of questions or problems contact @frasertweedale who is author of the original PR.

@rcritten
Copy link
Contributor Author

ipa-4-6:

  • 1a6acd5 certprofile: reject config with multiple profileIds
  • 5fb3475 certprofile: add tests for config profileId scenarios

@rcritten rcritten added the pushed Pull Request has already been pushed label Apr 19, 2018
@rcritten rcritten closed this Apr 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ack Pull Request approved, can be merged pushed Pull Request has already been pushed
Projects
None yet
2 participants