Skip to content

Commit

Permalink
Fix/send inventory on secure forwarder mode (#796)
Browse files Browse the repository at this point in the history
* fix: send inventory on secure forward mode

* chore: bump publish action version
  • Loading branch information
rubenruizdegauna authored Oct 29, 2021
1 parent f155646 commit b17a417
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/prerelease_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ jobs:
username: ${{ env.DOCKER_HUB_ID }}
password: ${{ env.DOCKER_HUB_PASSWORD }}
- name: Publish ${{ matrix.assetsType }} to S3 action
uses: newrelic/infrastructure-publish-action@v1.0.21
uses: newrelic/infrastructure-publish-action@v1.1.0
env:
AWS_ACCESS_KEY_ID: ${{ secrets.OHAI_AWS_ACCESS_KEY_ID_STAGING }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.OHAI_AWS_SECRET_ACCESS_KEY_STAGING }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prerelease_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ jobs:
# username: ${{ env.DOCKER_HUB_ID }}
# password: ${{ env.DOCKER_HUB_PASSWORD }}
# - name: Publish ${{ matrix.assetsType }} to S3 action
# uses: newrelic/infrastructure-publish-action@v1.0.19
# uses: newrelic/infrastructure-publish-action@v1.1.0
# env:
# AWS_ACCESS_KEY_ID: ${{ secrets.OHAI_AWS_ACCESS_KEY_ID_STAGING }}
# AWS_SECRET_ACCESS_KEY: ${{ secrets.OHAI_AWS_SECRET_ACCESS_KEY_STAGING }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/prerelease_staged_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
password: ${{ env.DOCKER_HUB_PASSWORD }}
- name: Publish ${{ matrix.assetsType }} to S3 action
if: ${{ (github.event.inputs.assetsType == 'all' || github.event.inputs.assetsType == matrix.assetsType) && (github.event.inputs.targzOS == 'all' || github.event.inputs.targzOS == matrix.targzOS) }}
uses: newrelic/infrastructure-publish-action@v1.0.19
uses: newrelic/infrastructure-publish-action@v1.1.0
env:
AWS_ACCESS_KEY_ID: ${{ env.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ env.AWS_SECRET_ACCESS_KEY }}
Expand Down Expand Up @@ -96,7 +96,7 @@ jobs:
# password: ${{ env.DOCKER_HUB_PASSWORD }}
# - name: Publish ${{ matrix.assetsType }} to S3 action
# if: ${{ (github.event.inputs.assetsType == 'all' || github.event.inputs.assetsType == matrix.assetsType) && (github.event.inputs.targzOS == 'all' || github.event.inputs.targzOS == matrix.targzOS) }}
# uses: newrelic/infrastructure-publish-action@v1.0.19
# uses: newrelic/infrastructure-publish-action@v1.1.0
# env:
# AWS_ACCESS_KEY_ID: ${{ env.AWS_ACCESS_KEY_ID }}
# AWS_SECRET_ACCESS_KEY: ${{ env.AWS_SECRET_ACCESS_KEY }}
Expand Down Expand Up @@ -140,7 +140,7 @@ jobs:
password: ${{ env.DOCKER_HUB_PASSWORD }}
- name: Publish ${{ matrix.assetsType }} to S3 action
if: ${{ github.event.inputs.assetsType == 'all' || github.event.inputs.assetsType == matrix.assetsType }}
uses: newrelic/infrastructure-publish-action@v1.0.19
uses: newrelic/infrastructure-publish-action@v1.1.0
env:
AWS_ACCESS_KEY_ID: ${{ env.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ env.AWS_SECRET_ACCESS_KEY }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prerelease_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ jobs:
username: ${{ env.DOCKER_HUB_ID }}
password: ${{ env.DOCKER_HUB_PASSWORD }}
- name: Publish to S3 action
uses: newrelic/infrastructure-publish-action@v1.0.21
uses: newrelic/infrastructure-publish-action@v1.1.0
env:
AWS_ACCESS_KEY_ID: ${{ secrets.OHAI_AWS_ACCESS_KEY_ID_STAGING }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.OHAI_AWS_SECRET_ACCESS_KEY_STAGING }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
username: ${{ env.DOCKER_HUB_ID }}
password: ${{ env.DOCKER_HUB_PASSWORD }}
- name: Publish ${{ matrix.assetsType }} to S3 action
uses: newrelic/infrastructure-publish-action@v1.0.21
uses: newrelic/infrastructure-publish-action@v1.1.0
env:
AWS_ACCESS_KEY_ID: ${{ env.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ env.AWS_SECRET_ACCESS_KEY }}
Expand Down Expand Up @@ -80,7 +80,7 @@ jobs:
#
# steps:
# - name: Publish ${{ matrix.assetsType }} to S3 action
# uses: newrelic/infrastructure-publish-action@v1.0.19
# uses: newrelic/infrastructure-publish-action@v1.1.0
# env:
# AWS_ACCESS_KEY_ID: ${{ env.AWS_ACCESS_KEY_ID }}
# AWS_SECRET_ACCESS_KEY: ${{ env.AWS_SECRET_ACCESS_KEY }}
Expand Down Expand Up @@ -123,7 +123,7 @@ jobs:
username: ${{ env.DOCKER_HUB_ID }}
password: ${{ env.DOCKER_HUB_PASSWORD }}
- name: Publish ${{ matrix.assetsType }} to S3 action
uses: newrelic/infrastructure-publish-action@v1.0.19
uses: newrelic/infrastructure-publish-action@v1.1.0
env:
AWS_ACCESS_KEY_ID: ${{ env.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ env.AWS_SECRET_ACCESS_KEY }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release_staged.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
password: ${{ env.DOCKER_HUB_PASSWORD }}
- name: Publish ${{ matrix.assetsType }} to S3 action
if: ${{ (github.event.inputs.assetsType == 'all' || github.event.inputs.assetsType == matrix.assetsType) && (github.event.inputs.targzOS == 'all' || github.event.inputs.targzOS == matrix.targzOS) }}
uses: newrelic/infrastructure-publish-action@v1.0.19
uses: newrelic/infrastructure-publish-action@v1.1.0
env:
AWS_ACCESS_KEY_ID: ${{ env.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ env.AWS_SECRET_ACCESS_KEY }}
Expand Down Expand Up @@ -100,7 +100,7 @@ jobs:
# password: ${{ env.DOCKER_HUB_PASSWORD }}
# - name: Publish ${{ matrix.assetsType }} to S3 action
# if: ${{ (github.event.inputs.assetsType == 'all' || github.event.inputs.assetsType == matrix.assetsType) && (github.event.inputs.targzOS == 'all' || github.event.inputs.targzOS == matrix.targzOS) }}
# uses: newrelic/infrastructure-publish-action@v1.0.19
# uses: newrelic/infrastructure-publish-action@v1.1.0
# env:
# AWS_ACCESS_KEY_ID: ${{ env.AWS_ACCESS_KEY_ID }}
# AWS_SECRET_ACCESS_KEY: ${{ env.AWS_SECRET_ACCESS_KEY }}
Expand Down Expand Up @@ -145,7 +145,7 @@ jobs:
password: ${{ env.DOCKER_HUB_PASSWORD }}
- name: Publish ${{ matrix.assetsType }} to S3 action
if: ${{ github.event.inputs.assetsType == 'all' || github.event.inputs.assetsType == matrix.assetsType }}
uses: newrelic/infrastructure-publish-action@v1.0.19
uses: newrelic/infrastructure-publish-action@v1.1.0
env:
AWS_ACCESS_KEY_ID: ${{ env.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ env.AWS_SECRET_ACCESS_KEY }}
Expand Down
2 changes: 1 addition & 1 deletion internal/agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -1182,5 +1182,5 @@ func (a *Agent) gracefulShutdown() error {
}

func (a *Agent) shouldSendInventory() bool {
return !a.GetContext().Config().IsForwardOnly && !a.GetContext().Config().IsSecureForwardOnly
return !a.GetContext().Config().IsForwardOnly
}

0 comments on commit b17a417

Please sign in to comment.