Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement multi-level authentication on pulumi-operator
This commit adds functionality for multi-level authentication in the `pulumi_operator`. In the `pulumi_execution.rs` file, code changes are made to clone the namespace and retrieve secret keys such as `AWS_ACCESS_KEY_ID`, `AWS_DEFAULT_REGION` and `AWS_SECRET_ACCESS_KEY` from the data. The changes also include setting environment variables with these secret keys to be used later for authentication. These improvements grant more security and efficiency in pulumi execution tasks on Kubernetes platform. In the `Cargo.toml` file, modification has been done to include `install-crds` as a feature. The `main.rs` in `pulumi_operator_kubernetes` now creates a service account, role and role binding for each stack. This increases granularity in access control. Lastly, in `crd.rs` additional configurations for the main container has been added. This provides the ability to add extra environment variables and volumes, giving the main container more flexibility.
- Loading branch information
Showing
6 changed files
with
219 additions
and
31 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,4 +22,4 @@ warp = "0.3.5" | |
[features] | ||
install-crds = [] | ||
boot = [] | ||
default = ["boot"] | ||
default = ["boot", "install-crds"] |
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