Skip to content

Commit

Permalink
fix(nexus_oss): adjust privilege creation logic
Browse files Browse the repository at this point in the history
Updated the privilege creation logic to respect the `nexus_use_api_for_provisioning` flag. Privileges will not be created if this flag is set to true, aligning with the use of the `config_api` role for managing privileges. Updated version to 1.17.1
  • Loading branch information
brianveltman committed Jan 14, 2025
1 parent 1799de3 commit aaf04fc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
# Changelog
## [1.17.1] - 2025-01-14
### Changed
- **nexus_oss** Privileges will no longer be created when `nexus_use_api_for_provisioning` is set to `true`. Please use the `config_api` role to manage privileges. See: https://nexus.cloudkrafter.org/docs/config-api-role/privileges/

## [1.17.0] - 2025-01-14
### Added
- **config_api** Added support to create and delete custom privileges

## Changed
### Changed
- **nexus_oss** Default for privilege 'type' has been changed to `application` to be in line with how privilege defaults are handled in the **config_api** role.
- **config_api** Exclude users that are not in the default source. Nexus API can't manage users in another IAM system.
- **config_api** The anonymous and admin user are defined in `nexus_local_users` by default.

## Fixed
### Fixed
- **config_api** fixed an issue where creating blobstore return wrong status code.

## [1.16.4] - 2024-12-22
Expand Down
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace: cloudkrafter
name: nexus

# The version of the collection. Must be compatible with semantic versioning
version: 1.17.0
version: 1.17.1

# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
readme: README.md
Expand Down
3 changes: 2 additions & 1 deletion roles/nexus_oss/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@
{{ result.append(_nexus_privilege_defaults | combine(privilege)) }}
{%- endfor -%}
{{ result | to_json | from_json }}
when: not nexus_use_api_for_provisioning | default(false) | bool

- name: Create/Check blobstores
when: nexus_restore_point is undefined
Expand Down Expand Up @@ -323,7 +324,7 @@
vars:
script_name: setup_privileges_from_list
call_args: "{{ nexus_privileges }}"
when: nexus_privileges | length > 0
when: nexus_privileges | length > 0 and not nexus_use_api_for_provisioning | default(false) | bool
tags: privileges

- name: Create/check roles
Expand Down

0 comments on commit aaf04fc

Please sign in to comment.