Class VaultConfigParser.VaultPaths
java.lang.Object
com.scivicslab.actoriac.VaultConfigParser.VaultPaths
- Enclosing class:
VaultConfigParser
Container for Vault path configurations.
- Author:
- devteam@scivics-lab.com
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddGlobalPath(String key, String value) Adds a global Vault path.voidaddGroupPath(String groupName, String key, String value) Adds a group-specific Vault path.voidaddHostPath(String hostname, String key, String value) Adds a host-specific Vault path.Gets global Vault paths.getGroupPaths(String groupName) Gets group-specific Vault paths.getHostPaths(String hostname) Gets host-specific Vault paths.getPathsForHost(String hostname, String... groupNames) Gets Vault paths for a specific host, applying priority rules.
-
Field Details
-
globalPaths
-
groupPaths
-
hostPaths
-
-
Constructor Details
-
VaultPaths
public VaultPaths()
-
-
Method Details
-
addGlobalPath
Adds a global Vault path.- Parameters:
key- Path key (e.g., "ssh_key_path")value- Vault path (e.g., "secret/data/ssh/iacuser/private_key")
-
addGroupPath
Adds a group-specific Vault path.- Parameters:
groupName- Group namekey- Path keyvalue- Vault path
-
addHostPath
Adds a host-specific Vault path.- Parameters:
hostname- Hostnamekey- Path keyvalue- Vault path
-
getPathsForHost
Gets Vault paths for a specific host, applying priority rules. Priority: host-specific > group-specific > global- Parameters:
hostname- HostnamegroupNames- Group names this host belongs to- Returns:
- Map of Vault paths for this host
-
getGlobalPaths
-
getGroupPaths
Gets group-specific Vault paths.- Parameters:
groupName- Group name- Returns:
- Map of group paths, or empty map if group not found
-
getHostPaths
Gets host-specific Vault paths.- Parameters:
hostname- Hostname- Returns:
- Map of host paths, or empty map if host not found
-