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

Recompose the security overview and built-in authentication content to diataxis doc templates #30422

Conversation

michelle-purcell
Copy link
Contributor

@michelle-purcell michelle-purcell commented Jan 17, 2023

Recompose the existing QUARKUS SECURITY OVERVIEW [security-overview-concept.adoc] and BUILT-IN AUTHENTICATION SUPPORT [security-built-in-authentication-support-concept.adoc] guides into the diataxis framework .

The net...

  • Moved the == Security architecture section into a new file on its own called security-architecture-concept.adoc.
  • Moved all sections relating to authentication mechanisms into a new file called security-authentication-mechanisms.adoc.
  • Moved == Identity providers into a new file called security-identity-providers.adoc.
  • Moved most of Built-in authentication support content into 2 new files:
    • security-proactive-authentication-concept.adoc
    • security-authentication-mechanisms.adoc.
  • Restructured the Security overview content and links.
  • Fixed existing links to the content that was moved.

Note: Identified style and grammar enhancements that also need to be fixed. For now, this PR focuses on moving and restructuring as a priority. Will address the other content style issues in another iteration.

Ref: QDOCS-86 & (some of) QDOCS-88

In other contexts, it is possible to have other parallel representations of the same information or parts of it, for example, `SecurityContext`
for JAX-RS or `JsonWebToken` for JSON Web Tokens (JWT).

== Authentication mechanisms
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: All of this H2 section in security-overview-concept.adoc is now moved into a new concept doc file in this PR named security-authentication-mechanisms-concept.adoc.

|No
|===

[[identity-providers]]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: All of this H2 section of security-overview-concept.adoc is now moved as-is into a new concept topic in this PR named security-identity-providers-concept.adoc.


* `HttpAuthenticationMechanism`
* `IdentityProvider`
* `SecurityidentityAugmentor`

For more information about customizing Quarkus Security including reactive security, and how to register a security provider, see xref:security-customization.adoc[Security customization].

== Combining authentication mechanisms
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: All of this H2 section of security-overview-concept.adoc is now moved (as-is) to the end of a new concept topic in this PR named security-authentication-mechanisms-concept.adoc.

@michelle-purcell michelle-purcell force-pushed the QDOCS-86-recompose-security-overview-page branch 2 times, most recently from 4d0e509 to 521b869 Compare January 18, 2023 22:48
@@ -438,7 +193,3 @@ You can optionally apply a time limit to individual suppressions by adding an ex
`<suppress until="2022-01-01Z">...</suppress>`
You can adjust the expiry date if you need to.

== Quarkus Security testing
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This H2 section is moved further up within this overview topic. (Eventually this could evolve into a bigger how-to / tutorial.)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI, we already have a security-testing.adoc, this section is only meant to link to it

@michelle-purcell michelle-purcell force-pushed the QDOCS-86-recompose-security-overview-page branch 2 times, most recently from 00b967e to 5243d00 Compare January 20, 2023 16:38
@quarkus-bot quarkus-bot bot added area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins area/oidc labels Jan 20, 2023
@michelle-purcell michelle-purcell force-pushed the QDOCS-86-recompose-security-overview-page branch 3 times, most recently from 29a7f46 to c45c2df Compare January 20, 2023 16:56
@michelle-purcell michelle-purcell changed the title WIP Qdocs 86 recompose security overview page Recompose the security overview and built-in authentication content to diataxis doc templates Jan 20, 2023
@michelle-purcell michelle-purcell force-pushed the QDOCS-86-recompose-security-overview-page branch 2 times, most recently from 16da0f5 to 04a223c Compare January 20, 2023 17:30
@michelle-purcell
Copy link
Contributor Author

@sberyozkin - I have now pushed more commits to resolve the comments so far and complete the link updates that were required. This PR is now ready for final review. Thanks.

@michelle-purcell
Copy link
Contributor Author

@rolfedh , @inoxx03 , @sheilamjones , @MichalMaler, @ebullient, @any-other-community-sme-interested:
FYI - This content restructuring PR is now ready for review.
(The focus here is on restructuring into diataxis. Additional styling and new content will be needed here but in the next iteration of changes.)

@michelle-purcell michelle-purcell force-pushed the QDOCS-86-recompose-security-overview-page branch 2 times, most recently from cd1451c to 054a2e3 Compare January 20, 2023 17:45
@quarkus-bot

This comment has been minimized.

@michelle-purcell michelle-purcell force-pushed the QDOCS-86-recompose-security-overview-page branch from 054a2e3 to 32ed6fd Compare January 20, 2023 18:27
@quarkus-bot quarkus-bot bot added area/cli Related to quarkus cli (not maven/gradle/etc.) area/core labels Jan 20, 2023
@michelle-purcell michelle-purcell force-pushed the QDOCS-86-recompose-security-overview-page branch from 32ed6fd to e858886 Compare January 20, 2023 18:32
@quarkus-bot

This comment has been minimized.

@michelle-purcell
Copy link
Contributor Author

@MichalMaler - Thanks so much for your review and great suggestions. I have fixed all suggestions and marked some lines for further style improvements.

@michelle-purcell
Copy link
Contributor Author

@sberyozkin - Thank you for your thorough review and feedback 💯 . I have fixed all open comments. There's just one open comment from @mmaler that I fixed above that might need your SME input.

Copy link
Contributor

@rolfedh rolfedh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sberyozkin
Copy link
Member

Hi @michelle-purcell thanks, I only did a few comments, thanks again for preparing this PR, the open but fixed comment looks fine. There is some doc bulid issue, please fix tomorrow and we will merge, thanks

@sberyozkin sberyozkin self-requested a review January 23, 2023 22:44
@sberyozkin
Copy link
Member

Will be ready to go once the build failure is fixed

@michelle-purcell michelle-purcell force-pushed the QDOCS-86-recompose-security-overview-page branch from 02aae57 to e32f39a Compare January 24, 2023 10:21
@michelle-purcell
Copy link
Contributor Author

@sberyozkin - All conflicts are now resolved. I think we are ready to merge. Thanks 👍

@quarkus-bot

This comment has been minimized.

@michelle-purcell michelle-purcell force-pushed the QDOCS-86-recompose-security-overview-page branch 2 times, most recently from 1174e5f to bbc05e0 Compare January 24, 2023 11:46
@sberyozkin
Copy link
Member

Hi @michelle-purcell you might've used the wrong sha to rebase against, 3c1d04c is now in the list of commits.
@gsmet Hi Guillaume, can you please advise how to fix it ?

@michelle-purcell michelle-purcell force-pushed the QDOCS-86-recompose-security-overview-page branch from bbc05e0 to a359f7a Compare January 24, 2023 11:52
@sberyozkin
Copy link
Member

Cool, thanks for fixing it so fast :-)

…plates

Recomposing security overview content to diataxis

Recomposing security overview content to diataxis

Addressed Sergey's review comments

Further enhancements

fix typos grammar

Fixed broken links after recomposing to diataxis

Fixed headings

More link fixes

Fix mTLS case

Update docs/src/main/asciidoc/security-architecture-concept.adoc

Co-authored-by: Mickey Maler <mmaler@redhat.com>

Update docs/src/main/asciidoc/security-architecture-concept.adoc

Co-authored-by: Mickey Maler <mmaler@redhat.com>

Update docs/src/main/asciidoc/security-identity-providers-concept.adoc

Co-authored-by: Mickey Maler <mmaler@redhat.com>

Update docs/src/main/asciidoc/security-architecture-concept.adoc

Co-authored-by: Mickey Maler <mmaler@redhat.com>

Update docs/src/main/asciidoc/security-identity-providers-concept.adoc

Co-authored-by: Mickey Maler <mmaler@redhat.com>

Update docs/src/main/asciidoc/security-proactive-authentication-concept.adoc

Co-authored-by: Mickey Maler <mmaler@redhat.com>

Update docs/src/main/asciidoc/security-proactive-authentication-concept.adoc

Co-authored-by: Mickey Maler <mmaler@redhat.com>

Update docs/src/main/asciidoc/security-proactive-authentication-concept.adoc

Co-authored-by: Mickey Maler <mmaler@redhat.com>

Update docs/src/main/asciidoc/security-proactive-authentication-concept.adoc

Co-authored-by: Mickey Maler <mmaler@redhat.com>

Update docs/src/main/asciidoc/security-proactive-authentication-concept.adoc

Co-authored-by: Mickey Maler <mmaler@redhat.com>

Some style enhancements

Update docs/src/main/asciidoc/security-proactive-authentication-concept.adoc

Co-authored-by: Mickey Maler <mmaler@redhat.com>

Style enhancement: reduce wordiness

tweak

Fixed further comments

asciidocfix and added link

Fixed some typos

Fixed build error

2023-01-24T11:15:40.1095928Z [ERROR] asciidoctor: WARN: security-proactive-authentication-concept.adoc: line 86: section title out of sequence: expected level 1, got level 2
@michelle-purcell michelle-purcell force-pushed the QDOCS-86-recompose-security-overview-page branch from a359f7a to fb1da0f Compare January 24, 2023 12:17
@quarkus-bot
Copy link

quarkus-bot bot commented Jan 24, 2023

✔️ The latest workflow run for the pull request has completed successfully.

It should be safe to merge provided you have a look at the other checks in the summary.

@michelle-purcell
Copy link
Contributor Author

@sberyozkin & @gsmet - by the time I fixed my asciidoc source doc build issue, my branch was out of date! I've since rebased and all looks good now. Can we merge now? Thank you!

@sberyozkin sberyozkin merged commit 3affaf2 into quarkusio:main Jan 24, 2023
@quarkus-bot quarkus-bot bot added this to the 2.17 - main milestone Jan 24, 2023
@michelle-purcell
Copy link
Contributor Author

@sberyozkin - FYI, added the 2.16 backport label to this merged security docs PR also.

@gsmet
Copy link
Member

gsmet commented Feb 28, 2023

I won't backport this one because of too many conflicts.

I think we need to be a lot more conservative about what we backport for documentation. Typos and small changes are OK but definitely not large structural changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/arc Issue related to ARC (dependency injection) area/cli Related to quarkus cli (not maven/gradle/etc.) area/core area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins area/documentation area/oidc area/panache area/reactive-sql-clients area/scheduler area/testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants