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

Simplify kelon configuration #157

Open
8 tasks
dcseifert opened this issue Jul 16, 2021 · 0 comments
Open
8 tasks

Simplify kelon configuration #157

dcseifert opened this issue Jul 16, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request
Projects

Comments

@dcseifert
Copy link
Contributor

dcseifert commented Jul 16, 2021

The internal configuration process of kelon should be as simple as possible. Therefore following changes have to be made:

  • Remove opa.yml (should be automatically created by kelon)
  • Set Call-Operands default files for all supported datastore (could be overwritten)
  • Merge api.yml and datastore.yml into one config

Following configuration might be used as an example:

configs:
  labels:
    app: Kelon
    region: europe-west3
    environment: development

datastores:
  mysql:
    type: mysql
    connection:
      host: "localhost"
      port: 5432
      database: mysql
      user: mysql
      password: SuperSecure
    metadata:
      default_schema: default
    entity_schemas:
      mysql:
        appstore:
          entities:
            - name: users
            - name: user_followers
              alias: followers

apis:
  - path-prefix: /api
    datastore: mysql
    mappings:
      - path: /.*
        package: default
      # Create article
      - path: /articles
        package: articles
        methods:
          - POST
      # Get articles by author
      - path: /articles
        package: articles
        methods:
          - GET
        queries:
          - author

Following program arguments were also discussed:

  • --policy-dir (optional)
  • --policy-hot-reload (default: true)
  • --config
  • --dry-run (default: false)
  • --default-decision (default: DENY)
@dcseifert dcseifert added this to Backlog in kelon via automation Jul 16, 2021
@dcseifert dcseifert added the enhancement New feature or request label Jul 16, 2021
@dcseifert dcseifert added this to the Capability test milestone Jul 16, 2021
@dcseifert dcseifert self-assigned this Jul 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
kelon
  
Backlog
Development

No branches or pull requests

2 participants