Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F57011876
Vault.tcl
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
604 B
Referenced Files
None
Subscribers
None
Vault.tcl
View Options
package
require
vault
proc
vault_login
{}
{
global
vault
::
vault
::
init
$vault
(
host
)
::
vault
::
appRoleLogin
$vault
(
roleID
)
$vault
(
secretID
)
}
proc
vault_get
{
property
{
key
{}}}
{
if
{[catch
{set
credential
[
::
vault
::
readKV
apps
/
viperserv
/
$property
$key
]}
err
]}
{
if
{[
string
match
"*403 Forbidden*"
$err
]}
{
# Token expired?
vault_login
return
[
::
vault
::
readKV
apps
/
viperserv
/
$property
$key
]
}
# Errors like 503 if unsealed we can't recover easily, so propagate
error
$err
}
return
$credential
}
vault_login
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 14, 19:43 (3 d, 19 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4243376
Default Alt Text
Vault.tcl (604 B)
Attached To
Mode
rVIPER ViperServ scripts
Attached
Detach File
Event Timeline
Log In to Comment