Skip to content

Commit d8e0ef4

Browse files
themr0cdeerskindoll
andcommitted
Apply suggestions from code review
Co-authored-by: Jana Vrbkova <[email protected]> Signed-off-by: Fabrice Flore-Thébault <[email protected]>
1 parent 76fae45 commit d8e0ef4

File tree

19 files changed

+126
-111
lines changed

19 files changed

+126
-111
lines changed

modules/authentication/proc-creating-a-custom-transformer-to-provision-users-from-rhbk-to-the-software-catalog.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Customize how {product} provisions users and groups to {product} software catalo
77
by creating a backend module that uses the `keycloakTransformerExtensionPoint` to offer custom user and group transformers for the Keycloak backend.
88

99
.Prerequisites
10-
* You have xref:enabling-user-authentication-with-rhbk[enabled provisioning users from {rhbk-brand-name} ({rhbk}) to the software catalog].
10+
* You have xref:enabling-user-authentication-with-rhbk-with-optional-steps[enabled provisioning users from {rhbk-brand-name} ({rhbk}) to the software catalog].
1111

1212
.Procedure
1313
. Create a new backend module with the `yarn new` command.

modules/authentication/proc-enabling-user-authentication-with-github-as-an-auxiliary-authentication-provider.adoc

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@
33
[id="enabling-user-authentication-with-github-as-an-auxiliary-authentication-provider"]
44
= Enabling user authentication with GitHub as an auxiliary authentication provider
55

6-
To allow users to access GitHub templates or plugins that require GitHub authentication, configure GitHub as an auxiliary authentication provider.
7-
This method relies on a primary authentication provider for user identity management, and skips resolving user identity from this provider.
6+
When you are using a primary authentication provider other than GitHub to provision user and group identities to the {product} software catalog, and establish {product-short} user sessions, and this authentication provider is not configured to give access to GitHub, users might miss permissions to access GitHub templates or plugins that require GitHub authentication.
87

9-
.Prerequisites
10-
* You have {configuring-book-link}[added a custom {product-short} application configuration] with another authentication provider enabled, and have enough permissions to change it.
8+
Allow users to access these features by configuring GitHub as an auxiliary authentication provider.
119

10+
.Prerequisites
1211
include::snip-enabling-user-authentication-with-github-common-prerequisites.adoc[]
12+
* You have configured a primary authentication provider to provision user and group identities to the {product} software catalog, and establish {product-short} user sessions.
13+
1314

1415
.Procedure
15-
. To set up the GitHub authentication provider as an auxiliary authentication provider, add the `auth.providers.github` section to your `{my-app-config-file}` file:
16+
. Add the `auth.providers.github` section to your `{my-app-config-file}` file:
1617
+
1718
[source,yaml]
1819
----
@@ -33,8 +34,12 @@ Enter the configured secret variable name: `$\{GITHUB_CLIENT_ID}`.
3334
Enter the configured secret variable name: `$\{GITHUB_CLIENT_SECRET}`.
3435

3536
`disableIdentityResolution`::
36-
Enter `true`to skip user identity resolution for this provider to enable sign-in from an auxiliary authentication provider.
37+
Enter `true` to skip user identity resolution for this provider to enable sign-in from an auxiliary authentication provider.
38+
+
39+
[WARNING]
40+
====
3741
Do not enable this setting on the primary authentication provider you plan on using for sign-in and identity management.
42+
====
3843

3944
.Verification
4045
. Go to the {product-short} login page.
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
:_mod-docs-content-type: PROCEDURE
22

3-
[id="enabling-user-authentication-with-github"]
3+
[id="enabling-user-authentication-with-github-with-mandatory-steps"]
44
= Enabling user authentication with GitHub
55

66
Authenticate users with GitHub by provisioning the users and groups from GitHub to the {product-short} software catalog, and configuring the GitHub authentication provider in {product}.
77

8-
.Prerequisites
9-
* You {configuring-book-link}[added a custom {product-short} application configuration], and have enough permissions to change it.
8+
include::snip-enabling-user-authentication-with-github-common-prerequisites.adoc[]
9+
1010
include::snip-enabling-user-authentication-with-github-common-first-steps.adoc[]
1111
+
12-
Optional: Consider adding optional fields.
13-
See {configuring-book-link}[{configuring-book-title}].
12+
Optional: To configure optional fields, see {configuring-book-link}[{configuring-book-title}].
1413

1514
include::snip-enabling-user-authentication-with-github-common-verification-steps.adoc[]

modules/authentication/proc-enabling-user-authentication-with-github-with-optional-steps.adoc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
:_mod-docs-content-type: PROCEDURE
22

3-
[id="enabling-user-authentication-with-github"]
4-
= Enabling user authentication with GitHub
3+
[id="enabling-user-authentication-with-github-with-optional-steps"]
4+
= Enabling user authentication with GitHub, with optional steps
55

66
Authenticate users with GitHub by provisioning the users and groups from GitHub to the {product-short} software catalog, and configuring the GitHub authentication provider in {product}.
77

8-
.Prerequisites
9-
* You {configuring-book-link}[added a custom {product-short} application configuration], and have enough permissions to change it.
108
include::snip-enabling-user-authentication-with-github-common-prerequisites.adoc[]
119

1210
include::snip-enabling-user-authentication-with-github-common-first-steps.adoc[]
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
:_mod-docs-content-type: PROCEDURE
22

3-
[id="enabling-user-authentication-with-microsoft-azure"]
3+
[id="enabling-user-authentication-with-microsoft-azure-with-mandatory-steps"]
44
= Enabling user authentication with {azure-brand-name}
55

66
include::snip-enabling-user-authentication-with-microsoft-azure-common-first-steps.adoc[]
77
+
8-
Optional: Add optional fields.
9-
See {configuring-book-link}[{configuring-book-title}].
8+
Optional: To configure optional fields, see {configuring-book-link}[{configuring-book-title}].
109

1110
include::snip-enabling-user-authentication-with-microsoft-azure-common-authentication-provider-steps.adoc[]
1211
+
13-
Optional: Add optional fields.
14-
See {configuring-book-link}[{configuring-book-title}].
12+
Optional: To configure optional fields, see {configuring-book-link}[{configuring-book-title}].
1513

1614
include::snip-enabling-user-authentication-with-microsoft-azure-common-verification-steps.adoc[]

modules/authentication/proc-enabling-user-authentication-with-microsoft-azure-with-optional-steps.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
:_mod-docs-content-type: PROCEDURE
22

3-
[id="enabling-user-authentication-with-microsoft-azure"]
4-
= Enabling user authentication with {azure-brand-name}
3+
[id="enabling-user-authentication-with-microsoft-azure-with-optional-steps"]
4+
= Enabling user authentication with {azure-brand-name}, with optional steps
55

66
include::snip-enabling-user-authentication-with-microsoft-azure-common-first-steps.adoc[]
77

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
:_mod-docs-content-type: PROCEDURE
2-
[id="enabling-user-authentication-with-rhbk"]
2+
[id="enabling-user-authentication-with-rhbk-with-mandatory-steps"]
33
= Enabling user authentication with {rhbk-brand-name} ({rhbk})
44

5+
56
include::snip-enabling-user-authentication-with-rhbk-common-first-steps.adoc[]
67
+
7-
Optional: Add optional fields.
8-
See {configuring-book-link}[{configuring-book-title}].
8+
Optional: To configure optional fields, see {configuring-book-link}[{configuring-book-title}].
99

10+
. {empty}
11+
+
12+
--
1013
include::snip-enabling-user-authentication-with-rhbk-common-authentication-provider-steps.adoc[]
1114
+
12-
Optional: Add optional fields.
13-
See {configuring-book-link}[{configuring-book-title}].
15+
Optional: To configure optional fields, see {configuring-book-link}[{configuring-book-title}].
16+
--
1417

1518
include::snip-enabling-user-authentication-with-rhbk-verification-steps.adoc[]

modules/authentication/proc-enabling-user-authentication-with-rhbk-with-optional-steps.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
:_mod-docs-content-type: PROCEDURE
2-
[id="enabling-user-authentication-with-rhbk"]
3-
= Enabling user authentication with {rhbk-brand-name} ({rhbk})
2+
[id="enabling-user-authentication-with-rhbk-with-optional-steps"]
3+
= Enabling user authentication with {rhbk-brand-name} ({rhbk}), with optional steps
44

55
include::snip-enabling-user-authentication-with-rhbk-common-first-steps.adoc[]
66

modules/authentication/snip-enabling-user-authentication-with-github-common-first-steps.adoc

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
11
:_mod-docs-content-type: SNIPPET
2-
3-
Authenticate users with GitHub by provisioning the users and groups from GitHub to the {product-short} software catalog, and configuring the GitHub authentication provider in {product}.
4-
5-
.Prerequisites
6-
* You {configuring-book-link}[added a custom {product-short} application configuration], and have enough permissions to change it.
7-
* You have enough permissions in GitHub to create and manage a link:https://docs.github.com/en/apps/overview[GitHub App].
8-
Alternatively, you can ask your GitHub administrator to prepare the required GitHub App.
9-
102
.Procedure
11-
. To allow {product-short} to authenticate with GitHub, create a GitHub App.
12-
Opt for a GitHub App instead of an OAuth app to use fine-grained permissions, use short-lived tokens, scale with the number of installations by avoiding rate limits, and have a more transparent integration by avoiding to request user input.
3+
. Allow {product-short} to authenticate with GitHub, by creating a GitHub App.
4+
+
5+
Use a GitHub App instead of an OAuth app to use fine-grained permissions, use short-lived tokens, scale with the number of installations by avoiding rate limits, and have a more transparent integration by avoiding to request user input.
136

147
.. link:https://docs.github.com/en/apps/creating-github-apps/registering-a-github-app/registering-a-github-app[Register a GitHub App] with the following configuration:
158

@@ -55,19 +48,17 @@ Enter the GitHub host domain: `github.com`.
5548
`GITHUB_ORG`::
5649
Enter your GitHub organization name, such as `__<your_github_organization_name>__`.
5750

58-
. Enable the GitHub organization provisioning plugin (`backstage-plugin-catalog-backend-module-github-org`).
51+
. Enable the GitHub catalog provider plugin in your `dynamic-plugins.yaml` file.
5952
This plugin imports GitHub users and groups to the {product-short} software catalog.
6053
+
61-
`dynamic-plugins.yaml` file fragment:
62-
+
6354
[source,yaml]
6455
----
6556
plugins:
6657
- package: './dynamic-plugins/dist/backstage-plugin-catalog-backend-module-github-org'
6758
disabled: false
6859
----
6960

70-
. Provision GitHub users and groups to the {product-short} software catalog by adding the `catalog.providers.githubOrg` section to your custom {product-short} `{my-app-config-file}` configuration file:
61+
. Enable provisioning GitHub users and groups to the {product-short} software catalog, by adding the GitHub catalog provider section to your `{my-app-config-file}` file:
7162
+
7263
[id=githubProviderId]
7364
[source,yaml]
@@ -89,7 +80,11 @@ catalog:
8980

9081
`id`::
9182
Enter a stable identifier for this provider, such as `githuborg`.
92-
Entities from this provider are associated with this identifier, therefore you must take care not to change it over time since that might lead to orphaned entities or conflicts.
83+
[WARNING]
84+
====
85+
Entities from this provider are associated with this identifier.
86+
Therefore, do not to change it over time since that might lead to orphaned entities or conflicts.
87+
====
9388

9489
`githubUrl`::
9590
Enter the configured secret variable name: `$\{GITHUB_URL}`.
@@ -106,7 +101,7 @@ Enter your schedule timeout, in the ISO duration or "human duration" format.
106101
`schedule.initialDelay`::
107102
Enter your schedule initial delay, in the ISO duration or "human duration" format.
108103

109-
. To set up the GitHub authentication provider, add the `auth.providers.github` section to your `{my-app-config-file}` file:
104+
. Enable the GitHub authentication provider, by adding the GitHub authentication provider section to your `{my-app-config-file}` file:
110105
+
111106
[source,yaml]
112107
----
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
:_mod-docs-content-type: SNIPPET
2+
.Prerequisites
23
* You have enough permissions in GitHub to create and manage a link:https://docs.github.com/en/apps/overview[GitHub App].
3-
Alternatively, you can ask your GitHub administrator to prepare the required GitHub App.
4+
+
5+
[TIP]
6+
====
7+
Alternatively, ask your GitHub administrator to prepare the required GitHub App.
8+
====
9+
* You have {configuring-book-link}[added a custom {product-short} application configuration], and have enough permissions to change it.

0 commit comments

Comments
 (0)