Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F25244134
vault.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
769 B
Referenced Files
None
Subscribers
None
vault.py
View Options
# -------------------------------------------------------------
# Nasqueron Reports :: Credentials :: Vault
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Description: Read credentials from Vault or OpenBao
# License: BSD-2-Clause
# -------------------------------------------------------------
from
secretsmith.vault.client
import
from_config
as
client_from_config
from
secretsmith.vault.secrets
import
read_secret
from
secretsmith.vault.utils
import
split_path
def
fetch_credentials
(
vault_config
,
full_secret_path
):
vault_client
=
client_from_config
(
vault_config
)
mount_point
,
secret_path
=
split_path
(
full_secret_path
)
return
read_secret
(
vault_client
,
mount_point
,
secret_path
)
File Metadata
Details
Attached
Mime Type
text/x-python
Expires
Thu, Apr 9, 02:26 (8 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3603807
Default Alt Text
vault.py (769 B)
Attached To
Mode
rRPRT Nasqueron internal reports
Attached
Detach File
Event Timeline
Log In to Comment