Michael Muré
8bb3a4f4d0
expose secretbox, notably for the GenerateKey() function that should be public
2024-12-12 16:04:31 +01:00
Michael Muré
ce6d163627
container: I/O as strings for base64
2024-12-11 16:05:16 +01:00
Michael Muré
0592717637
(WIP) refine the token constructors:
...
- for invocation, reorder the parameters for a more "natural language" mental model
- for delegation, make "subject" a required parameter to avoid make powerline by mistake
- for delegation, implement powerline
2024-12-09 20:39:47 +01:00
Michael Muré
0f59088d0b
test: improvement on the generator, small fixes
2024-12-04 19:55:29 +01:00
Fabio Bozzo
3688ccea01
fieldRegex to be more restrictive and consistent
2024-12-02 19:18:01 +01:00
Fabio Bozzo
e9105896d7
Merge branch 'main' into fix/extended-field-names
...
# Conflicts:
# pkg/policy/selector/parsing_test.go
2024-12-02 19:05:19 +01:00
Fabio Bozzo
15751c7362
regex to be more restrictive and consistent
2024-12-02 18:30:41 +01:00
Michael Muré
d52218fa5a
Merge pull request #88 from ucan-wg/feat/secretbox-meta-encryption
...
feat(meta): secretbox encryption in place of aes-gcm
2024-12-02 17:34:29 +01:00
Fabio Bozzo
64d3024dec
remove aes comparison and add ciphertext overhead comments
2024-12-02 17:31:19 +01:00
Fabio Bozzo
da806b1bc5
remove TODO comment
2024-12-02 14:32:15 +01:00
Fabio Bozzo
311b942a6d
validate invocation token args
2024-12-02 14:22:42 +01:00
Fabio Bozzo
56eab758ed
move args int validation to their creation
2024-12-02 12:24:06 +01:00
Fabio Bozzo
28272e6900
move int validation to where a error can be returned
2024-12-02 11:59:16 +01:00
Fabio Bozzo
117a75e2c4
cleanup comments
2024-11-29 19:36:00 +01:00
Fabio Bozzo
a25bfbaf45
fix: extended field names
2024-11-29 19:32:31 +01:00
Fabio Bozzo
bff482f73b
add constants.go
2024-11-29 13:04:14 +01:00
Fabio Bozzo
ff79bbb443
go fmt
2024-11-29 13:03:48 +01:00
Fabio Bozzo
3997a86184
fix: prevent overflow of int values
2024-11-29 13:00:00 +01:00
Fabio Bozzo
200d6a8ae2
benchmarks vs aes-gcm
2024-11-28 17:17:10 +01:00
Fabio Bozzo
0349e7e463
feat(meta): secretbox encryption in place of aes-gcm
2024-11-28 16:16:04 +01:00
Steve Moyer
15535d3474
Merge pull request #86 from ucan-wg/test/invocation-verifies-args-vs-pols
...
test(invocation): verify arguments versus aggregated policies
2024-11-27 14:56:05 -05:00
Steve Moyer
170e597e71
feat(args): export fluent builder
2024-11-27 12:05:00 -05:00
Steve Moyer
ce1a4b6e32
test(invocation): verify arguments versus aggregated policies
2024-11-27 10:20:40 -05:00
Michael Muré
d1d047cd9e
Merge pull request #85 from ucan-wg/container-accessor
...
container: add a way to check for a single invocation, also iterator
2024-11-27 16:13:29 +01:00
Michael Muré
3680637090
container: add a way to check for a single invocation, also iterator
2024-11-27 16:13:15 +01:00
Michael Muré
ba4db9bce8
args: add simple value accessor
2024-11-27 12:23:10 +01:00
Michael Muré
943a318b26
Merge commit '60bdc8873b3d259ff297be4873a9623fcebb7f75'
2024-11-26 11:44:27 +01:00
Steve Moyer
60bdc8873b
feat(delegation): make Token constructors resemble invocation.New() signature
2024-11-25 15:12:29 -05:00
Michael Muré
820057e41e
container: streamed and non-streamed IO, documentation
2024-11-21 15:49:29 +01:00
Michael Muré
ba0038b0ae
Merge pull request #79 from ucan-wg/meta-args
...
meta,args: add missing Include, add iterator to use normal or Readonly the same way
2024-11-21 11:27:37 +01:00
Michael Muré
caae2f58bf
meta,args: add missing Include, add iterator to use normal or Readonly the same way
2024-11-21 11:25:15 +01:00
Steve Moyer
ec627138cb
fix(selector): allow dashes in selector names
...
This functionality will be further enhanced in #80 .
Resolves #66
2024-11-20 12:37:29 -05:00
Michael Muré
5f8536e480
Merge pull request #60 from ucan-wg/wip
...
feat(invocation): add token validation prior to execution
2024-11-20 15:48:43 +01:00
Michael Muré
aea1880386
tests: lots of small asjustement
2024-11-20 14:55:48 +01:00
Michael Muré
e980d6c0b9
various sanding everywhere towards building the tookit
2024-11-20 12:34:24 +01:00
Steve Moyer
1098e76cba
test(invocation): add command.Covers and subject consistency tests
...
Also improve the maintainability of the tests by a) providing a set of fixed Personas
and then generating a slew of valid delegation tokens, invalid delegation tokens
and proof-chains thereof.
2024-11-19 14:35:46 -05:00
Fabio Bozzo
25ca34923f
feat(container): versioning for the CBOR container
2024-11-14 12:38:26 +01:00
Michael Muré
98d9cadcbd
command: fast-path for Covers()
2024-11-12 19:01:02 +01:00
Michael Muré
e938d64220
command: add Covers() for attenuation test, fix incorrect Segments()
2024-11-12 18:42:59 +01:00
Fabio Bozzo
d3e97aaa08
AddEncrypted adds ciphertext always as bytes
2024-11-12 16:37:53 +01:00
Fabio Bozzo
a26d836025
validate non-zero aes key and other refactoring
2024-11-12 16:04:33 +01:00
Fabio Bozzo
9f47418bdf
fix merge conflict
2024-11-12 15:31:21 +01:00
Fabio Bozzo
81c7a0f80d
Merge branch 'v1' into v1-meta-encryption
...
# Conflicts:
# pkg/meta/meta.go
2024-11-12 15:30:54 +01:00
Fabio Bozzo
3987e8649c
refactor meta/internal/crypto and add key generation method
2024-11-12 15:29:48 +01:00
Fabio Bozzo
7cb0f97b30
Merge branch 'v1' into v1-meta-encryption
...
Signed-off-by: Fabio Bozzo <fabio.bozzo@gmail.com >
2024-11-12 15:07:19 +01:00
Michael Muré
c4a53f42b6
args,meta: harmonize supported types, with fast paths
2024-11-12 13:09:07 +01:00
Michael Muré
522181b16a
args: simplify API + code
2024-11-12 12:14:58 +01:00
Steve Moyer
11bc085c60
test(policy): update to handel statement returned from Match
2024-11-07 13:17:22 -05:00
Steve Moyer
a4a8634eb8
Merge branch 'v1' into feat/complete-invocation-stub
2024-11-07 13:14:03 -05:00
Steve Moyer
d353dfe652
feat(args): create a specialized type to manage invocation Arguments
2024-11-07 12:58:53 -05:00