第3章 Configuring Apicurio Registry security options


This chapter explains how to set configuration options for Apicurio Registry security. For example, this includes authentication in Red Hat build of Keycloak or Microsoft Azure Active Directory and role-based authorization in Apicurio Registry.

注記

For a list of all available configuration options, see 13章Apicurio Registry configuration reference.

3.1. Configuring Apicurio Registry authentication and authorization with Red Hat build of Keycloak

This section explains how to manually configure authentication and authorization options for Apicurio Registry and Red Hat build of Keycloak.

注記

Alternatively, for details on how to configure these settings automatically, see 「Configuring Apicurio Registry authentication and authorization with Red Hat build of Keycloak」.

The Apicurio Registry web console and core REST API support authentication in Red Hat build of Keycloak based on OAuth and OpenID Connect (OIDC). The same Red Hat build of Keycloak realm and users are federated across the Apicurio Registry web console and core REST API using OpenID Connect so that you only require one set of credentials.

Apicurio Registry provides role-based authorization for default admin, write, and read-only user roles. Apicurio Registry provides content-based authorization at the schema or API level, where only the creator of the registry artifact can update or delete it. Apicurio Registry authentication and authorization settings are disabled by default.

Prerequisites

Procedure

  1. In the Red Hat build of Keycloak Admin Console, create a Red Hat build of Keycloak realm for Apicurio Registry. By default, Apicurio Registry expects a realm name of registry. For details on creating realms, see the the Red Hat build of Keycloak user documentation.
  2. Create a Red Hat build of Keycloak client for the Apicurio Registry API. By default, Apicurio Registry expects the following settings:

    • Client ID: registry-api
    • Client Protocol: openid-connect
    • Access Type: bearer-only

      You can use the defaults for the other client settings.

      注記

      If you are using Red Hat build of Keycloak service accounts, the client Access Type must be confidential instead of bearer-only.

  3. Create a Red Hat build of Keycloak client for the Apicurio Registry web console. By default, Apicurio Registry expects the following settings:

    • Client ID: apicurio-registry
    • Client Protocol: openid-connect
    • Access Type: public
    • Valid Redirect URLs: http://my-registry-url:8080/*
    • Web Origins: +

      You can use the defaults for the other client settings.

  4. In your Apicurio Registry deployment on OpenShift, set the following Apicurio Registry environment variables to configure authentication using Red Hat build of Keycloak:

    表3.1 Configuration for Apicurio Registry authentication with Red Hat build of Keycloak
    Environment variableDescriptionTypeDefault

    QUARKUS_OIDC_TENANT_ENABLED

    Enables authentication for Apicurio Registry. When set to true, the environment variables that follow are required for authentication using Red Hat build of Keycloak.

    String

    false

    QUARKUS_OIDC_AUTH_SERVER_URL

    The URL of the Red Hat build of Keycloak authentication server. For example, http://localhost:8080.

    String

    -

    QUARKUS_OIDC_CLIENT_ID

    The client ID for the Apicurio Registry REST API.

    String

    registry-api

    APICURIO_UI_AUTH_OIDC_CLIENT-ID

    The client ID for the Apicurio Registry web console.

    String

    apicurio-registry

    ヒント

    For an example of setting environment variables on OpenShift, see 「Configuring Apicurio Registry health checks on OpenShift」.

  5. Set the following option to true to enable Apicurio Registry user roles in Red Hat build of Keycloak:

    表3.2 Configuration for Apicurio Registry role-based authorization
    Environment variableJava system propertyTypeDefault value

    APICURIO_AUTH_ROLE-BASED-AUTHORIZATION

    apicurio.auth.role-based-authorization

    Boolean

    false

  6. When Apicurio Registry user roles are enabled, you must assign Apicurio Registry users to at least one of the following default user roles in your Red Hat build of Keycloak realm:

    表3.3 Default user roles for registry authentication and authorization
    RoleRead artifactsWrite artifactsGlobal rulesSummary

    sr-admin

    Yes

    Yes

    Yes

    Full access to all create, read, update, and delete operations.

    sr-developer

    Yes

    Yes

    No

    Access to create, read, update, and delete operations, except configuring global rules. This role can configure artifact-specific rules.

    sr-readonly

    Yes

    No

    No

    Access to read and search operations only. This role cannot configure any rules.

  7. Set the following to true to enable owner-only authorization for updates to schema and API artifacts in Apicurio Registry:

    表3.4 Configuration for owner-only authorization
    Environment variableJava system propertyTypeDefault value

    APICURIO_AUTH_OWNER-ONLY-AUTHORIZATION_LIMIT-GROUP-ACCESS

    apicurio.auth.owner-only-authorization.limit-group-access

    Boolean

    false

Red Hat logoGithubRedditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

Red Hat ドキュメントについて

Legal Notice

Theme

© 2026 Red Hat
トップに戻る