Unpacking Software Livestream

Join our monthly Unpacking Software livestream to hear about the latest news, chat and opinion on packaging, software deployment and lifecycle management!

Learn More

Chocolatey Product Spotlight

Join the Chocolatey Team on our regular monthly stream where we put a spotlight on the most recent Chocolatey product releases. You'll have a chance to have your questions answered in a live Ask Me Anything format.

Learn More

Chocolatey Coding Livestream

Join us for the Chocolatey Coding Livestream, where members of our team dive into the heart of open source development by coding live on various Chocolatey projects. Tune in to witness real-time coding, ask questions, and gain insights into the world of package management. Don't miss this opportunity to engage with our team and contribute to the future of Chocolatey!

Learn More

Calling All Chocolatiers! Whipping Up Windows Automation with Chocolatey Central Management

Webinar from
Wednesday, 17 January 2024

We are delighted to announce the release of Chocolatey Central Management v0.12.0, featuring seamless Deployment Plan creation, time-saving duplications, insightful Group Details, an upgraded Dashboard, bug fixes, user interface polishing, and refined documentation. As an added bonus we'll have members of our Solutions Engineering team on-hand to dive into some interesting ways you can leverage the new features available!

Watch On-Demand
Chocolatey Community Coffee Break

Join the Chocolatey Team as we discuss all things Community, what we do, how you can get involved and answer your Chocolatey questions.

Watch The Replays
Chocolatey and Intune Overview

Webinar Replay from
Wednesday, 30 March 2022

At Chocolatey Software we strive for simple, and teaching others. Let us teach you just how simple it could be to keep your 3rd party applications updated across your devices, all with Intune!

Watch On-Demand
Chocolatey For Business. In Azure. In One Click.

Livestream from
Thursday, 9 June 2022

Join James and Josh to show you how you can get the Chocolatey For Business recommended infrastructure and workflow, created, in Azure, in around 20 minutes.

Watch On-Demand
The Future of Chocolatey CLI

Livestream from
Thursday, 04 August 2022

Join Paul and Gary to hear more about the plans for the Chocolatey CLI in the not so distant future. We'll talk about some cool new features, long term asks from Customers and Community and how you can get involved!

Watch On-Demand
Hacktoberfest Tuesdays 2022

Livestreams from
October 2022

For Hacktoberfest, Chocolatey ran a livestream every Tuesday! Re-watch Cory, James, Gary, and Rain as they share knowledge on how to contribute to open-source projects such as Chocolatey CLI.

Watch On-Demand

Downloads:

224,450

Downloads of v 1.0.3:

693

Last Update:

01 Mar 2019

Package Maintainer(s):

Software Author(s):

  • Mitchell Hashimoto
  • HashiCorp

Tags:

vault hashicorp

Vault

This is not the latest version of Vault available.

  • 1
  • 2
  • 3

1.0.3 | Updated: 01 Mar 2019

Downloads:

224,450

Downloads of v 1.0.3:

693

Maintainer(s):

Software Author(s):

  • Mitchell Hashimoto
  • HashiCorp

Vault 1.0.3

This is not the latest version of Vault available.

  • 1
  • 2
  • 3

Some Checks Have Failed or Are Not Yet Complete

Not All Tests Have Passed


Validation Testing Passed


Verification Testing Passed

Details

Scan Testing Resulted in Flagged:

This package was submitted (and approved) prior to automated virus scanning integration into the package moderation processs.

We recommend clicking the "Details" link to make your own decision on installing this package.

Details
Learn More

Deployment Method: Individual Install, Upgrade, & Uninstall

To install Vault, run the following command from the command line or from PowerShell:

>

To upgrade Vault, run the following command from the command line or from PowerShell:

>

To uninstall Vault, run the following command from the command line or from PowerShell:

>

Deployment Method:

NOTE

This applies to both open source and commercial editions of Chocolatey.

1. Enter Your Internal Repository Url

(this should look similar to https://community.chocolatey.org/api/v2/)


2. Setup Your Environment

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

2. Get the package into your environment

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://community.chocolatey.org/api/v2/. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Copy Your Script

choco upgrade vault -y --source="'INTERNAL REPO URL'" --version="'1.0.3'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade vault -y --source="'INTERNAL REPO URL'" --version="'1.0.3'" 
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Install vault
  win_chocolatey:
    name: vault
    version: '1.0.3'
    source: INTERNAL REPO URL
    state: present

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.


chocolatey_package 'vault' do
  action    :install
  source   'INTERNAL REPO URL'
  version  '1.0.3'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


cChocoPackageInstaller vault
{
    Name     = "vault"
    Version  = "1.0.3"
    Source   = "INTERNAL REPO URL"
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'vault':
  ensure   => '1.0.3',
  provider => 'chocolatey',
  source   => 'INTERNAL REPO URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


4. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

NOTE

Private CDN cached downloads available for licensed customers. Never experience 404 breakages again! Learn more...

Package Approved

This package was approved as a trusted package on 01 Mar 2019.

Description

Vault is a tool for securely accessing secrets. A secret is anything that you want to tightly control access to, such as API keys, passwords, certificates, and more. Vault provides a unified interface to any secret, while providing tight access control and recording a detailed audit log.

A modern system requires access to a multitude of secrets: database credentials, API keys for external services, credentials for service-oriented architecture communication, etc. Understanding who is accessing what secrets is already very difficult and platform-specific. Adding on key rolling, secure storage, and detailed audit logs is almost impossible without a custom solution. This is where Vault steps in.

The key features of Vault are:

  • Secure Secret Storage: Arbitrary key/value secrets can be stored in Vault. Vault encrypts these secrets prior to writing them to persistent storage, so gaining access to the raw storage isn't enough to access your secrets. Vault can write to disk, Consul, and more.
  • Dynamic Secrets: Vault can generate secrets on-demand for some systems, such as AWS or SQL databases. For example, when an application needs to access an S3 bucket, it asks Vault for credentials, and Vault will generate an AWS keypair with valid permissions on demand. After creating these dynamic secrets, Vault will also automatically revoke them after the lease is up.
  • Data Encryption: Vault can encrypt and decrypt data without storing it. This allows security teams to define encryption parameters and developers to store encrypted data in a location such as SQL without having to design their own encryption methods.
  • Leasing and Renewal: All secrets in Vault have a lease associated with it. At the end of the lease, Vault will automatically revoke that secret. Clients are able to renew leases via built-in renew APIs.
  • Revocation: Vault has built-in support for secret revocation. Vault can revoke not only single secrets, but a tree of secrets, for example all secrets read by a specific user, or all secrets of a particular type. Revocation assists in key rolling as well as locking down systems in the case of an intrusion.

For more information, see the introduction section of the Vault website.


tools\chocolateybeforemodify.ps1
# This runs in 0.9.10+ before upgrade and uninstall.
# Use this file to do things like stop services prior to upgrade or uninstall.
# NOTE: It is an anti-pattern to call chocolateyUninstall.ps1 from here. If you
#  need to uninstall an MSI prior to upgrade, put the functionality in this
#  file without calling the uninstall script. Make it idempotent in the
#  uninstall script so that it doesn't fail when it is already uninstalled.
# NOTE: For upgrades - like the uninstall script, this script always runs from 
#  the currently installed version, not from the new upgraded package version.

tools\chocolateyInstall.ps1
$checksum = 'a906a5263acb8ef1ad7726cc1ae5105d468e0c0ba7308664a13c6f7d01627652'
$checksum64 = '1ab014315e40374e58fd3474a37d5989d65936419e8d6311f4d530913f2378f5'
$version = '1.0.3'
$url = "https://releases.hashicorp.com/vault/$($version)/vault_$($version)_windows_386.zip"
$url64bit = "https://releases.hashicorp.com/vault/$($version)/vault_$($version)_windows_amd64.zip"

$unzipLocation = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"

Install-ChocolateyZipPackage -PackageName "vault" -Url "$url" -UnzipLocation "$unzipLocation" -Url64 "$url64bit" -ChecksumType 'sha256' -Checksum "$checksum" -Checksum64 "$checksum64"
tools\chocolateyuninstall.ps1
# IMPORTANT: Before releasing this package, copy/paste the next 2 lines into PowerShell to remove all comments from this file:
#   $f='c:\path\to\thisFile.ps1'
#   gc $f | ? {$_ -notmatch "^\s*#"} | % {$_ -replace '(^.*?)\s*?[^``]#.*','$1'} | Out-File $f+".~" -en utf8; mv -fo $f+".~" $f

## NOTE: In 80-90% of the cases (95% with licensed versions due to Package Synchronizer and other enhancements),
## AutoUninstaller should be able to detect and handle registry uninstalls without a chocolateyUninstall.ps1.
## See https://chocolatey.org/docs/commands-uninstall
## and https://chocolatey.org/docs/helpers-uninstall-chocolatey-package

## If this is an MSI, ensure 'softwareName' is appropriate, then clean up comments and you are done.
## If this is an exe, change fileType, silentArgs, and validExitCodes

$ErrorActionPreference = 'Stop'; # stop on all errors
$packageArgs = @{
  packageName   = $env:ChocolateyPackageName
  softwareName  = 'vault*'  #part or all of the Display Name as you see it in Programs and Features. It should be enough to be unique
  fileType      = 'EXE_MSI_OR_MSU' #only one of these: MSI or EXE (ignore MSU for now)
  # MSI
  silentArgs    = "/qn /norestart"
  validExitCodes= @(0, 3010, 1605, 1614, 1641) # https://msdn.microsoft.com/en-us/library/aa376931(v=vs.85).aspx
  # OTHERS
  # Uncomment matching EXE type (sorted by most to least common)
  #silentArgs   = '/S'           # NSIS
  #silentArgs   = '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' # Inno Setup
  #silentArgs   = '/s'           # InstallShield
  #silentArgs   = '/s /v"/qn"'   # InstallShield with MSI
  #silentArgs   = '/s'           # Wise InstallMaster
  #silentArgs   = '-s'           # Squirrel
  #silentArgs   = '-q'           # Install4j
  #silentArgs   = '-s -u'        # Ghost
  # Note that some installers, in addition to the silentArgs above, may also need assistance of AHK to achieve silence.
  #silentArgs   = ''             # none; make silent with input macro script like AutoHotKey (AHK)
                                 #       https://chocolatey.org/packages/autohotkey.portable
  #validExitCodes= @(0) #please insert other valid exit codes here
}

$uninstalled = $false
# Get-UninstallRegistryKey is new to 0.9.10, if supporting 0.9.9.x and below,
# take a dependency on "chocolatey-core.extension" in your nuspec file.
# This is only a fuzzy search if $softwareName includes '*'. Otherwise it is 
# exact. In the case of versions in key names, we recommend removing the version
# and using '*'.
[array]$key = Get-UninstallRegistryKey -SoftwareName $packageArgs['softwareName']

if ($key.Count -eq 1) {
  $key | % { 
    $packageArgs['file'] = "$($_.UninstallString)"
    if ($packageArgs['fileType'] -eq 'MSI') {
      # The Product Code GUID is all that should be passed for MSI, and very 
      # FIRST, because it comes directly after /x, which is already set in the 
      # Uninstall-ChocolateyPackage msiargs (facepalm).
      $packageArgs['silentArgs'] = "$($_.PSChildName) $($packageArgs['silentArgs'])"
      
      # Don't pass anything for file, it is ignored for msi (facepalm number 2) 
      # Alternatively if you need to pass a path to an msi, determine that and 
      # use it instead of the above in silentArgs, still very first
      $packageArgs['file'] = ''
    }

    Uninstall-ChocolateyPackage @packageArgs
  }
} elseif ($key.Count -eq 0) {
  Write-Warning "$packageName has already been uninstalled by other means."
} elseif ($key.Count -gt 1) {
  Write-Warning "$($key.Count) matches found!"
  Write-Warning "To prevent accidental data loss, no programs will be uninstalled."
  Write-Warning "Please alert package maintainer the following keys were matched:"
  $key | % {Write-Warning "- $($_.DisplayName)"}
}

## OTHER POWERSHELL FUNCTIONS
## https://chocolatey.org/docs/helpers-reference
#Uninstall-ChocolateyZipPackage $packageName # Only necessary if you did not unpack to package directory - see https://chocolatey.org/docs/helpers-uninstall-chocolatey-zip-package
#Uninstall-ChocolateyEnvironmentVariable # 0.9.10+ - https://chocolatey.org/docs/helpers-uninstall-chocolatey-environment-variable 
#Uninstall-BinFile # Only needed if you used Install-BinFile - see https://chocolatey.org/docs/helpers-uninstall-bin-file
## Remove any shortcuts you added in the install script.

tools\LICENSE.txt

Note: Include this file if including binaries you have the right to distribute. 
Otherwise delete. this file.

===DELETE ABOVE THIS LINE AND THIS LINE===

From: <insert applicable license url here>

LICENSE

<Insert License Here>
tools\VERIFICATION.txt

Note: Include this file if including binaries you have the right to distribute. 
Otherwise delete. this file. If you are the software author, you can change this
mention you are the author of the software.

===DELETE ABOVE THIS LINE AND THIS LINE===

VERIFICATION
Verification is intended to assist the Chocolatey moderators and community
in verifying that this package's contents are trustworthy.
 
<Include details of how to verify checksum contents>
<If software vendor, explain that here - checksum verification instructions are optional>

Log in or click on link to see number of positives.

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Add to Builder Version Downloads Last Updated Status
Vault 1.16.0 1373 Wednesday, March 27, 2024 Approved
Vault 1.15.6 4430 Friday, March 1, 2024 Approved
Vault 1.15.5 8010 Wednesday, January 31, 2024 Approved
Vault 1.15.4 21041 Wednesday, December 6, 2023 Approved
Vault 1.15.3 909 Friday, December 1, 2023 Approved
Vault 1.15.2 6037 Thursday, November 9, 2023 Approved
Vault 1.15.1 2966 Thursday, October 26, 2023 Approved
Vault 1.15.0 5332 Wednesday, September 27, 2023 Approved
Vault 1.14.3 2091 Thursday, September 14, 2023 Approved
Vault 1.14.2 1971 Wednesday, August 30, 2023 Approved
Vault 1.14.1 4140 Wednesday, July 26, 2023 Approved
Vault 1.14.0 4671 Wednesday, June 21, 2023 Approved
Vault 1.13.3 1589 Friday, June 9, 2023 Approved
Vault 1.13.2 12595 Thursday, April 27, 2023 Approved
Vault 1.13.1 4229 Thursday, March 30, 2023 Approved
Vault 1.13.0 1532 Tuesday, March 7, 2023 Approved
Vault 1.12.3 2127 Thursday, February 23, 2023 Approved
Vault 1.12.2 5944 Saturday, December 17, 2022 Approved
Vault 1.11.1 23457 Wednesday, July 27, 2022 Approved
Vault 1.11.0 2536 Tuesday, June 21, 2022 Approved
Vault 1.10.4 495 Friday, June 17, 2022 Approved
Vault 1.10.3 3313 Friday, May 13, 2022 Approved
Vault 1.10.2 50 Friday, May 13, 2022 Approved
Vault 1.10.1 1524 Monday, April 25, 2022 Approved
Vault 1.10.0 2315 Friday, March 25, 2022 Approved
Vault 1.9.4 1404 Wednesday, March 9, 2022 Approved
Vault 1.9.3 2327 Monday, January 31, 2022 Approved
Vault 1.9.2 1941 Wednesday, December 22, 2021 Approved
Vault 1.9.1 1088 Tuesday, December 14, 2021 Approved
Vault 1.9.0 1589 Tuesday, November 23, 2021 Approved
Vault 1.8.5 84 Tuesday, November 23, 2021 Approved
Vault 1.8.4 3100 Friday, October 8, 2021 Approved
Vault 1.8.3 674 Friday, October 1, 2021 Approved
Vault 1.8.2 672 Thursday, September 30, 2021 Approved
Vault 1.8.1 157 Thursday, September 30, 2021 Approved
Vault 1.8.0 3316 Thursday, July 29, 2021 Approved
Vault 1.7.3 2659 Thursday, June 17, 2021 Approved
Vault 1.7.2 1952 Friday, May 21, 2021 Approved
Vault 1.7.1 1544 Monday, April 26, 2021 Approved
Vault 1.7.0 1578 Tuesday, April 6, 2021 Approved
Vault 1.6.3 447 Thursday, March 25, 2021 Approved
Vault 1.6.2 4003 Monday, February 1, 2021 Approved
Vault 1.6.1 718 Thursday, January 21, 2021 Approved
Vault 1.5.5 5426 Friday, October 23, 2020 Approved
Vault 1.5.4 21862 Thursday, October 22, 2020 Approved
Vault 1.5.3 590 Thursday, October 22, 2020 Approved
Vault 1.5.2 2318 Wednesday, August 26, 2020 Approved
Vault 1.5.0 1667 Wednesday, July 22, 2020 Approved
Vault 1.4.3 892 Friday, July 3, 2020 Approved
Vault 1.4.1 1747 Monday, May 4, 2020 Approved
Vault 1.4.0 1388 Thursday, April 9, 2020 Approved
Vault 1.3.4 224 Wednesday, April 8, 2020 Approved
Vault 1.3.3 920 Monday, March 9, 2020 Approved
Vault 1.3.2 1484 Friday, January 24, 2020 Approved
Vault 1.3.1 1642 Friday, December 20, 2019 Approved
Vault 1.3.0 503 Wednesday, December 11, 2019 Approved
Vault 1.2.4 1027 Tuesday, November 12, 2019 Approved
Vault 1.2.3 3420 Monday, September 16, 2019 Approved
Vault 1.2.2 2359 Friday, August 16, 2019 Approved
Vault 1.2.1 174 Thursday, August 8, 2019 Approved
Vault 1.2.0 954 Wednesday, July 31, 2019 Approved
Vault 1.1.1 5069 Tuesday, April 16, 2019 Approved
Vault 1.1.0 1023 Tuesday, March 19, 2019 Approved
Vault 1.0.3 693 Friday, March 1, 2019 Approved
Vault 0.10.0 3124 Monday, April 16, 2018 Approved
Vault 0.10.0-rc1 307 Saturday, April 7, 2018 Approved
Vault 0.9.6 489 Saturday, April 7, 2018 Approved
Vault 0.9.5 273 Saturday, April 7, 2018 Approved
Vault 0.9.4 353 Saturday, April 7, 2018 Approved
Vault 0.9.3 297 Saturday, April 7, 2018 Approved
Vault 0.9.2 292 Saturday, April 7, 2018 Approved
Vault 0.9.1 1001 Saturday, January 13, 2018 Approved
Vault 0.9.0 363 Saturday, January 13, 2018 Approved
Vault 0.8.3 952 Wednesday, September 20, 2017 Approved
Vault 0.8.2 371 Wednesday, September 20, 2017 Approved
Vault 0.8.1 443 Thursday, August 24, 2017 Approved
Vault 0.8.0 440 Thursday, August 24, 2017 Approved
Vault 0.7.3 570 Thursday, June 8, 2017 Approved
Vault 0.7.2 416 Wednesday, June 7, 2017 Approved
Vault 0.7.1 388 Wednesday, June 7, 2017 Approved
Vault 0.7.0 407 Wednesday, June 7, 2017 Approved
Vault 0.6.5 921 Wednesday, February 8, 2017 Approved
Vault 0.6.4 533 Thursday, December 22, 2016 Approved
Vault 0.6.3 409 Wednesday, December 14, 2016 Approved
Vault 0.6.2 484 Tuesday, October 25, 2016 Approved
Vault 0.6.1 479 Tuesday, August 30, 2016 Approved

1.0.3 (February 12th, 2019)

CHANGES:

  • New AWS authentication plugin mounts will default to using the generated
    role ID as the Identity alias name. This applies to both EC2 and IAM auth.
    Existing mounts will not be affected.
  • The default policy now allows a token to look up its associated identity
    entity either by name or by id [GH-6105]
  • The Vault UI's navigation and onboarding wizard now only displays items that
    are permitted in a users' policy [GH-5980, GH-6094]

FEATURES:

  • cURL Command Output: CLI commands can now use the -output-curl-string
    flag to print out an equivalent cURL command.
  • Response Headers From Plugins: Plugins can now send back headers that
    will be included in the response to a client. The set of allowed headers can
    be managed by the operator.

IMPROVEMENTS:

  • auth/aws: AWS EC2 authentication can optionally create entity aliases by
    role ID [GH-6133]
  • auth/jwt: The supported set of signing algorithms is now configurable [JWT
    plugin GH-16]
  • core: When starting from an uninitialized state, HA nodes will now attempt
    to auto-unseal using a configured auto-unseal mechanism after the active
    node initializes Vault [GH-6039]
  • secret/database: Add socket keepalive option for Cassandra [GH-6201]
  • secret/ssh: Add signed key constraints, allowing enforcement of key types
    and minimum key sizes [GH-6030]
  • secret/transit: ECDSA signatures can now be marshaled in JWS-compatible
    fashion [GH-6077]
  • storage/etcd: Support SRV service names [GH-6087]
  • storage/aws: Support specifying a KMS key ID for server-side encryption
    [GH-5996]

BUG FIXES:

  • core: Fix a rare case where a standby whose connection is entirely torn down
    to the active node, then reconnects to the same active node, may not
    successfully resume operation [GH-6167]
  • cors: Don't duplicate headers when they're written [GH-6207]
  • identity: Persist merged entities only on the primary [GH-6075]
  • replication: Fix a potential race when a token is created and then used with
    a performance standby very quickly, before an associated entity has been
    replicated. If the entity is not found in this scenario, the request will
    forward to the active node.
  • replication: Fix a "failed to register lease" error when using performance
    standbys
  • storage/postgresql: The Get method will now return an Entry object with
    the Key member correctly populated with the full path that was requested
    instead of just the last path element [GH-6044]

Previous Releases

For more information on previous releases, check out the changelog on GitHub.


This package has no dependencies.

Discussion for the Vault Package

Ground Rules:

  • This discussion is only about Vault and the Vault package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or Vault, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus