-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Moved KeypairReader Bean creation outside of jwt-opa Library configuration should not get involved in deciding how and where the keys are loaded. Also removed the key properties from the token properties. so as to simplify adding more sources for secrets (e.g., Vault, Azure, etc.). Added fake AWS creds to Test GH Action
- Loading branch information
Showing
27 changed files
with
756 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
jwt-opa/src/main/java/com/alertavert/opa/ExcludeFromCoverageGenerated.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Copyright (c) 2021 AlertAvert.com. All rights reserved. | ||
* Author: Marco Massenzio (marco@alertavert.com) | ||
*/ | ||
package com.alertavert.opa; | ||
|
||
/** | ||
* Marker annotation for classes to be excluded by Jacoco test coverage report and rules. | ||
* | ||
* The naming is a bit contrived as Jacoco <strong>requires</strong> that the | ||
* {@literal Generated} string be present in the annotation; classes annotated | ||
* with {@link ExcludeFromCoverageGenerated} are <strong>not</strong> generated at all | ||
* (Lombok does annotate methods/classes with {@link lombok.Generated}). | ||
* | ||
* Typically classes annotated with this marker <em>SHOULD</em> only contain either | ||
* fairly trivial logic (e.g., configuration properties parsing and conversion) or access runtime | ||
* components (e.g., AWS) where testing would require extensive (and, ultimately, self-defeating) | ||
* mocking or real online services. | ||
* | ||
* <strong>USE WITH MODERATION</strong> and, most importantly, <strong>do not</strong> use it to | ||
* bypass the Code Coverage check. | ||
* | ||
* @author M. Massenzio, 2022-04-14 | ||
*/ | ||
public @interface ExcludeFromCoverageGenerated { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.