MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / get_secrets

Function get_secrets

src/opencdeserver/api/app/security/secrets.py:4–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2
3
4def get_secrets():
5 secrets = dict()
6 for var in glob("/run/secrets/*"):
7 k = var.split("/")[-1]
8 v = open(var).read().rstrip("\n")
9 secrets[k] = v
10 return secrets

Callers 4

secure.pyFile · 0.90
neo4j.pyFile · 0.90
foundation.pyFile · 0.90
foundation.pyFile · 0.85

Calls 3

splitMethod · 0.80
openFunction · 0.50
readMethod · 0.45

Tested by

no test coverage detected