Skip to content
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

Make use of zfunction and zstream in streampay #166

Closed
wants to merge 22 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
7391dfd
Add `auth` & `storage` api defination (#118)
ankitk-me Oct 25, 2024
1f5c1bb
`/auth/users` local platform API implementation (#131)
ankitk-me Nov 12, 2024
5ded286
`/storage` local platform API (#132)
ankitk-me Nov 13, 2024
2e45bc9
`/auth/sso/providers` local platform api (#138)
ankitk-me Nov 17, 2024
40927e0
Support pgsql over websocket for admin service (#140)
ankitk-me Nov 19, 2024
40582e4
update `asyncapi` command to support `read-only` (#143)
ankitk-me Nov 27, 2024
5e645cf
Upgrade zilla version (#146)
jfallows Dec 2, 2024
14fc718
Merge branch 'develop' into feature/local-platform-api
jfallows Dec 3, 2024
f9daa0a
Merge branch 'develop' into feature/local-platform-api
jfallows Dec 3, 2024
40c05a4
Merge branch 'develop' into feature/local-platform-api
jfallows Dec 3, 2024
e13f8fd
selectively disabling unused compose services (#152)
ankitk-me Dec 12, 2024
b5fe29d
update `config list` command to `config show` (#151)
ankitk-me Dec 12, 2024
8dadb68
Support retention of state across `zillabase` (#141)
ankitk-me Dec 16, 2024
b70e965
Merge branch 'develop' into feature/local-platform-api
jfallows Dec 17, 2024
8b2823a
Bootstrap Risingwave `zb_catalog` (#155)
jfallows Dec 18, 2024
0bf85f8
Update migration to use ZVIEW and ZTABLE (#156)
akrambek Dec 18, 2024
7e10003
Unify project layout for zillabase services (#157)
jfallows Dec 19, 2024
114bce3
Enable http cross-origin policy for admin service (#161)
jfallows Dec 19, 2024
cb7eafd
Upgrade zilla version
jfallows Dec 20, 2024
6633df5
Upgrade zilla version
jfallows Dec 20, 2024
c06eb5d
quickstart example (#163)
ankitk-me Jan 1, 2025
6d79337
Make use of zfunction and zstream
akrambek Jan 8, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
535 changes: 463 additions & 72 deletions api/openapi.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,14 @@ public final class ZillabaseAdminConfig
http_server:
type: http
kind: server
options:
access-control:
policy: cross-origin
routes:
- when:
- headers:
upgrade: websocket
exit: ws_server
- when:
- headers:
:scheme: http
Expand Down Expand Up @@ -141,48 +148,48 @@ public final class ZillabaseAdminConfig
exit: apicurio_http_client
- when:
- headers:
:method: PUT
:scheme: http
:authority: localhost:7184
:path: /v1/asyncapis/{id}
:path: /v1/auth/sso/providers
with:
headers:
overrides:
:authority: ${{env.APICURIO_HOST}}:${{env.APICURIO_PORT}}
:path: /apis/registry/v2/groups/${{env.REGISTRY_GROUP_ID}}/artifacts/${params.id}
exit: apicurio_http_client
:authority: ${{env.AUTH_ADMIN_HOST}}:${{env.AUTH_ADMIN_PORT}}
exit: auth_http_client
- when:
- headers:
:method: DELETE
:scheme: http
:authority: localhost:7184
:path: /v1/asyncapis/{id}
:path: /v1/auth/sso/providers/*
with:
headers:
overrides:
:authority: ${{env.APICURIO_HOST}}:${{env.APICURIO_PORT}}
:path: /apis/registry/v2/groups/${{env.REGISTRY_GROUP_ID}}/artifacts/${params.id}
exit: apicurio_http_client
:authority: ${{env.AUTH_ADMIN_HOST}}:${{env.AUTH_ADMIN_PORT}}
exit: auth_http_client
- when:
- headers:
:scheme: http
:authority: localhost:7184
:path: /v1/sso
:path: /v1/auth/users
with:
headers:
overrides:
:authority: ${{env.SSO_ADMIN_HOST}}:${{env.SSO_ADMIN_PORT}}
exit: sso_http_client
:authority: ${{env.AUTH_ADMIN_HOST}}:${{env.AUTH_ADMIN_PORT}}
exit: auth_http_client
- when:
- headers:
:scheme: http
:authority: localhost:7184
:path: /v1/sso/*
:path: /v1/auth/users/*
with:
headers:
overrides:
:authority: ${{env.SSO_ADMIN_HOST}}:${{env.SSO_ADMIN_PORT}}
exit: sso_http_client
:authority: ${{env.AUTH_ADMIN_HOST}}:${{env.AUTH_ADMIN_PORT}}
exit: auth_http_client
- when:
- headers:
:path: /v1/storage/*
exit: http_filesystem_proxy
config_http_client:
type: http
kind: client
Expand All @@ -203,16 +210,54 @@ public final class ZillabaseAdminConfig
options:
host: ${{env.APICURIO_HOST}}
port: ${{env.APICURIO_PORT}}
sso_http_client:
auth_http_client:
type: http
kind: client
exit: sso_tcp_client
sso_tcp_client:
exit: auth_tcp_client
auth_tcp_client:
type: tcp
kind: client
options:
host: ${{env.SSO_ADMIN_HOST}}
port: ${{env.SSO_ADMIN_PORT}}
host: ${{env.AUTH_ADMIN_HOST}}
port: ${{env.AUTH_ADMIN_PORT}}
http_filesystem_proxy:
type: http-filesystem
kind: proxy
routes:
- when:
- method: GET
path: /v1/storage/buckets
- method: POST
path: /v1/storage/buckets/{bucket}
- method: DELETE
path: /v1/storage/buckets/{bucket}
exit: filesystem_server
with:
directory: ${params.bucket}
- when:
- method: GET
path: /v1/storage/objects/{bucket}/{path}
- method: GET
path: /v1/storage/objects/{bucket}
- method: POST
path: /v1/storage/objects/{bucket}/{path}
- method: PUT
path: /v1/storage/objects/{bucket}/{path}
- method: DELETE
path: /v1/storage/objects/{bucket}/{path}
exit: filesystem_server
with:
directory: ${params.bucket}
path: ${params.path}
ws_server:
type: ws
kind: server
exit: pgsql_server
filesystem_server:
type: filesystem
kind: server
options:
location: /var/storage/
telemetry:
exporters:
stdout_logs_exporter:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@

public final class ZillabaseApicurioConfig
{
private static final String DEFAULT_APICURIO_TAG = "2.6.x-release";
private static final String DEFAULT_APICURIO_URL = "http://apicurio.zillabase.dev:8080";
private static final String DEFAULT_APICURIO_TAG = "3.0.4";
private static final String DEFAULT_APICURIO_GROUP_ID = "default";

public static final String DEFAULT_APICURIO_URL = "http://apicurio.zillabase.dev:8080";

public String tag = DEFAULT_APICURIO_TAG;
public String url = DEFAULT_APICURIO_URL;
public String groupId = DEFAULT_APICURIO_GROUP_ID;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@

import io.aklivity.zillabase.cli.internal.Zillabase;

public final class ZillabaseSsoConfig
public final class ZillabaseAuthConfig
{
private static final String DEFAULT_SSO_TAG = Zillabase.version();
public static final int DEFAULT_SSO_PORT = 7185;
public static final String DEFAULT_SSO_HOST = "sso.zillabase.dev";
private static final String DEFAULT_AUTH_TAG = Zillabase.version();
public static final int DEFAULT_AUTH_PORT = 7185;
public static final String DEFAULT_AUTH_HOST = "auth.zillabase.dev";

public String tag = DEFAULT_SSO_TAG;
public String tag = DEFAULT_AUTH_TAG;
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ public final class ZillabaseConfig
public ZillabaseRisingWaveConfig risingwave = new ZillabaseRisingWaveConfig();
public ZillabaseZillaConfig zilla = new ZillabaseZillaConfig();
public ZillabaseKeycloakConfig keycloak = new ZillabaseKeycloakConfig();
public ZillabaseSsoConfig sso = new ZillabaseSsoConfig();
public ZillabaseAuthConfig auth = new ZillabaseAuthConfig();
public ZillabaseUdfConfig udf = new ZillabaseUdfConfig();
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

public class ZillabaseZillaConfig
{
public static final String DEFAULT_ZILLA_TAG = "0.9.105";
public static final String DEFAULT_ZILLA_TAG = "0.9.114";

private static final List<ZillabaseZillaPortConfig> DEFAULT_PORT_LIST = List.of(
new ZillabaseZillaPortConfig()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,12 @@
import com.github.rvesse.airline.help.Help;

import io.aklivity.zillabase.cli.internal.commands.asyncapi.ZillabaseAsyncapiCommand;
import io.aklivity.zillabase.cli.internal.commands.asyncapi.add.ZillabaseAsyncapiAddCommand;
import io.aklivity.zillabase.cli.internal.commands.asyncapi.list.ZillabaseAsyncapiListCommand;
import io.aklivity.zillabase.cli.internal.commands.asyncapi.remove.ZillabaseAsyncapiRemoveCommand;
import io.aklivity.zillabase.cli.internal.commands.asyncapi.show.ZillabaseAsyncapiShowCommand;
import io.aklivity.zillabase.cli.internal.commands.config.ZillabaseConfigCommand;
import io.aklivity.zillabase.cli.internal.commands.config.add.ZillabaseConfigAddCommand;
import io.aklivity.zillabase.cli.internal.commands.config.list.ZillabaseConfigListCommand;
import io.aklivity.zillabase.cli.internal.commands.config.remove.ZillabaseConfigRemoveCommand;
import io.aklivity.zillabase.cli.internal.commands.config.show.ZillabaseConfigShowCommand;
import io.aklivity.zillabase.cli.internal.commands.init.ZillabaseInitCommand;
import io.aklivity.zillabase.cli.internal.commands.migration.ZillabaseMigrationCommand;
import io.aklivity.zillabase.cli.internal.commands.migration.add.ZillabaseMigrationAddCommand;
Expand All @@ -49,10 +47,8 @@
defaultCommand = ZillabaseAsyncapiCommand.Help.class,
commands =
{
ZillabaseAsyncapiAddCommand.class,
ZillabaseAsyncapiListCommand.class,
ZillabaseAsyncapiShowCommand.class,
ZillabaseAsyncapiRemoveCommand.class
ZillabaseAsyncapiShowCommand.class
}),
@Group(
name = "config",
Expand All @@ -61,7 +57,7 @@
commands =
{
ZillabaseConfigAddCommand.class,
ZillabaseConfigListCommand.class,
ZillabaseConfigShowCommand.class,
ZillabaseConfigRemoveCommand.class
}),
@Group(
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* Copyright 2024 Aklivity Inc
*
* Licensed under the Aklivity Community License (the "License"); you may not use
* this file except in compliance with the License. You may obtain a copy of the
* License at
*
* https://www.aklivity.io/aklivity-community-license/
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package io.aklivity.zillabase.cli.internal.asyncapi;

public class AsyncapiSpecRegisterResponse
{
public String id;
}

This file was deleted.

Loading
Loading