tis-vault-portable icon

vault

Paquet d’installation silencieuse pour vault

1.20.3-1

  • package: tis-vault-portable
  • name: vault
  • version: 1.20.3-1
  • categories: Security
  • maintainer: WAPT Team,Tranquil IT,Amel FRADJ
  • licence: opensource_free,wapt_public
  • target_os: windows
  • architecture: x64
  • signature_date:
  • size: 177.47 Mo
  • homepage : https://github.com/anchore/grype

package           : tis-vault-portable
version           : 1.20.3-1
architecture      : x64
section           : base
priority          : optional
name              : vault
categories        : Security
maintainer        : WAPT Team,Tranquil IT,Amel FRADJ
description       : Vault is a tool for secure access to secrets
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 2.3
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : Vault est un outil permettant d'accéder en toute sécurité aux secrets
description_pl    : Vault to narzędzie zapewniające bezpieczny dostęp do sekretów
description_de    : Vault ist ein Werkzeug für den sicheren Zugriff auf Geheimnisse
description_es    : Vault es una herramienta que te da acceso seguro a los secretos
description_pt    : O Vault é uma ferramenta que lhe dá acesso seguro a segredos
description_it    : Vault è uno strumento che consente di accedere in modo sicuro ai segreti
description_nl    : Vault is een tool waarmee je veilig toegang krijgt tot geheimen
description_ru    : Vault - это инструмент для обеспечения безопасного доступа к секретам
audit_schedule    : 
editor            : 
keywords          : 
licence           : opensource_free,wapt_public
homepage          : https://github.com/anchore/grype
package_uuid      : 7b157e64-2d12-4168-91c2-56da012bf3b4
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 6c2331236d699d2abf19b5000dc743dba323941d5a40f572f9f18ba66a623f21
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-09-03T00:02:32.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature         : xMx9ZsIFD0dsogWBZVOxKIMgmImMl+eqmdw+AQ3RExilDQTDcW6SrUw98MLfFyo5gumf4+A+q2LuLq2JOAJQSfStsubqWdxKP752m2wb9EJbsLUQBPwq3t0/ak/h/IiV7a2BYAD4GSaaiBpqte/1mfV+sZDqz2kmI+yfoyWulcFleF4Xj+Kuf+woxD87fVG0L4qFvgEG5q1nAY+efClkEnNweAOyfAvrBGKWHCkG+TkD0w/tNhQeqhXMLezvbzLcTRN7YLiU5NyQ1bASQHQSi63ICtgDwj/Ej/oRhncBNBgNrC2MifJAWkK/E1Awi9ONidkktx+zQedAzWV6yO6GEA==

# -*- coding: utf-8 -*-
from setuphelpers import *

"""


"""


app_name = "vault "
editor_dir = makepath(programfiles, "vault")
app_dir = makepath(editor_dir, "vault")
app_path = makepath(app_dir, "vault.exe")
audit_version = False


def get_installed_version(app_path):
    return get_file_properties(app_path).get("FileVersion", "")


def install():
    # Declaring local variables
    zip_name = glob.glob(f"vault*.zip")[0]

    unzipped_dir = "vault"


    # Installing software
    killalltasks(ensure_list(control.impacted_process))
    if isdir(app_dir) and force:
        remove_tree(app_dir)
    mkdirs(app_dir)
    print("Extracting: %s to: %s" % (zip_name, unzipped_dir))
    unzip(zip_name, unzipped_dir)
    print('Copy vault to %s' % app_dir)
    copytree2(unzipped_dir, app_dir, onreplace=default_overwrite)
    
    add_to_system_path(app_path)


    

def audit():
    # Auditing software
    audit_status = "OK"
    installed_version = get_installed_version(app_path)
    if Version(installed_version) < Version(control.get_software_version()) and audit_version:
        print("%s is installed in version (%s) instead of (%s)" % (app_name, installed_version, control.get_software_version()))
        audit_status = "WARNING"
    elif isdir(app_dir) and not dir_is_empty(app_dir):
        print("%s (%s) is installed" % (app_name, installed_version))
        audit_status = "OK"
    else:
        print("%s is not installed" % app_name)
        audit_status = "ERROR"
    return audit_status


def uninstall():
    # Uninstalling software
    killalltasks(ensure_list(control.impacted_process))
    if isdir(app_dir):
        remove_tree(app_dir)
    if dir_is_empty(editor_dir):
        remove_tree(editor_dir)

   


# -*- coding: utf-8 -*-
from setuphelpers import *
from setupdevhelpers import *
import glob




def update_package():
    # Declaring local variables
    package_updated = False
    
    proxies = get_proxies_from_wapt_console()
    if not proxies:
        proxies = get_proxies()

    git_repo = "hashicorp/vault"
    url_api = "https://api.github.com/repos/%s/releases/latest" % git_repo   
    # Getting latest version information from official sources
    print("API used is: %s" % url_api)
    json_load = json.loads(wgets(url_api, proxies=proxies))

    version = json_load["tag_name"].replace("v","")
    latest_bin = f"vault_{version}_windows_amd64.zip"
    download_url = f"https://releases.hashicorp.com/vault/{version}/" +latest_bin


    # Downloading latest binaries
    print("Download URL is: %s" % download_url)
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(download_url, latest_bin, proxies=proxies)
        package_updated = True
    else:
        print("Binary is present: %s" % latest_bin)


    # Deleting outdated binaries
    for f in glob.glob('*.zip'):
        if f != latest_bin:
            remove_file(f)

    # Mettre à jour le package
    control.set_software_version(version)
    control.save_control_to_wapt()    
        

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
08bf588c723279b9628daecaa13d513dd3df8cc4586326be31beba0b512e9dc5 : WAPT/control
6c2331236d699d2abf19b5000dc743dba323941d5a40f572f9f18ba66a623f21 : WAPT/icon.png
3cfa8b803415ef547c2f546b6d2e30f20236d142d98e655093094ef690c04984 : luti.json
7eacc7efd94e09d7595edca040e03c781b7609abe7700d443ba8f1de3d6fc15c : setup.py
76634d107dae334a22a9d1179583363e4c091c09b0f0a8d9c2f07341e7b58c29 : update_package.py
b0372908327c0055d91757d693d80071a2b03b70ffb0343c80f1ad274e3841a4 : vault_1.20.3_windows_amd64.zip