GithubHelp home page GithubHelp logo

peculiarventures / acme-ts Goto Github PK

View Code? Open in Web Editor NEW
11.0 11.0 3.0 1.59 MB

Provides client and server implementations of ACME (RFC 8555) in TypeScript. It enables you to build solutions that provide complete and robust certificate lifecycle management.

License: Other

TypeScript 98.99% JavaScript 1.01%
acme client protocol rcf8555 rest server x509

acme-ts's People

Contributors

microshine avatar rmhrisk avatar romashine avatar seriy379 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

acme-ts's Issues

"Order creating" produce unexpected errors

During tests, we are once a catch a strange error.
Error produces in relation with our RA and returns type error: "Cannot read properties of undefined (reading 'authorizations')"

Stack of error:

at OrderAuthorizationRepository.add (/app/node_modules/@peculiar/acme-data-dynamodb/build/cjs/repositories/order_authorization.js:16:21)\
--
at processTicksAndRejections (node:internal/process/task_queues:95:5)\
at OrderService.onCreateOrderAuth (/app/node_modules/@peculiar/acme-server/build/cjs/services/order.js:81:9)\
at OrderService.create (/app/node_modules/@peculiar/acme-server/build/cjs/services/order.js:32:13)\
at /app/node_modules/@peculiar/acme-server/build/cjs/controllers/controller.js:270:27\
at PVAcmeController.wrapAction (/app/node_modules/@peculiar/acme-server/build/cjs/controllers/controller.js:90:13)\
at RaControllers.createOrder (/app/node_modules/@peculiar/acme-express/build/cjs/controllers/controllers.js:40:24)\""}}""
at OrderAuthorizationRepository.add (/app/node_modules/@peculiar/acme-data-dynamodb/build/cjs/repositories/order_authorization.js:16:21)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at OrderService.onCreateOrderAuth (/app/node_modules/@peculiar/acme-server/build/cjs/services/order.js:81:9)
at OrderService.create (/app/node_modules/@peculiar/acme-server/build/cjs/services/order.js:32:13)
at /app/node_modules/@peculiar/acme-server/build/cjs/controllers/controller.js:270:27
at PVAcmeController.wrapAction (/app/node_modules/@peculiar/acme-server/build/cjs/controllers/controller.js:90:13)
at RaControllers.createOrder (/app/node_modules/@peculiar/acme-express/build/cjs/controllers/controllers.js:40:24)""}}"

At this moment I exclude the influence of our instance in this process but it is possible. Unfortunately, we can't reproduce it again.

Date of reproduction: 2023-07-13

Version of @peculiar/acme-data-dynamodb: 1.8.0
Version of @peculiarventures/acme-ra-server: 0.0.20

@microshine, I will be thankful for help with it. Ask me if you need some additional info

GitHub CI Action Failing to Publish Packages Using Lerna

The current script for GitHub CI action is not correctly publishing our packages with Lerna. While the build process appears to complete successfully, there seems to be an issue with the final publishing step which is not happening as intended.

The logs show a failure in the execution of the Lerna publish command, which seems to indicate a problem with the script or the interaction between the script and Lerna.

npx lerna version --yes --conventional-commits --create-release github --message 'chore(release): publish'
lerna notice cli v4.0.0
lerna info ci enabled
lerna info current version 1.8.1
lerna info Looking for changed packages since v1.8.1
lerna success No changed packages to version 
lerna notice cli v4.0.0
lerna info ci enabled

lerna info auto-confirmed 
Found 9 packages to publish:
lerna info publish Publishing packages to npm...
 - @peculiar/acme-client => 1.8.1
 - @peculiar/acme-core => 1.8.1
 - @peculiar/acme-data-dynamodb => 1.8.1
lerna info Verifying npm credentials
 - @peculiar/acme-data-memory => 1.8.1
 - @peculiar/acme-data => 1.8.1
 - @peculiar/jose => 1.8.1
 - @peculiar/acme-express => 1.8.1
 - @peculiar/acme-ra => 1.8.1
 - @peculiar/acme-server => 1.8.1

lerna http fetch GET 403 https://registry.npmjs.org/-/npm/v1/user 91ms
403 Forbidden - GET https://registry.npmjs.org/-/npm/v1/user
lerna ERR! EWHOAMI Authentication error. Use `npm whoami` to troubleshoot.
Error: Process completed with exit code 1.

Unable to create new EAB if `data.type: memory`

[error] 2022-05-14T08:59:49.476Z PVAcmeController: Element already exists {
  stack: 'Error: Element already exists\n' +
    '    at ExternalAccountRepository.add (/app/node_modules/@peculiar/acme-data-memory/build/cjs/repositories/base.js:22:19)\n' +
    '    at PVExternalAccountService.create (/app/node_modules/@peculiar/acme-server/build/cjs/services/external_account.js:20:64)\n' +
    '    at processTicksAndRejections (node:internal/process/task_queues:95:5)'
}

for data.type: dynamo everything works fine

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.