Class VaultConfigParser.VaultPaths

java.lang.Object
com.scivicslab.actoriac.VaultConfigParser.VaultPaths
Enclosing class:
VaultConfigParser

public static class VaultConfigParser.VaultPaths extends Object
Container for Vault path configurations.
Author:
devteam@scivics-lab.com
  • Field Details

  • Constructor Details

  • Method Details

    • addGlobalPath

      public void addGlobalPath(String key, String value)
      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

      public void addGroupPath(String groupName, String key, String value)
      Adds a group-specific Vault path.
      Parameters:
      groupName - Group name
      key - Path key
      value - Vault path
    • addHostPath

      public void addHostPath(String hostname, String key, String value)
      Adds a host-specific Vault path.
      Parameters:
      hostname - Hostname
      key - Path key
      value - Vault path
    • getPathsForHost

      public Map<String,String> getPathsForHost(String hostname, String... groupNames)
      Gets Vault paths for a specific host, applying priority rules. Priority: host-specific > group-specific > global
      Parameters:
      hostname - Hostname
      groupNames - Group names this host belongs to
      Returns:
      Map of Vault paths for this host
    • getGlobalPaths

      Gets global Vault paths.
      Returns:
      Map of global paths
    • getGroupPaths

      public Map<String,String> getGroupPaths(String groupName)
      Gets group-specific Vault paths.
      Parameters:
      groupName - Group name
      Returns:
      Map of group paths, or empty map if group not found
    • getHostPaths

      public Map<String,String> getHostPaths(String hostname)
      Gets host-specific Vault paths.
      Parameters:
      hostname - Hostname
      Returns:
      Map of host paths, or empty map if host not found