Skip to content

Commit

Permalink
generate keys
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmeele committed Dec 18, 2024
1 parent fe39837 commit 2bce8de
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
13 changes: 13 additions & 0 deletions playbooks/roles/irods_server/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,19 @@
irods_server_host: "{{ workspace_fqdn }}"
when: workspace_fqdn is defined

- name: Generate zone key
ansible.builtin.command: 'openssl rand -hex 16'
register: irods_server_zone_key

- name: Generate negotiation key
ansible.builtin.command: 'openssl rand -hex 16'
register: irods_server_negotiation_key

- name: Generate control plane key
ansible.builtin.command: 'openssl rand -hex 16'
register: irods_server_control_plane_key


- name: Prepare iRODS server configuration file
when: not irods_config_data.stat.exists
ansible.builtin.template:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"irods_port": 1247,
"irods_server_control_plane_encryption_algorithm": "AES-256-CBC",
"irods_server_control_plane_encryption_num_hash_rounds": 16,
"irods_server_control_plane_key": "32_byte_server_control_plane_key",
"irods_server_control_plane_key": "irods_server_control_plane_key.stdout",
"irods_server_control_plane_port": 1248,
"irods_transfer_buffer_size_for_parallel_transfer_in_megabytes": 4,
"irods_user_name": "rods",
Expand Down Expand Up @@ -95,7 +95,7 @@
"sql": "info"
},
"match_hash_policy": "compatible",
"negotiation_key": "32_byte_server_negotiation_key__",
"negotiation_key": "{{ irods_server_negotiation_key.stdout }}",
"plugin_configuration": {
"authentication": {},
"database": {
Expand Down Expand Up @@ -147,14 +147,14 @@
"schema_version": "v4",
"server_control_plane_encryption_algorithm": "AES-256-CBC",
"server_control_plane_encryption_num_hash_rounds": 16,
"server_control_plane_key": "32_byte_server_control_plane_key",
"server_control_plane_key": "{{ irods_server_control_plane_key.stdout }}",
"server_control_plane_port": 1248,
"server_control_plane_timeout_milliseconds": 10000,
"server_port_range_end": 20199,
"server_port_range_start": 20000,
"xmsg_port": 1279,
"zone_auth_scheme": "native",
"zone_key": "TEMPORARY_ZONE_KEY",
"zone_key": "{{ irods_server_zone_key.stdout }}",
"zone_name": "{{ irods_server_zone }}",
"zone_port": 1247,
"zone_user": "rods"
Expand Down

0 comments on commit 2bce8de

Please sign in to comment.