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

jobs-files-audit-updates: Update setting for TAPIS_AUDITING_ENABLED #430

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions inventory_example/host_vars/all_services_primary-kube.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ global_storage_class: rbd-new
# base URL for the admin tenant in our site
global_primary_site_admin_tenant_base_url: https://admin.develop.tapis.io

# Flag for audit log recording
global_auditing_enabled: 'false'

# location of the nginx cert files
proxy_nginx_cert_file: $HOME/ssl/wild.develop.tapis.io.pem
proxy_nginx_cert_key: $HOME/ssl/wild.develop.tapis.io.key
Expand Down
3 changes: 3 additions & 0 deletions inventory_example/host_vars/min_primary-kube.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ global_storage_class: rbd-new
# base URL for the admin tenant in our site
global_primary_site_admin_tenant_base_url: https://admin.test.tapis.io

# Flag for audit log recording
global_auditing_enabled: 'false'

# location of the nginx cert files
proxy_nginx_cert_file: $HOME/ssl/wild.tapis.io.pem
proxy_nginx_cert_key: $HOME/ssl/wild.tapis.io.key
Expand Down
3 changes: 3 additions & 0 deletions inventory_example/host_vars/tapisquickstart-docker1
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ tapisdatadir: '$HOME/tmp/{{ inventory_hostname }}-data'
global_tapis_domain: quick.example.com
global_site_id: tapisquickstart-docker1

# Turn auditing off by default
global_auditing_enabled: 'false'

# global
site_type: 1

Expand Down
2 changes: 0 additions & 2 deletions playbooks/roles/files/defaults/main/vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,3 @@ files_postgres_pvc: files-pgdata
files_postgres16_pvc: files-pg-16-data
files_node_name: true
files_use_topology_spread_constraints: true
files_audit_enabled: false

4 changes: 3 additions & 1 deletion playbooks/roles/files/templates/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ services:
- RABBITMQ_HOSTNAME=files-rabbitmq
- RABBITMQ_USERNAME=tapisfiles
- RABBITMQ_VHOST=tapisfiles
- TAPIS_AUDITING_ENABLED={{ global_auditing_enabled }}
depends_on:
files-api:
condition: service_started
Expand Down Expand Up @@ -132,8 +133,9 @@ services:
- RABBITMQ_HOSTNAME=files-rabbitmq
- RABBITMQ_USERNAME=tapisfiles
- RABBITMQ_VHOST=tapisfiles
- TAPIS_AUDITING_ENABLED={{ global_auditing_enabled }}
depends_on:
files-postgres:
condition: service_healthy
files-rabbitmq:
condition: service_healthy
condition: service_healthy
4 changes: 2 additions & 2 deletions playbooks/roles/files/templates/kube/api/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ spec:
configMapKeyRef:
name: files-config
key: globus_client_id
- name: TAPIS_AUDIT_ENABLED
value: "{{ files_audit_enabled }}"
- name: TAPIS_AUDITING_ENABLED
value: "{{ global_auditing_enabled }}"
- name: TAPIS_DB_CONNECTION_POOL_SIZE
value: "10"
- name: TAPIS_DB_CONNECTION_POOL_CORE_SIZE
Expand Down
4 changes: 2 additions & 2 deletions playbooks/roles/files/templates/kube/worker/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ spec:
name: files-config
key: globus_client_id
{% endif %}
- name: TAPIS_AUDIT_ENABLED
value: "{{ files_audit_enabled }}"
- name: TAPIS_AUDITING_ENABLED
value: "{{ global_auditing_enabled }}"
- name: CHILD_THREAD_POOL_SIZE
value: "20"
- name: PARENT_THREAD_POOL_SIZE
Expand Down
2 changes: 2 additions & 0 deletions playbooks/roles/get_defaults/defaults/main/vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ global_primary_site_admin_tenant_base_url: 'https://{{ global_service_tenant_id
global_service_url: '{{ global_primary_site_admin_tenant_base_url }}'
global_devtenant_url: 'https://{{ global_devtenant_id }}.{{ global_tapis_domain }}'

# Turn auditing off by default
global_auditing_enabled: 'false'

### relatively safe defaults below

Expand Down
1 change: 0 additions & 1 deletion playbooks/roles/jobs/defaults/main/vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ jobs_rabbitmq_pvc: jobs-rabbitmq-vol01
jobs_node_selector: null
jobs_node_name: true
jobs_port: 8082
jobs_auditing_enabled: false
4 changes: 2 additions & 2 deletions playbooks/roles/jobs/templates/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ services:
- TAPIS_QUEUE_USER=jobs
- TAPIS_REQUEST_LOGGING_FILTER_PREFIXES=/v3/jobs
- TAPIS_REQUEST_LOGGING_INGORE_SUFFIXES=/healthcheck;/ready;/hello
- TAPIS_AUDITING_ENABLED={{ jobs_auditing_enabled }}
- TAPIS_AUDITING_ENABLED={{ global_auditing_enabled }}
- CATALINA_OPTS=-Xms1g -Xmx3g --add-opens java.base/java.time=ALL-UNNAMED
env_file:
- {{ tapisdatadir }}/jobs/env
Expand Down Expand Up @@ -215,7 +215,7 @@ services:
- TAPIS_QUEUE_ADMIN_USER=tapis
- TAPIS_QUEUE_USER=jobs
- TAPIS_REQUEST_LOGGING_FILTER_PREFIXES=/v3/jobs
- TAPIS_AUDITING_ENABLED={{ jobs_auditing_enabled }}
- TAPIS_AUDITING_ENABLED={{ global_auditing_enabled }}
- JAVA_OPTS=-Xms1g -Xmx1g
- MAIN_CLASS=edu.utexas.tacc.tapis.jobs.worker.JobWorker
- JOBS_PARMS=-n wkr-DefaultQueue -q tapis.jobq.submit.DefaultQueue -w 100
Expand Down
2 changes: 1 addition & 1 deletion playbooks/roles/jobs/templates/docker/jobs-config.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ JOBS_SERVICE_SITE_URL={{ jobs_service_url }}
JOBS_SERVICE_TENANT_ID={{ jobs_service_tenant_id }}
jobs_site_id={{ jobs_service_site_id }}
JOBS_SERVICE_NAME={{ jobs_service_name }}
TAPIS_AUDITING_ENABLED={{ jobs_auditing_enabled }}
TAPIS_AUDITING_ENABLED={{ global_auditing_enabled }}
2 changes: 1 addition & 1 deletion playbooks/roles/jobs/templates/kube/api/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ spec:
- name: TAPIS_REQUEST_LOGGING_INGORE_SUFFIXES
value: "/healthcheck;/ready;/hello"
- name: TAPIS_AUDITING_ENABLED
value: "{{ jobs_auditing_enabled }}"
value: "{{ global_auditing_enabled }}"
# - name: TAPIS_LOG_DIRECTORY
# value: "/opt/tomcat/logs"
- name: CATALINA_OPTS
Expand Down
2 changes: 1 addition & 1 deletion playbooks/roles/jobs/templates/kube/jobs-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ data:
"service_tenant_id": "{{jobs_service_tenant_id}}"
"site_id": "{{jobs_service_site_id}}"
"service_name": "{{jobs_service_name}}"
"tapis_auditing_enabled": "{{jobs_auditing_enabled}}"
"tapis_auditing_enabled": "{{global_auditing_enabled}}"
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ spec:
- name: TAPIS_REQUEST_LOGGING_FILTER_PREFIXES
value: "/v3/jobs"
- name: TAPIS_AUDITING_ENABLED
value: "{{ jobs_auditing_enabled }}"
value: "{{ global_auditing_enabled }}"
- name: JAVA_OPTS
value: "-Xms1g -Xmx4g"
- name: MAIN_CLASS
Expand Down