neeraj
10210aea31
Fix protobuf lint error
2024-01-11 11:50:25 +05:30
neeraj
c3e0102571
Fix golang-ci lint errors
2024-01-11 11:24:26 +05:30
e004584685
Skip GRPC query test with recursive attributes input
2024-01-11 10:26:49 +05:30
6f6138f02a
Resolve rebase conflicts
2024-01-11 09:09:38 +05:30
4f8fda7c9c
type rename
2024-01-11 09:09:38 +05:30
df6d8d8234
clean up
2024-01-11 09:09:38 +05:30
9bf5fa589c
clean up
2024-01-11 09:09:38 +05:30
69cf8f7b56
encoding of query attrs
2024-01-11 09:09:37 +05:30
8d7e26515b
use sum type in protobuf query
2024-01-11 09:05:11 +05:30
62d2d1598a
gql -> rpc dag-json encoding
2024-01-11 09:05:11 +05:30
378c6d7cde
gql schema for ipld objects
2024-01-11 09:05:11 +05:30
505b8fb0b7
gql: move schema to cerc-io/
2024-01-11 09:05:11 +05:30
e6c27c68f1
normalize logger
2024-01-11 09:05:11 +05:30
neeraj
f51de891e9
Fix lint errors
2024-01-11 09:04:42 +05:30
cffaf547a9
rm confusing comments
2024-01-10 11:20:29 +05:30
a9c04a7980
type rename
...
this matches the change in follow up PR branch `graphql-to-ipld`
2024-01-10 11:20:29 +05:30
6dbb27f46c
remove hard-coded record types, fix EIP-712 decoding
...
rename types for clarity
2024-01-10 11:20:29 +05:30
ed81bba3ed
Add ApplicationDeploymentRemovalRequests ( #130 )
...
```
message ApplicationDeploymentRemovalRequest {
string type = 1 [(gogoproto.moretags) = "json:\"type\" yaml:\"type\""];
string version = 2 [(gogoproto.moretags) = "json:\"version\" yaml:\"version\""];
string deployment = 3 [(gogoproto.moretags) = "json:\"deployment\" yaml:\"deployment\""];
string request = 4 [(gogoproto.moretags) = "json:\"request\" yaml:\"request\""];
string meta = 20 [(gogoproto.moretags) = "json:\"meta\" yaml:\"meta\""];
repeated string tags = 21 [(gogoproto.moretags) = "json:\"tags\" yaml:\"tags\""];
}
message ApplicationDeploymentRemovalRecord {
string type = 1 [(gogoproto.moretags) = "json:\"type\" yaml:\"type\""];
string version = 2 [(gogoproto.moretags) = "json:\"version\" yaml:\"version\""];
string deployment = 3 [(gogoproto.moretags) = "json:\"deployment\" yaml:\"deployment\""];
string request = 4 [(gogoproto.moretags) = "json:\"request\" yaml:\"request\""];
string meta = 20 [(gogoproto.moretags) = "json:\"meta\" yaml:\"meta\""];
repeated string tags = 21 [(gogoproto.moretags) = "json:\"tags\" yaml:\"tags\""];
}
```
Reviewed-on: cerc-io/laconicd#130
Co-authored-by: Thomas E Lackey <telackey@bozemanpass.com>
Co-committed-by: Thomas E Lackey <telackey@bozemanpass.com>
2023-12-21 21:21:03 +00:00
ae07fc0147
129: Index multivalued attributes. ( #128 )
...
This fixes #129 , by indexing each value of a multivalued attribute.
This handles at least the most common use case, so that we can search on a single value of the attribute.
```
❯ laconic -c ~/.laconic/local.yml cns record list --all --type ApplicationDeploymentRequest --tags b
[
{
"id": "bafyreidrp4pylixp44rkxu5il72qhwwc4ir5ctdnssps5rnelstloxivwm",
"names": null,
"owners": [
"FCCE01FCC2472AEDBCF33902907F33262445AC2C"
],
"bondId": "4ef470a9207f00fc07663623d092a14c310794b616eb53b085cfe6976e82f56d",
"createTime": "2023-12-18T22:13:23Z",
"expiryTime": "2024-12-17T22:13:23Z",
"attributes": {
"type": "ApplicationDeploymentRequest",
"version": "1.0.6",
"application": "crn://cerc-io/applications/test-progressive-web-app@0.1.1",
"config": {
"env": {
"CERC_WEBAPP_DEBUG": "57588a9d"
}
},
"tags": [
"a",
"b",
"c"
]
}
}
]
```
Reviewed-on: cerc-io/laconicd#128
Co-authored-by: Thomas E Lackey <telackey@bozemanpass.com>
Co-committed-by: Thomas E Lackey <telackey@bozemanpass.com>
2023-12-19 06:55:11 +00:00
588c52c0b2
Register ApplicationArtifact proto. ( #126 )
...
Register the new ApplicationArtifact type.
Reviewed-on: cerc-io/laconicd#126
Co-authored-by: Thomas E Lackey <telackey@bozemanpass.com>
Co-committed-by: Thomas E Lackey <telackey@bozemanpass.com>
2023-12-14 02:54:57 +00:00
c407145c31
Make 'repository' a repeated value and add ApplicationArtifact type. ( #125 )
...
Make 'repository' a repeated value and ApplicationArtifact type.
Reviewed-on: cerc-io/laconicd#125
Co-authored-by: Thomas E Lackey <telackey@bozemanpass.com>
Co-committed-by: Thomas E Lackey <telackey@bozemanpass.com>
2023-12-13 20:51:33 +00:00
8077a7a85a
The attribute name should be deployment, not crn
2023-12-07 22:35:40 -06:00
47d086111d
Add DnsRecord and ApplicationDeploymentRequest ( #124 )
...
> Note: This has a breaking protobuf change, but that is known and OK, as the previous release has not been deployed externally.
```
message DnsRecord {
string type = 1 [(gogoproto.moretags) = "json:\"type\" yaml:\"type\""];
string name = 2 [(gogoproto.moretags) = "json:\"name\" yaml:\"name\""];
string version = 3 [(gogoproto.moretags) = "json:\"version\" yaml:\"version\""];
string resource_type = 4 [(gogoproto.moretags) = "json:\"resourceType\" yaml:\"resourceType\""];
string value = 5 [(gogoproto.moretags) = "json:\"value\" yaml:\"value\""];
string meta = 20 [(gogoproto.moretags) = "json:\"meta\" yaml:\"meta\""];
repeated string tags = 21 [(gogoproto.moretags) = "json:\"tags\" yaml:\"tags\""];
}
message ApplicationDeploymentRequest {
string type = 1 [(gogoproto.moretags) = "json:\"type\" yaml:\"type\""];
string name = 2 [(gogoproto.moretags) = "json:\"name\" yaml:\"name\""];
string version = 3 [(gogoproto.moretags) = "json:\"version\" yaml:\"version\""];
string application = 4 [(gogoproto.moretags) = "json:\"application\" yaml:\"application\""];
string dns = 5 [(gogoproto.moretags) = "json:\"dns\" yaml:\"dns\""];
string config = 6 [(gogoproto.moretags) = "json:\"config\" yaml:\"config\""];
repeated string crn = 7 [(gogoproto.moretags) = "json:\"crn\" yaml:\"crn\""];
string meta = 20 [(gogoproto.moretags) = "json:\"meta\" yaml:\"meta\""];
repeated string tags = 21 [(gogoproto.moretags) = "json:\"tags\" yaml:\"tags\""];
}
```
Also rename WebAppDeploymentRecord to ApplicationDeploymentRecord.
Reviewed-on: cerc-io/laconicd#124
Co-authored-by: Thomas E Lackey <telackey@bozemanpass.com>
Co-committed-by: Thomas E Lackey <telackey@bozemanpass.com>
2023-12-07 22:19:10 +00:00
880367d5df
122: Fix attribute index key collision ( #123 )
...
Fix #122 , where the structure of the index key allowed unintended collisions (see below).
This also adds a test cases which _fails_ under the old scheme, but passes now:
**Before:**
```
--- FAIL: TestKeeperTestSuite (0.31s)
--- FAIL: TestKeeperTestSuite/TestGrpcGetRecordLists (0.09s)
grpc_query_test.go:143:
Error Trace: /home/telackey/cerc/laconicd/x/registry/keeper/grpc_query_test.go:143
/home/telackey/cerc/laconicd/x/registry/keeper/suite.go:91
Error: Not equal:
expected: 0
actual : 1
Test: TestKeeperTestSuite/TestGrpcGetRecordLists
--- FAIL: TestKeeperTestSuite/TestGrpcGetRecordLists/Case_Filter_with_typ_(cerc-io/laconicd#122 )_ (0.00s)
testing.go:1490: test executed panic(nil) or runtime.Goexit: subtest may have called FailNow on a parent test
FAIL
FAIL github.com/cerc-io/laconicd/x/registry/keeper 0.765s
FAIL
make: *** [Makefile:333: run-tests] Error 1
❯ laconic cns record list --all --typ eWebsiteRegistrationRecord
[
{
"id": "bafyreies5he2mxyrjso2quewwlmh6cisekkjnf7yijpd2742wrzxgzuazi",
"names": null,
"owners": [
"FC9B9FB065D70DBB10C8F511348421C16669B37D"
],
"bondId": "a9c7161fc154cf44ee61efc699a59c8a27c804bb23ce4c8a7ffa0a39fcc540b1",
"createTime": "2023-11-28T19:09:03Z",
"expiryTime": "2024-11-27T19:09:03Z",
"attributes": {
"url": "https://hello-urbit.laconic.com ",
"repo_registration_record_cid": "QmTZQ8ZJS6mALjEM2wY71msFno6zzxFftVCiZELj9xREPx",
"build_artifact_cid": "~lostex-rabdur-labtul-moltev/hello-urbit",
"tls_cert_cid": "QmR1acEmQt7Tjmhp9cFtymie2eFcrHURQKt9kGto1TQTW1",
"type": "WebsiteRegistrationRecord",
"version": "0.2.4"
}
}
...
❯ laconic cns record list --all --type WebsiteRegistrationRecord
[
{
"id": "bafyreies5he2mxyrjso2quewwlmh6cisekkjnf7yijpd2742wrzxgzuazi",
"names": null,
"owners": [
"FC9B9FB065D70DBB10C8F511348421C16669B37D"
],
"bondId": "a9c7161fc154cf44ee61efc699a59c8a27c804bb23ce4c8a7ffa0a39fcc540b1",
"createTime": "2023-11-28T19:09:03Z",
"expiryTime": "2024-11-27T19:09:03Z",
"attributes": {
"url": "https://hello-urbit.laconic.com ",
"repo_registration_record_cid": "QmTZQ8ZJS6mALjEM2wY71msFno6zzxFftVCiZELj9xREPx",
"build_artifact_cid": "~lostex-rabdur-labtul-moltev/hello-urbit",
"tls_cert_cid": "QmR1acEmQt7Tjmhp9cFtymie2eFcrHURQKt9kGto1TQTW1",
"type": "WebsiteRegistrationRecord",
"version": "0.2.4"
}
}
...
```
**After:**
```
ok github.com/cerc-io/laconicd/x/registry/keeper 1.573s
❯ laconic cns record list --all --typ eWebsiteRegistrationRecord
[]
❯ laconic cns record list --all --type WebsiteRegistrationRecord
[
{
"id": "bafyreies5he2mxyrjso2quewwlmh6cisekkjnf7yijpd2742wrzxgzuazi",
"names": null,
"owners": [
"FC9B9FB065D70DBB10C8F511348421C16669B37D"
],
"bondId": "a9c7161fc154cf44ee61efc699a59c8a27c804bb23ce4c8a7ffa0a39fcc540b1",
"createTime": "2023-11-28T19:09:03Z",
"expiryTime": "2024-11-27T19:09:03Z",
"attributes": {
"url": "https://hello-urbit.laconic.com ",
"repo_registration_record_cid": "QmTZQ8ZJS6mALjEM2wY71msFno6zzxFftVCiZELj9xREPx",
"build_artifact_cid": "~lostex-rabdur-labtul-moltev/hello-urbit",
"tls_cert_cid": "QmR1acEmQt7Tjmhp9cFtymie2eFcrHURQKt9kGto1TQTW1",
"type": "WebsiteRegistrationRecord",
"version": "0.2.4"
}
}
...
```
Reviewed-on: cerc-io/laconicd#123
Co-authored-by: Thomas E Lackey <telackey@bozemanpass.com>
Co-committed-by: Thomas E Lackey <telackey@bozemanpass.com>
2023-11-29 00:05:56 +00:00
0adc932400
118: queryRecords should return [] when no matching records exist, not an error ( #121 )
...
Whenever a key is used which doesn't exist in the DB at all, an error is returned like this:
```
[
{
message: `rpc error: code = Unknown desc = store doesn't have key: "\\atypeApplicationRecord"`,
path: [ 'queryRecords' ]
}
]
```
That doesn't make any sense, as it is not an error to find out that the thing you asked for does not exist. This changes it to return an empty list.
Reviewed-on: cerc-io/laconicd#121
Reviewed-by: David Boreham <dboreham@noreply.git.vdb.to>
Co-authored-by: Thomas E Lackey <telackey@bozemanpass.com>
Co-committed-by: Thomas E Lackey <telackey@bozemanpass.com>
2023-11-28 20:41:28 +00:00
d57743bfd5
119: Disable "stale" workflow. ( #120 )
...
Remove the workflow that automatically marks PRs and issues as stale.
Reviewed-on: cerc-io/laconicd#120
Reviewed-by: David Boreham <dboreham@noreply.git.vdb.to>
Co-authored-by: Thomas E Lackey <telackey@bozemanpass.com>
Co-committed-by: Thomas E Lackey <telackey@bozemanpass.com>
2023-11-28 19:06:10 +00:00
20a6828bb5
Make init.sh re-runnable safely. ( #117 )
...
Make it possible to re-run init.sh safely. If you really want to wipe an existing DB, run `init.sh clean` .
Reviewed-on: cerc-io/laconicd#117
Reviewed-by: David Boreham <dboreham@noreply.git.vdb.to>
Co-authored-by: Thomas E Lackey <telackey@bozemanpass.com>
Co-committed-by: Thomas E Lackey <telackey@bozemanpass.com>
2023-11-22 17:31:15 +00:00
976a97234f
Fix lint errors (which are actually bugs in linting dependencies) ( #114 )
...
Work around bug https://github.com/golangci/golangci-lint/issues/3906 and https://github.com/cachix/install-nix-action/issues/161 and address other lint/CI issues.
Reviewed-on: cerc-io/laconicd#114
Co-authored-by: Thomas E Lackey <telackey@bozemanpass.com>
Co-committed-by: Thomas E Lackey <telackey@bozemanpass.com>
2023-11-21 04:57:52 +00:00
072b174c9b
Add new record types ApplicationRecord, WebAppDeploymentRecord, GeneralRecord ( #113 )
...
See also: WIP: cerc-io/laconic-sdk#44
```
message ApplicationRecord {
string type = 1 [(gogoproto.moretags) = "json:\"type\" yaml:\"type\""];
string name = 2 [(gogoproto.moretags) = "json:\"name\" yaml:\"name\""];
string description = 3 [(gogoproto.moretags) = "json:\"description\" yaml:\"description\""];
string version = 4 [(gogoproto.moretags) = "json:\"version\" yaml:\"version\""];
string homepage = 5 [(gogoproto.moretags) = "json:\"homepage\" yaml:\"homepage\""];
string license = 6 [(gogoproto.moretags) = "json:\"license\" yaml:\"license\""];
string author = 7 [(gogoproto.moretags) = "json:\"author\" yaml:\"author\""];
string repository = 8 [(gogoproto.moretags) = "json:\"repository\" yaml:\"repository\""];
string repository_tag = 9 [(gogoproto.moretags) = "json:\"repositoryTag\" yaml:\"repositoryTag\""];
string app_version = 10 [(gogoproto.moretags) = "json:\"appVersion\" yaml:\"appVersion\""];
string app_type = 11 [(gogoproto.moretags) = "json:\"appType\" yaml:\"appType\""];
string meta = 20 [(gogoproto.moretags) = "json:\"meta\" yaml:\"meta\""];
repeated string tags = 21 [(gogoproto.moretags) = "json:\"tags\" yaml:\"tags\""];
}
message WebAppDeploymentRecord {
string type = 1 [(gogoproto.moretags) = "json:\"type\" yaml:\"type\""];
string name = 2 [(gogoproto.moretags) = "json:\"name\" yaml:\"name\""];
string description = 3 [(gogoproto.moretags) = "json:\"description\" yaml:\"description\""];
string version = 4 [(gogoproto.moretags) = "json:\"version\" yaml:\"version\""];
string application = 5 [(gogoproto.moretags) = "json:\"application\" yaml:\"application\""];
string url = 6 [(gogoproto.moretags) = "json:\"\" yaml:\"name\""];
string meta = 20 [(gogoproto.moretags) = "json:\"meta\" yaml:\"meta\""];
repeated string tags = 21 [(gogoproto.moretags) = "json:\"tags\" yaml:\"tags\""];
}
message GeneralRecord {
string type = 1 [(gogoproto.moretags) = "json:\"type\" yaml:\"type\""];
string name = 2 [(gogoproto.moretags) = "json:\"name\" yaml:\"name\""];
string description = 3 [(gogoproto.moretags) = "json:\"description\" yaml:\"description\""];
string version = 4 [(gogoproto.moretags) = "json:\"version\" yaml:\"version\""];
string category = 5 [(gogoproto.moretags) = "json:\"category\" yaml:\"category\""];
string value = 6 [(gogoproto.moretags) = "json:\"value\" yaml:\"value\""];
string meta = 20 [(gogoproto.moretags) = "json:\"meta\" yaml:\"meta\""];
repeated string tags = 21 [(gogoproto.moretags) = "json:\"tags\" yaml:\"tags\""];
```
Reviewed-on: cerc-io/laconicd#113
Reviewed-by: David Boreham <dboreham@noreply.git.vdb.to>
Co-authored-by: Thomas E Lackey <telackey@bozemanpass.com>
Co-committed-by: Thomas E Lackey <telackey@bozemanpass.com>
2023-11-20 22:01:03 +00:00
Zach
a5681191a5
Merge pull request #102 from cerc-io/murali/ipld-prime
...
upgrade IPLD prime
2023-03-22 09:43:52 -04:00
0xmuralik
1cdf15595e
change comment
2023-03-20 11:18:13 +05:30
0xmuralik
2cc5df02e0
semgrep ignore testutil/network/network.go
2023-03-16 12:15:01 +05:30
0xmuralik
703f146c5b
Merge branch 'main' of github.com:cerc-io/laconicd into murali/ipld-prime
2023-03-16 10:37:33 +05:30
Murali Krishna Komatireddy
763dab712f
fix lint ( #101 )
...
* sdkerrors.Wrap
* sdkerrors.Wrap
* upgrade dependenices
2023-03-15 11:22:35 -04:00
0xmuralik
e2178894ef
upgrade go-ipld-prime
2023-03-15 15:52:27 +05:30
0xmuralik
dca3ccb47c
upgrade dependenices
2023-03-15 11:34:29 +05:30
0xmuralik
2c883282bc
sdkerrors.Wrap
2023-03-15 10:30:41 +05:30
0xmuralik
b8d6300e4d
sdkerrors.Wrap
2023-03-15 10:22:38 +05:30
Murali Krishna Komatireddy
42fdc97c1c
replace CIDFromJSONBytes ( #97 )
...
* replace fn
* fix unit test CID
* rename func
2023-03-14 11:21:23 +05:30
iszubok
5f6a9f56bb
Merge pull request #98 from cerc-io/update-validator-doc-v0.8.0
...
update validator doc for v0.8.0 and laconic_81337-6
2023-03-10 08:49:01 +02:00
Ivan Zubok
71c15cd2eb
update validator doc for v0.8.0 and laconic_81337-6
2023-03-10 06:35:33 +00:00
Michael
c227a38e9a
tests must be run against different chain configurations ( #91 )
...
* tests must be run against different chain configurations
* compose args order matters
* x bit not set on auction tests shell script
* always run docker compose down... possibly to avoid insufficient funds error after a failed run
* add arg to docker compose down for auction and nameservice-expiry
* switch to main branch
2023-02-10 14:44:27 -05:00
Zach
15c9ade06d
Merge pull request #90 from cerc-io/Delete-security.md
...
Delete SECURITY.md
2023-02-06 08:30:58 -05:00
A. F. Dudley
4b318822d9
Delete SECURITY.md
2023-02-04 19:00:17 +04:00
Michael
c61f268329
run all tests ( #89 )
...
* run all tests
* run all tests
* bad env arg passing... done through docker compose environment now
* auction nameservice tests branch of sdk
* only run nameservice test
* documentation did not match script
* run all
2023-02-02 17:00:42 -05:00
Michael
facd64a14b
All test stuff ( #88 )
...
* first pass use tests/sdk-tests/run-tests.sh in github action
* - -> _
* diagnostic env step
* diagnostic env step
* diagnostic env step does not support cwd
* checkout not preserved between actions
* ./ missing
* start built containers
* missing unmarshalling of content bytes before encoding and generation of CID
* unchecked error complaint from linter
* golang linting is really picky
* utils/json test for comparing known, but deprecated method to new implementation
* try curl (retval 0) instead of wget (retval 8) for 404 that is returned
* missing curl for health check
* use feature branch for laconic-sdk... UNDO THIS LATER
* checkout is done from inside of container, rather than copied in from filesystem. checking out dev branch for now
* docker network inspect for diagnostic
* docker network inspect for diagnostic missing arg
* listen on 0.0.0.0 specfically
* trying localhost
* try host mode network
* host mode breaks name resolution of containers
* manual service check in laconicd container for diagnostic
* revert ListenAndServe
* sleep and docker logs... appears endpoint is not coming up maybe?
* disable fail_ci on codecov error... it is unstable
* turn codecov back to fail on error true to avoid invisible failure.
* Cleanup for whitespace and require.NoError in test
* new json util test, turning off codecov fails CI, and gitignore for test artifacts
2023-01-30 16:59:13 -05:00
iszubok
6945792aea
Merge pull request #84 from cerc-io/0-7-0-upgrade-guide
...
v0.6.0 -> v0.7.0 upgrade guide
2023-01-20 09:25:25 +02:00
Ivan Zubok
5af22471a8
review changes
2023-01-18 18:50:22 +00:00
Ivan Zubok
5e7a890adb
0.6.0 -> 0.7.0 upgrade guide
2023-01-18 17:19:15 +00:00
Zach
9ec237e41f
Merge pull request #80 from cerc-io/zramsay-patch-1
...
Update README with ##Usage
2023-01-11 19:18:16 -05:00