• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

nats-io / jwt
81%

Build:
DEFAULT BRANCH: main
Repo Added 23 Aug 2018 06:00PM UTC
Files 36
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH main
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • 2_4_0
  • add-issue-forms
  • add_in_process_conn_type
  • add_msg_trace_support
  • add_require_proxied_user_perm
  • any-account
  • auth_users_omitempty
  • authorization_omitempty
  • branch_v1
  • bump-nkeys
  • bumps
  • case-sensitive-tags
  • cluster-traffic
  • cluster-traffic-as-string
  • complex-tags
  • convenience-tags
  • dependabot/go_modules/v2/golang.org/x/crypto-0.17.0
  • dependabot/go_modules/v2/golang.org/x/crypto-0.31.0
  • did-sign
  • equals-fold
  • example
  • feat/import-same-service-from-diff-accounts
  • fix-badge
  • fix-crypto-cve
  • fix-issue-config-discussions-link
  • fix-nsc-657
  • fix-nsc-775
  • gh-ci
  • harden-cred-generation
  • main
  • msg_trace_sampling
  • neil/accountnrg
  • operator-ws
  • pdp/fossa
  • pdp/v2-v1-detangle
  • pdp/version-2.4.0
  • ppc64
  • refs/tags/v2.4.0
  • refs/tags/v2.4.1
  • refs/tags/v2.5.0
  • refs/tags/v2.5.1
  • refs/tags/v2.5.2
  • refs/tags/v2.5.3
  • refs/tags/v2.5.4
  • refs/tags/v2.5.5
  • refs/tags/v2.5.6
  • refs/tags/v2.5.7
  • refs/tags/v2.5.8
  • refs/tags/v2.6.0
  • refs/tags/v2.7.0
  • refs/tags/v2.7.1
  • refs/tags/v2.7.2
  • refs/tags/v2.7.3
  • refs/tags/v2.7.4
  • refs/tags/v2.8.0
  • retract-set
  • retract-tags
  • retract2
  • rm-tag-error
  • role-description
  • sharing
  • sign-fn
  • simplify-response
  • simplify-response-go-mod
  • sk_sort
  • tags
  • unsquat-iana
  • update-deps

27 Feb 2026 10:00PM UTC coverage: 81.153% (+0.08%) from 81.072%
22505453099

push

github

web-flow
fix: allow import of same service subject from different accounts (#243)

nats-server already allows importing the same (service) subject from different account, while the jwt does not. This becomes an issue when you, for instance, source JetStreams from different accounts and need to import service `$JS.FC.>` from both. Before, this could be solved by importing e.g. `$JS.FC.STREAM_FROM_ACC_X.>` and `$JS.FC.STREAM_FROM_ACC_Y.>`, but this requires globally unique stream names. If those streams are both called `ORDERS` then you wouldn't be able to source both.

Issue: https://github.com/nats-io/nats-server/issues/7326
Related: https://github.com/nats-io/nats-server/pull/6704
Related: https://github.com/nats-io/nats-server/issues/6547
Related: https://github.com/nats-io/nats-server/issues/6431

Signed-off-by: Thobias Karlsson <thobias.karlsson@gmail.com>

11 of 11 new or added lines in 1 file covered. (100.0%)

2773 of 3417 relevant lines covered (81.15%)

27.02 hits per line

Relevant lines Covered
Build:
Build:
3417 RELEVANT LINES 2773 COVERED LINES
27.02 HITS PER LINE
Source Files on main
  • Tree
  • List 36
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
22505453099 main fix: allow import of same service subject from different accounts (#243) nats-server already allows importing the same (service) subject from different account, while the jwt does not. This becomes an issue when you, for instance, source JetStrea... push 27 Feb 2026 10:01PM UTC web-flow github
81.15
22295578499 feat/import-same-service-from-diff-accounts fix: allow import of same service subject from different accounts nats-server already allows importing the same (service) subject from different account, while the jwt does not. This becomes an issue when you, for instance, source JetStreams from... Pull #243 27 Feb 2026 07:49PM UTC thobiaskarlsson github
81.15
22111078948 harden-cred-generation added a check when generating creds that the specified key is valid for the JWT provided. Pull #242 17 Feb 2026 06:42PM UTC aricart github
81.02
19439588169 fix-nsc-775 Add test for self-mapping validation in account claims Signed-off-by: Alberto Ricart <alberto@synadia.com> Pull #241 17 Nov 2025 06:05PM UTC aricart github
81.01
19391571808 fix-nsc-775 perhaphs handle this in an unmarshal - this means existing JWT will work propery - new ones created by the API will ALWAYS serialize the weight - so if created with no weight expecting the old behaviour, it will set to 0 (which will not route traf... Pull #241 15 Nov 2025 03:06PM UTC aricart github
81.01
19370721457 fix-nsc-775 Handle zero weights in cluster and non-cluster mappings, add new tests - previously zero weights were interpreted as being 100 - added tests verifying the partial weights with 0 entries - deprecated `GetWeight` method in favor of directly using t... Pull #241 14 Nov 2025 04:22PM UTC aricart github
80.97
19370674349 fix-nsc-775 Handle zero weights in cluster and non-cluster mappings, add new tests - previously zero weights were interpreted as being 100 - added tests verifying the partial weights with 0 entries - deprecated `GetWeight` method in favor of directly using t... push 14 Nov 2025 04:20PM UTC aricart github
80.97
16832740797 refs/tags/v2.8.0 update build status badge to use GitHub Actions (#240) Signed-off-by: Alberto Ricart <alberto@synadia.com> push 08 Aug 2025 02:20PM UTC web-flow github
81.07
16832725450 main update build status badge to use GitHub Actions (#240) Signed-off-by: Alberto Ricart <alberto@synadia.com> push 08 Aug 2025 02:19PM UTC web-flow github
81.07
16832605808 fix-badge update build status badge to use GitHub Actions Signed-off-by: Alberto Ricart <alberto@synadia.com> Pull #240 08 Aug 2025 02:14PM UTC aricart github
81.07
See All Builds (419)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc