src/Get-NetstorageCredentials.ps1

<#
  .SYNOPSIS
  Gets NetStorage credentials.
 
  .DESCRIPTION
  The `Get-NetstorageCredentials` cmdlet gets NetStorage authentication credentials from environment variables or an authentication file.
 
  .PARAMETER AuthFile
  The path to an authentication file.
 
  .PARAMETER Section
  Auththentication `file/env` variable section.
 
  .EXAMPLE
  Get-NetstorageCredentials
 
  .EXAMPLE
  Get-NetstorageCredentials -AuthFile "/path/to/auth" -Section "MySection"
 
  .LINK
  PowerShell overview: https://techdocs.akamai.com/powershell/docs/overview
 
  .LINK
  Online version: https://techdocs.akamai.com/powershell/reference/get-netstoragecredentials
#>


function Get-NetstorageCredentials {
    [CmdletBinding()]
    Param(
        [Parameter()]
        [string]
        $AuthFile,

        [Parameter()]
        [string]
        $Section
    )

    ## Assign defaults if values not provided
    if ($AuthFile -eq '') {
        $AuthFile = '~/.nsrc'
    }
    if ($Section -eq '') {
        $Section = 'default'
    }


    #----------------------------------------------------------------------------------------------
    # 1. Set up auth object
    #----------------------------------------------------------------------------------------------

    ## Instantiate auth object
    $AuthElements = @(
        'key',
        'id',
        'group',
        'host',
        'cpcode'
    )

    $Auth = New-Object -TypeName PSCustomObject
    $AuthElements | ForEach-Object {
        $Auth | Add-Member -MemberType NoteProperty -Name $_ -Value $null
    }

    #----------------------------------------------------------------------------------------------
    # 2. Check for environment variables
    #----------------------------------------------------------------------------------------------
    
    ## 'default' section is implicit. Otherwise env variable starts with section prefix
    if ($Section -eq 'default') {
        $EnvPrefix = 'NETSTORAGE_'
    }
    else {
        $EnvPrefix = "NETSTORAGE_$Section`_"
    }

    $AuthElements | ForEach-Object {
        $UpperEnv = "$EnvPrefix$_".ToUpper()
        if (Test-Path Env:\$UpperEnv) {
            $Auth.$_ = (Get-Item -Path Env:\$UpperEnv).Value
        }
    }

    ## Check essential elements and return
    if ($null -ne $Auth.key -and $null -ne $Auth.id -and $null -ne $Auth.group -and $null -ne $Auth.host -and $null -ne $Auth.cpcode) {
        ## Env creds valid
        Write-Debug "Obtained credentials from environment variables in section '$Section'"
        return $Auth
    }

    #----------------------------------------------------------------------------------------------
    # 3. Read from .edgerc file
    #----------------------------------------------------------------------------------------------

    # Get credentials from Auth file
    if (Test-Path $AuthFile) {
        $AuthFileContent = Get-Content $AuthFile
        for ($i = 0; $i -lt $AuthFileContent.length; $i++) {
            $line = $AuthFileContent[$i]
            $SanitizedLine = $line.Replace(" ", "")

            if ($line.contains("[") -and $line.contains("]")) {
                $SectionHeader = $SanitizedLine.Substring($Line.indexOf('[') + 1)
                $SectionHeader = $SectionHeader.SubString(0, $SectionHeader.IndexOf(']'))
            }

            ## Skip sections other than desired one
            if ($SectionHeader -ne $Section) { continue }

            if ($SanitizedLine.ToLower().StartsWith('key')) { $Auth.key = $SanitizedLine.SubString($SanitizedLine.IndexOf("=") + 1) }
            if ($SanitizedLine.ToLower().StartsWith('id')) { $Auth.id = $SanitizedLine.SubString($SanitizedLine.IndexOf("=") + 1) }
            if ($SanitizedLine.ToLower().StartsWith('group')) { $Auth.group = $SanitizedLine.SubString($SanitizedLine.IndexOf("=") + 1) }
            if ($SanitizedLine.ToLower().StartsWith('host')) { $Auth.host = $SanitizedLine.SubString($SanitizedLine.IndexOf("=") + 1) }
            if ($SanitizedLine.ToLower().StartsWith('cpcode')) { $Auth.cpcode = $SanitizedLine.SubString($SanitizedLine.IndexOf("=") + 1) }
        }

        ## Check essential elements and return
        if ($null -ne $Auth.key -and $null -ne $Auth.id -and $null -ne $Auth.group -and $null -ne $Auth.host -and $null -ne $Auth.cpcode) {
            Write-Debug "Obtained credentials from auth file '$AuthFile' in section '$Section'"
            return $Auth
        }
    }
    
    #----------------------------------------------------------------------------------------------
    # 4. Panic!
    #----------------------------------------------------------------------------------------------

    ## Under normal circumstances you should not get this far...
    throw "Error: Credentials could not be loaded from either; session, environment variables or auth file '$AuthFile'"

}


# SIG # Begin signature block
# MIIpogYJKoZIhvcNAQcCoIIpkzCCKY8CAQExDzANBglghkgBZQMEAgEFADB5Bgor
# Bg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