-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
85 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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 @@ | ||
nodejs 21.2.0 |
This file contains 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,61 @@ | ||
--- | ||
title: "Release v0.9.0 notes" | ||
description: "UI for managing actions with some database metadata." | ||
summary: "UI for managing actions" | ||
date: 2023-11-18T13:19:00+0100 | ||
draft: false | ||
images: [] | ||
categories: ["News"] | ||
tags: ["release", "krab", "actions", "ui", "auth"] | ||
contributors: ["qbart"] | ||
pinned: false | ||
homepage: false | ||
--- | ||
|
||
Newest release adds UI with simple authentication. UI allows to exececute actions and browse (in a very limited form for now) database metadata. | ||
|
||
Consider following action: | ||
|
||
```hcl | ||
action "db" "create" { | ||
description = "Create database" | ||
arguments { | ||
arg "name" { | ||
description = "Database name" | ||
} | ||
arg "user" { | ||
description = "Database user" | ||
} | ||
} | ||
sql = "CREATE DATABASE {{ .Args.name }} OWNER {{ .Args.user }}" | ||
} | ||
``` | ||
|
||
Action description is a new attribute and is required. | ||
|
||
Normally action would be run with: | ||
|
||
``` | ||
krab action db create -name animals -user api | ||
``` | ||
|
||
But now you can deploy `krab` as a service. It will expose UI on `http://localhost:8888` (you can use ready to use docker image). | ||
|
||
In order to enable http basic authentication you need to set environment variables: | ||
``` | ||
KRAB_AUTH=basic | ||
KRAB_AUTH_BASIC_USERNAME=krab | ||
KRAB_AUTH_BASIC_PASSWORD=secret | ||
``` | ||
|
||
Action list: | ||
![Actions - List](/images/2023/dbaction.png) | ||
|
||
Execute action: | ||
![Actions - Run](/images/2023/dbrun.png) | ||
|
||
Database list: | ||
![Database - List](/images/2023/dblist.png) |
This file contains 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 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 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 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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.