Repository navigation
HF-307: license-key entitlement gating — capability model, key reader, API guards #1728
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
Merged
Merged
Changes from 54 commits
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
0a966e3
HF-307 PR 1: entitlement model, capability registry, gate B (#307)
marcin-kordas-hoc 8db1a21
Merge up/develop into hf-307-entitlement-gating-pr1
marcin-kordas-hoc 54ce850
refactor(HF-307): drop the unused implication step from capability gr…
marcin-kordas-hoc 40ad18a
fix(HF-307): split the unrestricted capability flag into two axes
marcin-kordas-hoc 954d8c8
HF-307 PR 2: public API guards (ensureCapability) (#1729)
marcin-kordas-hoc 6502eab
HF-307: license key reader (entitlement key format, rev 6), resolutio…
marcin-kordas-hoc 5b8c91b
HF-307: align getRegisteredFunctionNames with the license gate, depre…
marcin-kordas-hoc 7c41e1d
Merge branch 'develop' into hf-307-entitlement-gating-pr1
sequba dad51a4
Apply suggestion from @sequba
sequba bfe7004
Apply suggestion from @sequba
sequba f2e590e
Apply suggestion from @sequba
sequba 1a1db86
HF-307: drop the add-on tokens, the deprecation, and the gate-active …
marcin-kordas-hoc 81dca2d
HF-307: pin the one behaviour change the diff was not admitting to
marcin-kordas-hoc d6d7786
Apply suggestion from @sequba
sequba 86e5c65
Refactor capabilities
sequba 2ea4fb5
HF-307: option 1 — the vendored reader stops diverging from upstream
marcin-kordas-hoc 56e3e49
HF-307: correct two comments that a reproduction showed to be false
marcin-kordas-hoc adc39bd
HF-307: make the vendored-parser drift check a real check, and it imm…
marcin-kordas-hoc 568b4a1
HF-307: finish option 1 — the vendored reader is now byte-identical t…
marcin-kordas-hoc 04673be
HF-307: vendor the reader upstream publishes for products, not the pa…
marcin-kordas-hoc 71a0af6
HF-307: the drift check verifies the tag still points at the pinned c…
marcin-kordas-hoc e0ed3e1
HF-307: codecov ignores the vendored reader; the drift workflow decla…
marcin-kordas-hoc 997e5b5
HF-307: the drift check names a tag/commit mismatch as one, not as an…
marcin-kordas-hoc 38500f7
HF-307: when the listing fails, the drift check says what the pin che…
marcin-kordas-hoc 4e876b8
Rename vendored parser check to license-key-parser-drift
cursoragent 8e47e2b
HF-307: read entitlement keys through readEntitlementLicense, as upst…
marcin-kordas-hoc 96a7b17
HF-307: comments say what the code does after the reader switch
marcin-kordas-hoc 85dc976
HF-307: an expired non-trial entitlement key no longer blocks evaluation
marcin-kordas-hoc 670b46a
HF-307: the license guide no longer names key formats when explaining…
marcin-kordas-hoc e929f23
HF-307: entitlement keys print the specification's console messages, …
marcin-kordas-hoc 153920b
HF-307: dedupe entitlement messages per key and message, not per key
marcin-kordas-hoc fc59e57
HF-307: license comments describe behaviour, not ticket history
sequba b0ee8e4
Describe what the docs generator's license key does now that function…
marcin-kordas-hoc 7fcbd3a
Fix tests
sequba f174669
Merge branch 'hf-307-entitlement-gating-pr1' of github.com:handsontab…
sequba 1919fd0
HF-307: re-take the vendored entitlement-key reader from license-key …
sequba 5a3edb9
Remove license status from VERSION function output
cursoragent 42a3c7c
Remove unused entitlementKeyChecksumOf function
cursoragent d97478c
HF-307: read the license once per interpreter and resolve aliases in …
sequba 3076f28
HF-307: expose the missing feature on the license error, and trim the…
sequba 9f34759
HF-307: document that a bad key blocks the gated API, and VERSION's n…
sequba c341a14
HF-307: make the vendored-reader drift check robust
sequba 459ef82
HF-307: classify drift-check failures precisely and name the pinned c…
sequba 0d00cec
HF-307: make isItPossibleTo* agree with the license, and correct the …
sequba 5f41ad0
HF-307: classify every lifecycle state of the key reader in one exhau…
sequba bf6b804
HF-307: the getAvailableFunctions docs no longer name a key field
sequba 867774e
HF-307: changelog notes what a blocking key does to the gated API
sequba 0efee29
HF-307: pass a license key in every guide example
sequba 83324a7
HF-307: describe src/license and the capability table in DEV_DOCS
sequba f05cd2d
HF-307: pass a license key in every API reference example
sequba bf5ceeb
HF-307: fix four API reference examples that threw for their own reasons
sequba 8020cf6
HF-307: isThereSomethingToUndo and isThereSomethingToRedo answer fals…
sequba 402bca4
HF-307: a stopped array function evaluates to #LIC! in its own cell
sequba d952c7d
HF-307: moving or pasting a formula with an undefined name no longer …
sequba 3e8ffcf
Rephrase and shorten changelog entry for undefined name bug fix
cursoragent c6ccee4
Remove duplicate changelog entry (keep shorter version)
cursoragent f9819f7
Remove array function spill range changelog entry
cursoragent File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| name: Vendored parser | ||
|
|
||
| # The entitlement-key reader under src/license/handsontable-license-key-parser/ is a verbatim | ||
| # copy of a private upstream directory. This job is the drift check that copy's integration guide | ||
| # asks for: it fails when any byte differs from the pinned tag, when a file shadows the copy, or | ||
| # when upstream has released a newer tag. See PROVENANCE.md in that directory. | ||
| # | ||
| # It needs LICENSE_KEY_REPO_TOKEN - a read-only token for handsontable/license-key - as a repository | ||
| # secret. Without it the check fails on purpose ("could not verify" is not "verified"), so this job | ||
| # stays red until the secret is set. Pull requests from forks never receive secrets and are skipped. | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [ opened, reopened, synchronize ] | ||
| paths: | ||
| - 'src/license/handsontable-license-key-parser/**' | ||
| - 'script/check-license-key-parser-drift.js' | ||
| - '.github/workflows/vendored-parser.yml' | ||
| push: | ||
| branches: [ master, develop ] | ||
| schedule: | ||
| - cron: '17 6 * * 1-5' # weekday mornings: a newer upstream tag is news even when nothing here changed | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| drift: | ||
| if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 10 | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@722adc63f1aa60a57ec37892e133b1d319cae598 # https://github.com/actions/checkout/releases/tag/v2.0.0 | ||
| - name: Setup Node.js 22 | ||
| uses: actions/setup-node@56899e050abffc08c2b3b61f3ec6a79a9dc3223d # https://github.com/actions/setup-node/releases/tag/v1.4.4 | ||
| with: | ||
| node-version: '22' | ||
| - name: Compare the vendored reader with upstream | ||
| run: node script/check-license-key-parser-drift.js | ||
| env: | ||
| LICENSE_KEY_REPO_TOKEN: ${{ secrets.LICENSE_KEY_REPO_TOKEN }} | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.