Skip to content

Commit bfdac8a

Browse files
authored
Merge pull request #553 from wazuh/change/546-verify-components-have-new-name
Change URL sign expiration time and add debug messages
2 parents e886cda + c96276a commit bfdac8a

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

.github/scripts/generate_presigned_dev_urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def replace_url_by_its_signed(input_file: str) -> None:
8787
content = yaml.safe_load(file)
8888

8989
for key, value in content.items():
90-
command = f"aws s3 presign {value} --region us-west-1 --expires-in 18000" # 5 hours
90+
command = f"aws s3 presign {value} --region us-west-1 --expires-in 2700" # 45 minutes
9191
result = subprocess.run(command, shell=True, capture_output=True, text=True)
9292
output = result.stdout
9393
error_output = result.stderr

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ All notable changes to this project will be documented in this file.
1010

1111
### Changed
1212

13+
- Change URL sign expiration time and add debug messages ([#553](https://github.com/wazuh/wazuh-virtual-machines/pull/553))
1314
- Add suport to is_stage procedure and tagging with commit and latest ([#529](https://github.com/wazuh/wazuh-virtual-machines/pull/529))
1415
- Change passwords update process in AMI build ([#530](https://github.com/wazuh/wazuh-virtual-machines/pull/530))
1516
- Wazuh AMI Documentation updated with ARM support. ([#515](https://github.com/wazuh/wazuh-virtual-machines/pull/515))

provisioner/provisioner.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ def packages_provision(self, component: ComponentInfo, client: paramiko.SSHClien
186186
"""
187187
logger.debug_title("Provisioning packages")
188188
logger.debug(f"Downloading {component.name.replace('_', ' ')} package")
189+
logger.debug(f"Package URL used: {component.package_url}")
189190

190191
package_name = self.get_package_by_url(component.name, component.package_url, client)
191192

@@ -215,6 +216,7 @@ def tool_provision(
215216
client (paramiko.SSHClient): The SSH client used to connect to the remote machine.
216217
"""
217218
logger.debug(f"Provisioning {tool_filename}")
219+
logger.debug(f"Tool URL used: {tool_url}")
218220

219221
command_template = "mkdir -p {directory} && curl -s -o {path} '{tool_file_url}'"
220222

0 commit comments

Comments
 (0)