Add JWT authentication with user/password login, role-based access control, and Bearer token support while maintaining legacy API key compatibility for transition; update README with comprehensive JWT security guidelines, installation instructions for Python/SSH, development startup scripts (.env, run_dev.sh/ps1), and migrate all API examples to JWT authentication; update Ansible inventory SSH key paths from Docker container paths to local user paths

This commit is contained in:
2025-12-14 17:33:34 -05:00
parent 5a512d39b5
commit 0030fcc101
177 changed files with 22810 additions and 289 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
ansible_port: 22
ansible_user: automation
ansible_ssh_private_key_file: /app/ssh_keys/id_automation_ansible
# ansible_ssh_private_key_file: /app/ssh_keys/id_automation_ansible
ansible_ssh_private_key_file: ~/.ssh/id_automation_ansible
+2 -1
View File
@@ -1,4 +1,5 @@
ansible_port: 22
ansible_user: automation
ansible_ssh_private_key_file: /app/ssh_keys/id_automation_ansible
# ansible_ssh_private_key_file: /app/ssh_keys/id_automation_ansible
ansible_ssh_private_key_file: ~/.ssh/id_automation_ansible
ansible_python_interpreter: /usr/bin/python3
+2 -1
View File
@@ -1,4 +1,5 @@
ansible_port: 22
ansible_user: automation
ansible_ssh_private_key_file: /app/ssh_keys/id_automation_ansible
# ansible_ssh_private_key_file: /app/ssh_keys/id_automation_ansible
ansible_ssh_private_key_file: ~/.ssh/id_automation_ansible
ansible_python_interpreter: /usr/bin/python3
@@ -1,4 +1,5 @@
ansible_port: 22
ansible_user: automation
ansible_ssh_private_key_file: /app/ssh_keys/id_automation_ansible
# ansible_ssh_private_key_file: /app/ssh_keys/id_automation_ansible
ansible_ssh_private_key_file: ~/.ssh/id_automation_ansible
ansible_python_interpreter: /usr/bin/python3
+2 -1
View File
@@ -1,4 +1,5 @@
ansible_port: 22
ansible_user: automation
ansible_ssh_private_key_file: /app/ssh_keys/id_automation_ansible
# ansible_ssh_private_key_file: /app/ssh_keys/id_automation_ansible
ansible_ssh_private_key_file: ~/.ssh/id_automation_ansible
ansible_python_interpreter: /usr/bin/python3
+32 -19
View File
@@ -12,15 +12,31 @@ all:
raspi.8gb.home: null
env_lab:
hosts:
media.labb.home: null
dev.lab.home: null
media.labb.home: null
env_prod:
hosts:
hp.truenas.home: null
ali2v.truenas.home: null
jump.point.home: null
automate.prod.home: null
dev.prod.home: null
hp.truenas.home: null
jump.point.home: null
env_test:
hosts: {}
env_test2:
hosts: {}
role_docker:
hosts:
dev.lab.home: null
role_lab_servers:
hosts:
dev.lab.home: null
media.labb.home: null
role_prod_servers:
hosts:
automate.prod.home: null
dev.prod.home: null
jump.point.home: null
role_proxmox:
hosts:
ali2v.xeon.home: null
@@ -28,25 +44,22 @@ all:
hp2.i7.home: null
hp3.i5.home: null
mimi.pc.home: null
role_lab_servers:
hosts:
media.labb.home: null
dev.lab.home: null
role_truenas:
hosts:
hp.truenas.home: null
ali2v.truenas.home:
ansible_python_interpreter: /usr/bin/python3
role_prod_servers:
hosts:
jump.point.home: null
automate.prod.home: null
dev.prod.home: null
role_sbc:
hosts:
orangepi.pc.home: null
raspi.4gb.home: null
raspi.8gb.home: null
role_docker:
role_test:
hosts: {}
role_test2:
hosts: {}
role_truenas:
hosts:
dev.lab.home: null
ali2v.truenas.home:
ansible_python_interpreter: /usr/bin/python3
hp.truenas.home: null
local_test:
hosts:
localhost:
ansible_connection: local
ansible_python_interpreter: '{{ ansible_playbook_python }}'
+34 -22
View File
@@ -12,17 +12,32 @@ all:
raspi.8gb.home: null
env_lab:
hosts:
media.labb.home: null
toto:
ansible_host: toto.home
dev.lab.home: null
media.labb.home: null
env_prod:
hosts:
hp.truenas.home: null
ali2v.truenas.home: null
jump.point.home: null
automate.prod.home: null
dev.prod.home: null
hp.truenas.home: null
jump.point.home: null
env_test:
hosts: {}
env_test2:
hosts:
vivobook.local: null
role_docker:
hosts:
dev.lab.home: null
role_lab_servers:
hosts:
dev.lab.home: null
media.labb.home: null
role_prod_servers:
hosts:
automate.prod.home: null
dev.prod.home: null
jump.point.home: null
role_proxmox:
hosts:
ali2v.xeon.home: null
@@ -30,26 +45,23 @@ all:
hp2.i7.home: null
hp3.i5.home: null
mimi.pc.home: null
role_lab_servers:
hosts:
media.labb.home: null
toto: null
dev.lab.home: null
role_truenas:
hosts:
hp.truenas.home: null
ali2v.truenas.home:
ansible_python_interpreter: /usr/bin/python3
role_prod_servers:
hosts:
jump.point.home: null
automate.prod.home: null
dev.prod.home: null
role_sbc:
hosts:
orangepi.pc.home: null
raspi.4gb.home: null
raspi.8gb.home: null
role_docker:
role_test:
hosts:
dev.lab.home: null
vivobook.local: null
role_test2:
hosts: {}
local_test:
hosts:
localhost:
ansible_connection: local
ansible_python_interpreter: "{{ ansible_playbook_python }}"
role_truenas:
hosts:
ali2v.truenas.home:
ansible_python_interpreter: /usr/bin/python3
hp.truenas.home: null