Obs/bin/ObsDep/content/Powershell/Roles/Common/JeaHelper.psm1

<###################################################
 # #
 # Copyright (c) Microsoft. All rights reserved. #
 # #
 ##################################################>


Import-Module -Name "$PSScriptRoot\..\Common\RoleHelpers.psm1"
Import-Module -Name "$PSScriptRoot\..\..\Common\Helpers.psm1"
Import-LocalizedData LocalizedData -Filename JEA.Strings.psd1 -ErrorAction SilentlyContinue
Import-LocalizedData CommonLocalizedData -BaseDirectory "$PSScriptRoot\..\Common" -Filename Roles.Strings.psd1 -ErrorAction SilentlyContinue

<#
.SYNOPSIS
    Generate JEA role capabilities for JEA endpoint. Used by both JEA role and JustEnoughAdministrationDSC
#>

function Get-RoleCapabilityParams
{
    Param
    (
        [Parameter(Mandatory = $true)]
        [ValidateNotNull()]
        [System.Xml.XmlLinkedNode]
        $Whitelist
    )

    Trace-ECEScript "Generate JEA role capabilities for JEA endpoint." {
        $RoleCapabilityParams =
        @{
            Author =
                "AzureStack"
            CompanyName =
                "Microsoft"
        }

        if ($Whitelist.ModulesToImport -and $Whitelist.ModulesToImport.HasChildNodes)
        {
            $modules = @()
            $Whitelist.ModulesToImport.ChildNodes | ? Name -ne '#comment' | % {
                $module = $_.Name
                if ($_.Version -or $_.Guid)
                {
                    $module = @{}
                    $module.Add('ModuleName',$_.Name)
                    if ($_.Version) { $module.Add('ModuleVersion', $_.Version) }
                    if ($_.Guid) { $module.Add('GUID', $_.Guid) }
                }
                $modules += $module
            }
            if ($modules.Count -gt 0)
            {
                $RoleCapabilityParams['ModulesToImport'] = $modules
            }
        }
        if ($Whitelist.VisibleAliases -and $Whitelist.VisibleAliases.HasChildNodes)
        {
            $aliases = @()
            $Whitelist.VisibleAliases.ChildNodes | ? Name -ne '#comment' | % { $aliases += $_.Value }
            if ($aliases.Count -gt 0)
            {
                $RoleCapabilityParams['VisibleAliases'] = $aliases
            }
        }
        if ($Whitelist.VisibleCmdlets -and $Whitelist.VisibleCmdlets.HasChildNodes)
        {
            $cmdlets = @()
            $Whitelist.VisibleCmdlets.ChildNodes | ? Name -ne '#comment' |
            % {
                $cmdlet = $_.Name
                if ($_.Parameter)
                {
                    $cmdlet = @{}
                    $cmdlet.Add('Name',$_.Name)
                    $p = @{Name=$_.Parameter.Name}
                    if($_.Parameter.ValidateSet) { $p['ValidateSet'] = $_.Parameter.ValidateSet}
                    if($_.Parameter.ValidatePattern) { $p['ValidatePattern'] = $_.Parameter.ValidatePattern}
                    $cmdlet.Add('Parameters',$p)
                }
                $cmdlets += $cmdlet
            }
            if ($cmdlets.Count -gt 0)
            {
                $RoleCapabilityParams['VisibleCmdlets'] = $cmdlets
            }
        }
        if ($Whitelist.VisibleFunctions -and $Whitelist.VisibleFunctions.HasChildNodes)
        {
            $functions = @()
            $Whitelist.VisibleFunctions.ChildNodes | ? Name -ne '#comment' |
            % {
                $function = $_.Name
                if ($_.Parameter)
                {
                    $function = @{}
                    $function.Add('Name',$_.Name)
                    $p = @{Name=$_.Parameter.Name}
                    if($_.Parameter.ValidateSet) { $p['ValidateSet'] = $_.Parameter.ValidateSet}
                    if($_.Parameter.ValidatePattern) { $p['ValidatePattern'] = $_.Parameter.ValidatePattern}
                    $function.Add('Parameters',$p)
                }
                $functions += $function
            }
            if ($functions.Count -gt 0)
            {
                $RoleCapabilityParams['VisibleFunctions'] = $functions
            }
        }
        if ($Whitelist.VisibleExternalCommands -and $Whitelist.VisibleExternalCommands.HasChildNodes)
        {
            $extcmds = @()
            $Whitelist.VisibleExternalCommands.ChildNodes | ? Name -ne '#comment' | % { $extcmds += $_.Value }
            if ($extcmds.Count -gt 0)
            {
                $RoleCapabilityParams['VisibleExternalCommands'] = $extcmds
            }
        }
        if ($Whitelist.VisibleProviders -and $Whitelist.VisibleProviders.HasChildNodes)
        {
            $providers = @()
            $Whitelist.VisibleProviders.ChildNodes | ? Name -ne '#comment' | % { $providers += $_.Value }
            if ($providers.Count -gt 0)
            {
                $RoleCapabilityParams['VisibleProviders'] = $providers
            }
        }
        if ($Whitelist.AliasDefinitions -and $Whitelist.AliasDefinitions.HasChildNodes)
        {
            $aliases = @()
            $Whitelist.AliasDefinitions.ChildNodes | ? Name -ne '#comment' | % { $aliases += @{Name=$_.Name; Value=$_.Value} }
            if ($aliases.Count -gt 0)
            {
                $RoleCapabilityParams['AliasDefinitions'] = $aliases
            }
        }
        if ($Whitelist.FunctionDefinitions -and $Whitelist.FunctionDefinitions.HasChildNodes)
        {
            $functions = @()
            $Whitelist.FunctionDefinitions.ChildNodes | ? Name -ne '#comment' | % { $functions += @{Name=$_.Name; ScriptBlock=[ScriptBlock]::Create($_.ScriptBlock)} }
            if ($functions.Count -gt 0)
            {
                $RoleCapabilityParams['FunctionDefinitions'] = $functions
            }
        }
        if ($Whitelist.VariableDefinitions -and $Whitelist.VariableDefinitions.HasChildNodes)
        {
            $variables = @()
            $Whitelist.VariableDefinitions.ChildNodes | ? Name -ne '#comment' | % { $variables += @{Name=$_.Name; Value=$_.Value} }
            if ($variables.Count -gt 0)
            {
                $RoleCapabilityParams['VariableDefinitions'] = $variables
            }
        }
        if ($Whitelist.EnvironmentVariables -and $Whitelist.EnvironmentVariables.HasChildNodes)
        {
            $variables = @{}
            $Whitelist.EnvironmentVariables.ChildNodes | ? Name -ne '#comment' | % { $variables += @{$_.Name=$_.Value} }
            if ($variables.Count -gt 0)
            {
                $RoleCapabilityParams['EnvironmentVariables'] = $variables
            }
        }
        if ($Whitelist.AssembliesToLoad -and $Whitelist.AssembliesToLoad.HasChildNodes)
        {
            $assemblies = @()
            $Whitelist.AssembliesToLoad.ChildNodes | ? Name -ne '#comment' | % { $assemblies += $_.Value }
            if ($assemblies.Count -gt 0)
            {
                $RoleCapabilityParams['AssembliesToLoad'] = $assemblies
            }
        }
    }

    if ($Whitelist.ScriptsToProcess -and $Whitelist.ScriptsToProcess.HasChildNodes)
    {
        $scripts = @()
        $Whitelist.ScriptsToProcess.ChildNodes | ? Name -ne '#comment' | % { $scripts += $_.Value }
        if ($scripts.Count -gt 0)
        {
            $RoleCapabilityParams['ScriptsToProcess'] = $scripts
        }
    }
    
    return $RoleCapabilityParams
}

<#
.SYNOPSIS
    Generate session configuration for JEA endpoint. Used by both JEA role and JustEnoughAdministrationDSC
#>

function Get-SessionConfigurationParams
{
    [CmdletBinding()]
    Param (
        [Parameter(Mandatory = $true)]
        [ValidateNotNull()]
        [System.Xml.XmlLinkedNode]
        $SessionConfig,

        [Parameter(Mandatory = $true, ParameterSetName = "common")]
        [ValidateNotNullOrEmpty()]
        [string]
        $RunAsAccountUser,

        [Parameter(Mandatory = $true)]
        [ValidateNotNullOrEmpty()]
        [string]
        $EndpointName,

        [Parameter(Mandatory = $true, ParameterSetName = "common")]
        [ValidateNotNull()]
        [Boolean]
        $RunAsGmsa,

        [Parameter(Mandatory = $true, ParameterSetName = "runasvirtual")]
        [ValidateNotNull()]
        [Boolean]
        $RunAsVirtualAccount,

        [Parameter(Mandatory = $true, ParameterSetName = "runaspassthrough")]
        [ValidateNotNull()]
        [Boolean]
        $RunAsPassThroughCredential,

        [Parameter(Mandatory = $false)]
        [ValidateNotNullOrEmpty()]
        [string]
        $AdminUser,

        [Parameter(Mandatory = $false)]
        [string]
        $versionExtension
    )

    Trace-ECEScript "Generate session configuration for JEA endpoint." {
        $SessionConfigParams =
        @{
            Author =
                "AzureStack"
            SessionType =
                "RestrictedRemoteServer"
        }

        # JEA Over-The-Shoulder Transcript
        if ($SessionConfig.EnableTranscript -and ($sessionConfig.EnableTranscript.Value -eq "True"))
        {
            $SessionConfigParams['TranscriptDirectory'] = "$env:ProgramData\JEAConfiguration\Transcripts\$EndpointName"
        }

        if ($SessionConfig.SessionType)
        {
            $SessionConfigParams['SessionType'] = $SessionConfig.SessionType.Value
        }
        
        if ($SessionConfig.LanguageMode)
        {
            $SessionConfigParams['LanguageMode'] = $SessionConfig.LanguageMode.Value
        }

        # Security Group Mapping
        if ($SessionConfig.SecurityGroup)
        {
            $RoleDefinition = @{}
            $SessionConfig.SecurityGroup |
            % {
                $RoleCapability = @{}
                $_.Whitelist | ? Name -ne '#comment' |
                % {
                    if (-not $versionExtension)
                    {
                        $RoleCapability.Add("RoleCapabilities",$_.Value)
                    }
                    else
                    {
                        $RoleCapability.Add("RoleCapabilities",$_.Value + $versionExtension)
                    }
                }
                $RoleDefinition.Add($_.Name, $RoleCapability)
            }

            # Always handle RunAsGmsa first
            if ($RunAsGmsa)
            {
                $SessionConfigParams['GroupManagedServiceAccount'] = $RunAsAccountUser
            }
            elseif ($RunAsVirtualAccount)
            {
                $SessionConfigParams['RunAsVirtualAccount'] = $RunAsVirtualAccount
            }

            $SessionConfigParams['RoleDefinitions'] = $RoleDefinition
        }
    }

    return $SessionConfigParams
}

<#
.SYNOPSIS
    If multiple roles share the same node, they can each define their own JEA endpoints. If a node is specified,
    ensure that we pick up all other roles that live on this node and configure their JEA endpoints as well.
#>

function Get-RolesWithSharedNode ($Parameters, $NodeName)
{
    Trace-ECEScript "Get roles with shared node" {
        $roles = @()
        $Parameters.Roles.Keys | % {
            $nodeNames = @( $Parameters.Roles.$_.PublicConfiguration.Nodes.Node.Name )
            if ($nodeNames -contains $NodeName)
            {
                $roles += $_
            }
        }
    }

    return $roles
}

Export-ModuleMember -Function Get-RoleCapabilityParams
Export-ModuleMember -Function Get-SessionConfigurationParams
Export-ModuleMember -Function Get-RolesWithSharedNode
# SIG # Begin signature block
# MIIoQwYJKoZIhvcNAQcCoIIoNDCCKDACAQExDzANBglghkgBZQMEAgEFADB5Bgor
# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG
# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCB5MoLJ71n16Fn+
# gAmc9PTwzyxYepqlaH12C20B+strA6CCDXYwggX0MIID3KADAgECAhMzAAADrzBA
# DkyjTQVBAAAAAAOvMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD
# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZ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