Skip to content

alexpdp7/zqxjkcrud

Repository files navigation

Demo

You need to use Java 17.

$ mvn spring-boot:run

This will start the application with a Docker test database defined at src/main/resources/sample/schema.sql with credentials admin/admin.

Use the run-with-podman script to run the previous command with podman.

Usage

Database selection

$ mvn spring-boot:run \
        -Dspring-boot.run.arguments="\
        --spring.datasource.url=<JDBC_URL> \
        --spring.datasource.driver-class-name=<DRIVER_CLASS> \
        --zqxjk.schema=<SCHEMA_WITH_ZQXJK>"

OpenID Connect with Ipsilon

Note that by default, Ipsilon doesn't allow non-https redirect URIs.

Patch /usr/lib/python3.9/site-packages/ipsilon/providers/openidc/provider.py here https://pagure.io/ipsilon/blob/master/f/ipsilon/providers/openidc/provider.py#_143 so that you can test easily.

Use the following environment variables:

SPRING_SECURITY_OAUTH2_CLIENT_REGISTRATION_IPSILON_CLIENT_ID=bar
SPRING_SECURITY_OAUTH2_CLIENT_REGISTRATION_IPSILON_CLIENT_SECRET=secret
SPRING_SECURITY_OAUTH2_CLIENT_REGISTRATION_IPSILON_SCOPE=openid,profile
SPRING_SECURITY_OAUTH2_CLIENT_REGISTRATION_IPSILON_REDIRECT_URI=APPLICATION_BASE/login/oauth2/code/login-client
SPRING_SECURITY_OAUTH2_CLIENT_PROVIDER_IPSILON_ISSUER_URI=BASE_IPSILON_URL/openidc/

Containers

Container images are provided here: https://quay.io/repository/alexpdp7/zqxjkcrud

K8S

A tool is included to generate K8S manifests from a declarative YAML file.

$ podman run -i --rm --entrypoint zqxjkcrud-manifest-builder quay.io/alexpdp7/zqxjkcrud:$tag <manifest-builder/sample-definition.yaml

See https://github.com/alexpdp7/alexpdp7/tree/master/personal_infra/playbooks/roles/zqxjkcrud for an Ansible role.

Hacking

Run tests (including integration tests) using mvn test.

About

A declarative, coder-friendly CRUD system

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published