feat(scanner): Set user http user agent to <name>/<version>

!11
This commit is contained in:
2024-02-24 16:03:26 +09:30
parent 18a4a01b48
commit fab10cae5d
3 changed files with 9 additions and 1 deletions

View File

@ -19,6 +19,13 @@ variables:
DOCKER_IMAGE_PUBLISH_REGISTRY: docker.io/nofusscomputing DOCKER_IMAGE_PUBLISH_REGISTRY: docker.io/nofusscomputing
DOCKER_IMAGE_PUBLISH_URL: https://hub.docker.com/r/nofusscomputing/$DOCKER_IMAGE_PUBLISH_NAME DOCKER_IMAGE_PUBLISH_URL: https://hub.docker.com/r/nofusscomputing/$DOCKER_IMAGE_PUBLISH_NAME
RELEASE_ADDITIONAL_ACTIONS_BUMP: |
sed -E "/http_agent: nfc-phpipam-scan-agent/s/\/(.+)/\/$(cz version --project)/g" -i playbooks/tasks/scan_subnet.yaml;
git add playbooks/tasks/scan_subnet.yaml;
git status;
include: include:

View File

@ -85,6 +85,7 @@
ca_path: "{{ nofusscomputing_phpipam_scan_agent.ca_path | default(omit) }}" ca_path: "{{ nofusscomputing_phpipam_scan_agent.ca_path | default(omit) }}"
headers: headers:
Authorization: "Bearer {{ nofusscomputing_phpipam_scan_agent.auth_token | default('no-token-set') }}" Authorization: "Bearer {{ nofusscomputing_phpipam_scan_agent.auth_token | default('no-token-set') }}"
http_agent: nfc-phpipam-scan-agent/0.2.0-a2
url: "{{ url: "{{
nofusscomputing_phpipam_scan_agent.http_server | default(nfc_c_http_server) nofusscomputing_phpipam_scan_agent.http_server | default(nfc_c_http_server)
}}:{{ nofusscomputing_phpipam_scan_agent.http_port | default(nfc_c_http_port) }}/" }}:{{ nofusscomputing_phpipam_scan_agent.http_port | default(nfc_c_http_port) }}/"