Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add keypair package in a second workspace #102

Merged
merged 5 commits into from
Mar 11, 2024

Conversation

acharb
Copy link
Contributor

@acharb acharb commented Mar 5, 2024

ticket

adding the keyManager code into its own workspace

this is replacing this outdated PR I posted earlier w/o workspaces, but is essentially the same deal of lifting code from old wallet-sdk Keymanager stuff to this sdk

Copy link

socket-security bot commented Mar 5, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@albedo-link/intent@0.12.0 None 0 162 kB orbitlens
npm/@babel/compat-data@7.23.5 None 0 64.6 kB nicolo-ribaudo
npm/@babel/core@7.24.0 environment, filesystem, unsafe Transitive: shell +51 10.8 MB nicolo-ribaudo
npm/@babel/helper-compilation-targets@7.23.6 Transitive: environment, filesystem, shell +12 2.63 MB nicolo-ribaudo
npm/@babel/helper-create-regexp-features-plugin@7.22.15 Transitive: environment, filesystem, shell, unsafe +63 11.7 MB nicolo-ribaudo
npm/@babel/plugin-transform-optional-chaining@7.23.4 Transitive: environment, filesystem, shell, unsafe +88 20.5 MB nicolo-ribaudo
npm/@babel/preset-env@7.24.0 environment Transitive: filesystem, shell, unsafe +160 15.4 MB nicolo-ribaudo
npm/@babel/runtime@7.24.0 None +1 290 kB nicolo-ribaudo
npm/@eslint-community/regexpp@4.10.0 None 0 431 kB eslint-community-bot
npm/@jridgewell/gen-mapping@0.3.5 None +4 368 kB jridgewell
npm/@jridgewell/sourcemap-codec@1.4.15 None 0 45.9 kB jridgewell
npm/@ledgerhq/errors@6.16.2 None 0 189 kB ldg-github-ci
npm/@ledgerhq/hw-app-str@6.28.4 None +14 5.73 MB ldg-github-ci
npm/@ledgerhq/hw-transport-u2f@5.36.0-deprecated None +10 5.68 MB gre
npm/@ledgerhq/logs@6.12.0 None 0 36.3 kB sergii-shkolin
npm/@stellar/freighter-api@2.0.0 None 0 58.8 kB piyalbasu
npm/@stellar/stellar-sdk@11.2.2 Transitive: environment, filesystem, network +27 47.7 MB stellar-npm-ci
npm/@trezor/connect-plugin-stellar@9.0.2 None +1 365 kB trezor-ci
npm/@trezor/connect-plugin-stellar@9.0.3 Transitive: environment, filesystem +1 27.9 kB trezor-ci
npm/@types/babel__traverse@7.20.5 Transitive: environment +4 2.58 MB types
npm/@types/istanbul-lib-coverage@2.0.6 None 0 5.45 kB types
npm/@types/jest@29.5.12 Transitive: environment, filesystem, unsafe +47 5.77 MB types
npm/@types/json-schema@7.0.15 None 0 31.7 kB types
npm/@types/semver@7.5.8 None 0 23.3 kB types
npm/@typescript-eslint/eslint-plugin@7.1.1 Transitive: environment, eval, filesystem, shell, unsafe +123 48.8 MB jameshenry
npm/@typescript-eslint/parser@7.1.1 Transitive: environment, eval, filesystem, shell, unsafe +118 45.7 MB jameshenry
npm/acorn@8.11.3 None 0 531 kB marijn
npm/available-typed-arrays@1.0.7 None +1 31.3 kB ljharb
npm/babel-jest@29.7.0 environment Transitive: eval, filesystem, network, shell, unsafe +148 17.9 MB simenb
npm/call-bind@1.0.7 Transitive: eval +11 231 kB ljharb
npm/core-js-compat@3.36.0 Transitive: environment, filesystem, shell +7 3.11 MB zloirock
npm/define-data-property@1.1.4 Transitive: eval +8 179 kB ljharb
npm/es-abstract@1.22.5 Transitive: eval +58 3.29 MB ljharb
npm/es-errors@1.3.0 None 0 12.3 kB ljharb
npm/expect@29.7.0 Transitive: environment, filesystem, unsafe +46 5.69 MB simenb
npm/get-intrinsic@1.2.4 eval +5 129 kB ljharb
npm/graceful-fs@4.2.11 environment, filesystem 0 32.5 kB isaacs
npm/has-property-descriptors@1.0.2 Transitive: eval +7 152 kB ljharb
npm/has-proto@1.0.3 None 0 12 kB ljharb
npm/has-tostringtag@1.0.2 None +1 38.2 kB ljharb
npm/hasown@2.0.1 None +1 42.6 kB ljharb
npm/husky@9.0.11 environment, filesystem, shell 0 3.61 kB typicode
npm/ignore@5.3.1 None 0 51.5 kB kael
npm/is-shared-array-buffer@1.0.3 Transitive: eval +12 250 kB ljharb
npm/istanbul-lib-coverage@3.2.2 None 0 34.4 kB oss-bot
npm/jest-mock-random@1.1.1 None 0 5.99 kB sir-people
npm/jest-util@29.7.0 environment Transitive: filesystem +17 4.89 MB simenb
npm/jest@29.7.0 Transitive: environment, eval, filesystem, network, shell, unsafe +273 23.1 MB simenb
npm/node-localstorage@3.0.5 filesystem +3 131 kB lmaccherone
npm/pretty-format@29.7.0 Transitive: environment +4 546 kB simenb
npm/resolve@1.22.8 environment, filesystem +5 232 kB ljharb
npm/scrypt-async@2.0.1 None 0 33.6 kB dchest
npm/sinon@17.0.1 Transitive: environment, eval +12 7.75 MB fatso83
npm/trezor-connect@8.2.12 Transitive: network +10 1.73 MB trezor-ci
npm/ts-jest@29.1.2 environment, filesystem, unsafe Transitive: eval, network, shell +278 55.5 MB kul
npm/ts-loader@9.5.1 filesystem Transitive: environment, eval, network, shell, unsafe +89 52.3 MB johnnyreilly
npm/tslib@2.6.2 None 0 84 kB typescript-bot
npm/tweetnacl-util@0.15.1 None 0 8.14 kB dchest
npm/typescript@5.3.3 None 0 32 MB typescript-bot

🚮 Removed packages: npm/@babel/plugin-proposal-private-property-in-object@7.21.0, npm/terser@5.29.1, npm/tslib@2.5.0, npm/typescript@5.4.2

View full report↗︎

Copy link

socket-security bot commented Mar 5, 2024

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Alert Package NoteSource
Network access npm/node-fetch@2.7.0
Network access npm/node-fetch@2.7.0
Network access npm/node-fetch@2.7.0
Filesystem access npm/source-map@0.7.4
Network access npm/source-map@0.7.4
Network access npm/cross-fetch@3.1.8
Debug access npm/jest-circus@29.7.0
Filesystem access npm/node-localstorage@3.0.5
Filesystem access npm/husky@9.0.11
Debug access npm/@babel/core@7.24.0

View full report↗︎

Next steps

What is network access?

This module accesses the network.

Packages should remove all network access that is functionally unnecessary. Consumers should audit network access to ensure legitimate use.

What is filesystem access?

Accesses the file system, and could potentially read sensitive data.

If a package must read the file system, clarify what it will read and ensure it reads only what it claims to. If appropriate, packages can leave file system access to consumers and operate on data passed to it instead.

What is debug access?

Uses debug, reflection and dynamic code execution features.

Removing the use of debug will reduce the risk of any reflection and dynamic code execution.

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/foo@1.0.0 or ignore all packages with @SocketSecurity ignore-all

  • @SocketSecurity ignore npm/node-fetch@2.7.0
  • @SocketSecurity ignore npm/source-map@0.7.4
  • @SocketSecurity ignore npm/cross-fetch@3.1.8
  • @SocketSecurity ignore npm/jest-circus@29.7.0
  • @SocketSecurity ignore npm/node-localstorage@3.0.5
  • @SocketSecurity ignore npm/husky@9.0.11
  • @SocketSecurity ignore npm/@babel/core@7.24.0

@@ -1,4 +1,4 @@
name: npm publish
name: npm publish wallet sdk
on:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fyi I couldn't find a good way to auto publish two projects in the same mono repo. But I don't imagine the KeyManager code will be changing much, so I think publishing that manually shouldn't be to terrible?

and the main SDK will still have the auto publishing capability

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

export * from "./freighter";
export * from "./ledger";
export * from "./plaintextKey";
// TODO - fix trezor errors
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

leaving trezor commented out for a separate PR, since giving errors

we have this ticket for reaching out to trezor

@acharb
Copy link
Contributor Author

acharb commented Mar 11, 2024

there are 2 "high" severity warnings from socket (same as the PR this branch is merging into)

I looked into both and neither look dangerous

@acharb acharb marked this pull request as ready for review March 11, 2024 16:29
@acharb acharb merged commit 2ab914f into acharb-workspace2 Mar 11, 2024
4 of 5 checks passed
@acharb acharb deleted the acharb-keymanager2 branch March 11, 2024 19:28
acharb added a commit that referenced this pull request Mar 11, 2024
* create workspace

* try

* try

* try

* try

* cleanup

* update anchor platform docker run

* fix

* fix

* upgrade babel/traverse

* upgrade browserify-sign

* add keypair package in a second workspace (#102)

* add km package

* fix tests

* cleanup
acharb added a commit that referenced this pull request Mar 26, 2024
* fix broken test (#93)

* add sep10 sign challenge txn helper (#95)

* add sep10 helper method

* name change

* correct resp

* create server module

* add npm publish gha (#96)

* WAL-1064 - add anchor platform integration tests (#99)

* create workspace (#101)

* create workspace

* try

* try

* try

* try

* cleanup

* update anchor platform docker run

* fix

* fix

* upgrade babel/traverse

* upgrade browserify-sign

* add keypair package in a second workspace (#102)

* add km package

* fix tests

* cleanup

* add second CD (#109)

* fix stellar-sdk imports (#112)

* fix imports

* fix

* preparing for 1.4.0 release stuff (#110)

* fix

* fix webpack process

* webpack fix (#113)

* webpack fix

* cleanup

* add helper for parsing AnchorTransaction (#111)

* add helper for parsing AnchorTransaction

* use kind

* add try-catch

---------

Co-authored-by: Alec Charbonneau <aleccharb21@gmail.com>
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.

None yet

3 participants