This repository has been archived by the owner on Apr 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add {Peer,Request}Authentication objects to Create Istio Config (#1804)
* Add {Peer,Request}Authentication objects to Create Istio Config * Fix correct iteration method * Fix PeerAuthentication state * Refactor IstioConfigNewPage for better place of validations * Fix linter * PeerAuthentication validations * Add RequestAuthentication validation * Prettier fixes * Fix ci errors * Address Hayk and Xavi's comments * Fix jwks and formatOriginalToken issues * Fix debug console logs
- Loading branch information
1 parent
f0ba580
commit e4b2f24
Showing
19 changed files
with
1,930 additions
and
648 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// Kubernetes ID validation helper, used to allow mark a warning in the form edition | ||
const k8sRegExpName = /^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[-a-z0-9]([-a-z0-9]*[a-z0-9])?)*$/; | ||
export const isValidK8SName = (name: string) => { | ||
return name === '' ? false : name.search(k8sRegExpName) === 0; | ||
}; | ||
|
||
const regExpRequestHeaders = /^request\.headers\[.*\]$/; | ||
export const isValidRequestHeaderName = (name: string) => { | ||
return name === '' ? false : name.search(regExpRequestHeaders) === 0; | ||
}; |
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.