Skip to content

ci: fix credentials could not be loaded error - #1320

Merged
shumkov merged 1 commit into
v0.25-devfrom
fix/oidc-credentials
Aug 17, 2023
Merged

shumkov merged 1 commit into
v0.25-devfrom
fix/oidc-credentials

Conversation

@strophy

@strophy strophy commented Aug 17, 2023 •

Copy link
Copy Markdown
Contributor

Issue being fixed or feature implemented

Release runs were failing when attempting to run the sub-action to install NodeJS, which starts out with a GHA/AWS OIDC login step in order to access the cache bucket in S3. This step fails with:

Run aws-actions/configure-aws-credentials@v2
  with:
    aws-region: eu-west-1
    audience: sts.amazonaws.com
(node:1885) NOTE: We are formalizing our plans to enter AWS SDK for JavaScript (v2) into maintenance mode in 2023.

Please migrate your code to use AWS SDK for JavaScript (v3).
For more information, check the migration guide at https://a.co/7PzMCcy
(Use `node --trace-warnings ...` to show where the warning was created)
Error: Credentials could not be loaded, please check your action inputs: Could not load credentials from any providers

What was done?

It should not be necessary to use OIDC to obtain AWS permissions because the permissions are allocated using an IAM Bucket Policy referencing the instance role instead here: https://github.com/dcginfra/tf-aws-gh-runner/blob/main/modules/runners/s3_cache/main.tf#L13-L32

If this doesn't work for whatever reason, we could also try to make this error go away by adding the following to the jobs making use of the steps attempting an AWS OIDC login:

permissions:
  id-token: write
  contents: read

How Has This Been Tested?

This needs to be tested by creating a release from this branch, or merging and creating a normal release.

Breaking Changes

None

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

@shumkov shumkov changed the title fix: Credentials could not be loaded, please check your action inputs ci: credentials could not be loaded, please check your action inputs Aug 17, 2023
@shumkov shumkov changed the title ci: credentials could not be loaded, please check your action inputs ci: credentials could not be loaded Aug 17, 2023
@shumkov shumkov changed the title ci: credentials could not be loaded ci: fix credentials could not be loaded error Aug 17, 2023
@shumkov
shumkov merged commit 7e5f7a6 into v0.25-dev Aug 17, 2023
@shumkov
shumkov deleted the fix/oidc-credentials branch August 17, 2023 11:24
@pshenmic pshenmic added this to the v0.24.x milestone Aug 18, 2023
xdustinface added a commit that referenced this pull request Nov 5, 2026
Moves every rust-dashcore pin from `7329126e` to `a319c0a3`, the current `dev` of dashpay/rust-dashcore. It includes dashpay/rust-dashcore#776 (FFI crates removed) and `TxIn::claimed_p2pkh_address`. Base SDK moves to 89828032.

Adapted:
- #1266: seeds and phrases come back as `Zeroizing` buffers and are borrowed, not copied
- #1250: `AppEncryption` uses `application_encryption_path`, `AppEncryptionLegacy` the `_without_rotation` variant, so derived keys and paths are byte-identical
- #902: `PeersUpdated` no longer lists addresses, so `PeerTracker` builds the connected set from `PeerConnected` / `PeerDisconnected`
- #1223: devnet LLMQ size and threshold are `u16`, and larger values are now refused
- #1189: `dash-spv`'s `sync` module is private, so imports use the public re-exports
- #1223: the Base SDK's `LlmqParams` keeps the DKG fields flat as `u16`, so the verified context provider and the `refresh_checkpoints` example read `dkg_interval` and widen both counts to `u32`, giving the same fetch window and depth
- #1320: hash newtypes no longer have `engine` or `from_engine`, so the ChainLock request id in `drive-abci` and the ProUpServTx payload hash in `platform-wallet` hash through `sha256d::Hash` and wrap the result, which gives the same bytes
- #1320: upstream hash types no longer index into bytes or have `from_slice`, so callers read `as_byte_array` and use the newtypes' own `from_slice` and `all_zeros`
- #1320: the newtypes' conversions are inherent functions, so the `Hash` trait imports that only served them go, and `rs-dapi` drops `dash-spv`, whose only use was that import

dash-spv applies the `/name:version/` form and the 256-byte bound to the user agent again (#1311), so `platform_wallet_manager_spv_start` passes the configured user agent through.

Behaviour that changes upstream: an existing SPV store resyncs its masternode lists once, because #1227 changed the snapshot format. The default user agent becomes `/dash-spv:<version>/`. #1273 (payload written only from version 3) and #1269 (`OP_CODESEPARATOR` in the legacy sighash) do not affect transactions Platform builds or verifies. #400 (SegWit and Taproot removed), #1288 (`bitcoin_units` re-exports), #1289 (dependency maintenance), #1318 (`bitcoinconsensus` removed), #1307 (partial merkle trees bounded by Dash's block size) and #1258 (masternode sync kept live on bad or missing diffs) need no change in Platform.
xdustinface added a commit that referenced this pull request Nov 5, 2026
Moves every rust-dashcore pin from `7329126e` to `a319c0a3`, the current `dev` of dashpay/rust-dashcore. It includes dashpay/rust-dashcore#776 (FFI crates removed) and `TxIn::claimed_p2pkh_address`. Base SDK moves to 89828032.

Adapted:
- #1266: seeds and phrases come back as `Zeroizing` buffers and are borrowed, not copied
- #1250: `AppEncryption` uses `application_encryption_path`, `AppEncryptionLegacy` the `_without_rotation` variant, so derived keys and paths are byte-identical
- #902: `PeersUpdated` no longer lists addresses, so `PeerTracker` builds the connected set from `PeerConnected` / `PeerDisconnected`
- #1223: devnet LLMQ size and threshold are `u16`, and larger values are now refused
- #1189: `dash-spv`'s `sync` module is private, so imports use the public re-exports
- #1223: the Base SDK's `LlmqParams` keeps the DKG fields flat as `u16`, so the verified context provider and the `refresh_checkpoints` example read `dkg_interval` and widen both counts to `u32`, giving the same fetch window and depth
- #1320: hash newtypes no longer have `engine` or `from_engine`, so the ChainLock request id in `drive-abci` and the ProUpServTx payload hash in `platform-wallet` hash through `sha256d::Hash` and wrap the result, which gives the same bytes
- #1320: upstream hash types no longer index into bytes or have `from_slice`, so callers read `as_byte_array` and use the newtypes' own `from_slice` and `all_zeros`
- #1320: the newtypes' conversions are inherent functions, so the `Hash` trait imports that only served them go, and `rs-dapi` drops `dash-spv`, whose only use was that import

dash-spv applies the `/name:version/` form and the 256-byte bound to the user agent again (#1311), so `platform_wallet_manager_spv_start` passes the configured user agent through.

Behaviour that changes upstream: an existing SPV store resyncs its masternode lists once, because #1227 changed the snapshot format. The default user agent becomes `/dash-spv:<version>/`. #1273 (payload written only from version 3) and #1269 (`OP_CODESEPARATOR` in the legacy sighash) do not affect transactions Platform builds or verifies. #400 (SegWit and Taproot removed), #1288 (`bitcoin_units` re-exports), #1289 (dependency maintenance), #1318 (`bitcoinconsensus` removed), #1307 (partial merkle trees bounded by Dash's block size) and #1258 (masternode sync kept live on bad or missing diffs) need no change in Platform.
xdustinface added a commit that referenced this pull request Nov 5, 2026
Moves every rust-dashcore pin from `7329126e` to `a319c0a3`, the current `dev` of dashpay/rust-dashcore. It includes dashpay/rust-dashcore#776 (FFI crates removed) and `TxIn::claimed_p2pkh_address`. Base SDK moves to 89828032.

Adapted:
- #1266: seeds and phrases come back as `Zeroizing` buffers and are borrowed, not copied
- #1250: `AppEncryption` uses `application_encryption_path`, `AppEncryptionLegacy` the `_without_rotation` variant, so derived keys and paths are byte-identical
- #902: `PeersUpdated` no longer lists addresses, so `PeerTracker` builds the connected set from `PeerConnected` / `PeerDisconnected`
- #1223: devnet LLMQ size and threshold are `u16`, and larger values are now refused
- #1189: `dash-spv`'s `sync` module is private, so imports use the public re-exports
- #1223: the Base SDK's `LlmqParams` keeps the DKG fields flat as `u16`, so the verified context provider and the `refresh_checkpoints` example read `dkg_interval` and widen both counts to `u32`, giving the same fetch window and depth
- #1320: hash newtypes no longer have `engine` or `from_engine`, so the ChainLock request id in `drive-abci` and the ProUpServTx payload hash in `platform-wallet` hash through `sha256d::Hash` and wrap the result, which gives the same bytes
- #1320: upstream hash types no longer index into bytes or have `from_slice`, so callers read `as_byte_array` and use the newtypes' own `from_slice` and `all_zeros`
- #1320: the newtypes' conversions are inherent functions, so the `Hash` trait imports that only served them go, and `rs-dapi` drops `dash-spv`, whose only use was that import

dash-spv applies the `/name:version/` form and the 256-byte bound to the user agent again (#1311), so `platform_wallet_manager_spv_start` passes the configured user agent through.

Behaviour that changes upstream: an existing SPV store resyncs its masternode lists once, because #1227 changed the snapshot format. The default user agent becomes `/dash-spv:<version>/`. #1273 (payload written only from version 3) and #1269 (`OP_CODESEPARATOR` in the legacy sighash) do not affect transactions Platform builds or verifies. #400 (SegWit and Taproot removed), #1288 (`bitcoin_units` re-exports), #1289 (dependency maintenance), #1318 (`bitcoinconsensus` removed), #1307 (partial merkle trees bounded by Dash's block size) and #1258 (masternode sync kept live on bad or missing diffs) need no change in Platform.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants