-
Notifications
You must be signed in to change notification settings - Fork 687
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4306 from emissary-ingress/lukeshu/for-aes3
[v3.0.0] Fixes (mostly for Edge Stack) Commit-by-commit: - (first 8 commits) Miscellaneous cleanup in `cmd/entrypoint`; not actually fixing anything. - (penultimate commit) Fix some problems with synthetic AuthService injection. This only affects Edge Stack. - (ultimate commit) Fix the JSON error response when an invalid AuthService is given. This affects both Edge Stack and Emissary. The only commit that I think merits much discussion is the synthetic AuthService injection one. It's sort of a rewrite. And I sort of feel bad about that. I had a hard time following what it was doing (can't fit big function in small Friday afternoon brain? can't fit big function on small laptop screen? take your pick). At first I was just trying to factor out a `iterateOverAuthServices` function so that the big chunk wouldn't need to be repeated twice. And I ended up with this. At least one bug in the old code: var newDeltas []*kates.Delta *deltas = append(*deltas, &kates.Delta{ TypeMeta: syntheticAuth.TypeMeta, ObjectMeta: syntheticAuth.ObjectMeta, DeltaType: kates.ObjectDelete, }) *deltas = newDeltas which results in `*deltas` always getting set to `nil`. But because I couldn't follow the code, there might have been more bugs too. My version does have one change: When it sees an Edge Stack AuthService (localhost:8500) with the wrong protocol version, it just overrides the protocol version of that AuthService, rather than dropping that AuthService and injecting a fully-synthetic one. Signed-off-by: Luke Shumaker <[email protected]>
- Loading branch information
Showing
14 changed files
with
341 additions
and
560 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
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.