Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmellos committed Jan 4, 2024
1 parent d52f3f8 commit bbd2fc6
Showing 1 changed file with 27 additions and 22 deletions.
49 changes: 27 additions & 22 deletions .github/workflows/iac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,29 +132,34 @@ jobs:
uses: mdgreenwald/[email protected]
with:
version: 3.7.3

- name: Authenticate against Teleport to use Vault
if: inputs.TELEPORT_APP != ''
id: teleportapp
uses: ./actions/.github/actions/teleport
env:
TOKEN: ${{ secrets.TELEPORT_TOKEN }}
PROXY_URL: ${{ inputs.TELEPORT_PROXY_URL }}
with:
TELEPORT_APP: ${{ inputs.TELEPORT_APP }}

- name: Configure Vault
if: inputs.TELEPORT_APP != ''
run: |
echo VAULT_ADDR=https://${{ inputs.TELEPORT_PROXY_URL }} >> $GITHUB_ENV
#echo VAULT_API_ADDR=https://${{ inputs.TELEPORT_PROXY_URL }} >> $GITHUB_ENV
echo VAULT_CLIENT_TIMEOUT=120s >> $GITHUB_ENV
echo VAULT_CLIENT_CERT=${{ steps.teleportapp.outputs.certificate-file }} >> $GITHUB_ENV
echo VAULT_CLIENT_KEY=${{ steps.teleportapp.outputs.key-file }} >> $GITHUB_ENV
echo VAULT_TOKEN=$VAULT_TOKEN >> $GITHUB_ENV
env:
VAULT_TOKEN: ${{ secrets.VAULT_TOKEN }}

- uses: innovationnorway/setup-vault@v1
with:
version: '~> 1'

- name: Authenticate against Teleport to use Vault
if: inputs.TELEPORT_APP != ''
id: teleportapp
uses: ./actions/.github/actions/teleport
env:
TOKEN: ${{ secrets.TELEPORT_TOKEN }}
PROXY_URL: ${{ inputs.TELEPORT_PROXY_URL }}
with:
TELEPORT_APP: ${{ inputs.TELEPORT_APP }}

- name: Configure Vault
if: inputs.TELEPORT_APP != ''
run: |
echo VAULT_ADDR=https://${{ inputs.TELEPORT_PROXY_URL }} >> $GITHUB_ENV
#echo VAULT_API_ADDR=https://${{ inputs.TELEPORT_PROXY_URL }} >> $GITHUB_ENV
echo VAULT_CLIENT_TIMEOUT=120s >> $GITHUB_ENV
echo VAULT_CLIENT_CERT=${{ steps.teleportapp.outputs.certificate-file }} >> $GITHUB_ENV
echo VAULT_CLIENT_KEY=${{ steps.teleportapp.outputs.key-file }} >> $GITHUB_ENV
echo VAULT_TOKEN=$VAULT_TOKEN >> $GITHUB_ENV
env:
VAULT_TOKEN: ${{ secrets.VAULT_TOKEN }}

- run: vault secrets list
- uses: opentofu/setup-opentofu@v1

- name: Init
Expand Down

0 comments on commit bbd2fc6

Please sign in to comment.