Sign inSign up

sbx/bc-basic-auth:latest

Multi-platform
Manifest digest

sha256:47ad9bf8cde000b554a843f21b883171c8a36b7f93e1490a2d6aaaf9bd3b3524

Last pushed

about 12 hours by sbx

Type

Sandbox Kit

Manifest digest

sha256:47ad9bf8cde000b554a843f21b883171c8a36b7f93e1490a2d6aaaf9bd3b3524

yaml
schemaVersion: "3"
displayName: Business Central authentication
description: Allows access to a Business Central backend and lets the sandbox proxy inject Basic auth credentials for it. The credentials stay on the host.
version: 1.0.0
kind: mixin
capabilities:
    - type: com.docker.sandbox/network-policy@1
      config:
        runtime:
            allow:
                - ${{ kit.args.host }}
    - type: com.docker.sandbox/credential@1
      config:
        apiKey:
            inject:
                - domain: ${{ kit.args.host }}
                  format: Basic %s
                  header: Authorization
        phase: runtime
        service: microsoft-bc
      description: Business Central username and password, stored on the host as base64 of `user:password`; the proxy injects it as Basic auth on requests to the backend.
args:
    host:
        required: true
        description: Hostname of the Business Central backend, e.g. bc.example.com
        pattern: ^[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)+$