Граф коммитов

29 Коммитов

Автор SHA1 Сообщение Дата
Shubhadapaithankar 96637dbc85
Migrate VPN and rp service to Docker Compose (#3882)
* VPN, RP, and Portal are now managed by Docker Compose
2024-10-10 13:18:26 -06:00
Rajdeep Chauhan 16834d8ddd
Fix Managed Identity Cluster creation dynamic validation flow (#3891)
* Fix Dynamic Validation Flow for Workload Identity

* fix the mock msi object id export

* Remove unwanted code

* update OIDC_STORAGE_ACCOUNT_NAME local env setup

* ARO-11049 resolve comments
2024-10-10 14:12:06 -04:00
Kipp Morris e3cec21b73
Lay groundwork for cluster MSI usage (#3757)
* Add a parameter for enabling Entra ID RBAC on key vaults
* Add an RP-level feature flag for determining whether to use the mock MSI RP
* Tweak the mock identity URL to play nicely with the mock MSI RP
* Add Azure SDK client wrappers for new clients (federated identity credentials control plane and key vault data plane)
* Vendor in new Azure SDK clients and update msi-dataplane

* Lay groundwork for use of cluster MSI...
- Initialize the MSI dataplane client, using the mock MSI RP/stub if
  appropriate
- Initialize key vault store client (for MSI certificates; functionality
  is implemented in MSI dataplane module)
- Create a cluster MSI certificate and store it in the key vault during
  cluster bootstrap
- Instantiate an Azure SDK FederatedIdentityCredential client using the
  cluster MSI certificate
- Delete the cluster MSI certificate as needed during cluster deletion

* Don't fail during cluster deletion if the cluster MSI certificate is
already gone from the key vault (or was potentially never created)

* Establish an RP-Config variable for the MSI RP endpoint

- Update doc comment for ensureClusterMsiCertificate
- Simplify conditional logic in MSI cert deletion

* Use pointer conversion functions that aren't deprecated

* Respond to PR comments (and fix some other things along the way)

- Move `clusterMsiResourceId` function to `OpenShiftCluster` type
- When persisting the MSI cert to KV, use the `NotAfter` returned by the MSI RP (for the stub, just use an arbitrary value)
- Move `getClientOptions` functionality to `AROEnvironment` type
- Move logic for determining cluster MSI key vault name to `pkg/env`
- Pull cloud name mapping stuff out to `AROEnvironment` type
- Update msi-dataplane module to include new changes and use `UserAssignedIdentities` type to get Azure credential in `pkg/cluster/clustermsi.go`
- Fix typo in https URL in comment in `pkg/cluster/delete.go`
- Implement suggestion to use `errors.As` instead of a type assertion in `pkg/cluster/delete.go`

* Update documentation with info about new feature flag

- Move new cluster MSI steps forward in bootstrap step order
- Move MSI dataplane client options stuff to pkg/env
- Explicitly check for a single cluster MSI in `ClusterMsiResourceId`
- Other small tweaks

* Vendor in msi-dataplane update that prevents a potential nil pointer dereference

* Add missing method to internal key vault client

* Make error messages more specific in ClusterMsiResourceId

* Add missing env vars to run-rp make target and uncomment dynamic validation bootstrap step

- In newly added Azure clients, return struct types instead of interface
  types
- Move cluster MSI certificate deletion to be after Azure resource
  deletion for safety just in case cx continues to use cluster that is
  in Failed/Deleting provisioning state

* Add new env vars for MIWI to env.example for clarity/completeness

* Turn check for nonzero number of user assigned identities into a utility function

* Use existing constant for key vault dns suffix
2024-09-24 08:14:56 -04:00
Or Raz 8fdfa78b24
Fix env.example Default Values (#3827)
* Set Azure prefix and USER as optional at env.example

Follow up commit to use an Azure unique prefix for the Azure resources that ARO-RP is using instead of always fetching the USER. When AZURE_PREFIX env var is not set, then use the USER env var

* Use westeurope as default location

Don't override existed LOCATION env var when it is already set, and 'westeurope' as the default value
2024-09-17 09:17:45 -06:00
Shubhadapaithankar a387947960
Make runlocal-rp with Container Image (#3593)
Runlocal-RP is Containerized

- Modified Makefile to execute a local `podman run` for the RP on 127.0.0.1
- Local RPs now by default interact with Hive due to MacOS limitations
- Updated RP dev config to serve on all IPs due to MacOS limitations
- Doc updates
2024-08-16 11:41:58 -06:00
Or Raz cedba924d8
Optionally Use USER Environment Variable for Azure Resources (#3681)
* Fetch USER env var once
Fetch the USER env var once instead of multiple times for faster DevConfig func execution time

* Set Azure unique prefix and USER as optional
Use an Azure unique prefix for the Azure resources that ARO-RP is using instead of always fetching the USER. When AZURE_UNIQUE_PREFIX env var is not set, then use the USER env var

* Modify more USER references
Rename AZURE_UNIQUE_PREFIX to AZURE_PREFIX, and export the usage of this env var for Azure prefix name resources when it is set. When it is missing use the default USER env var, as before
2024-08-07 14:57:33 +02:00
Aldo Fuster Turpin 2ce4ec642f refactor package pki to be unit testeable 2024-07-22 09:27:55 +02:00
Ayato Tokubi e34a95b852
Change env var to skip pki unit tests (#3605) 2024-06-05 20:35:24 +02:00
Shubhadapaithankar 3a7daba694
Modified the content to set up the dev env : ARO-7278 (#3554) 2024-05-03 14:25:50 -06:00
Brendan Bergen c9b7d81508
Add CI containerfile for portal javascript build (#3397)
* Add CI containerfile for portal NPM commands + makefile target

* Update docs to reflect new envvar for makefile, including a reasonable default for local dev: NO_CACHE
2024-03-20 07:24:18 -04:00
Angus Salkeld dd85f24fce
Add aro-operator
Co-Authored-By: Olga Mirensky <olga.mirensky@redhat.com>
Co-Authored-By: Jim Minter <jminter@redhat.com>
2020-07-29 15:46:23 +01:00
Jim Minter b778fd918e
installation instructions for multi-tenant development environment 2019-12-30 12:02:05 -06:00
Jim Minter 49507421a9
add vpn gateway for development 2019-12-29 12:44:31 -06:00
Jim Minter b1793e893a
allow database name to be parametrised 2019-12-29 12:44:31 -06:00
Jim Minter ce853c053b
typos 2019-12-16 10:56:29 -06:00
Jim Minter c9b439fab1
improve documentation 2019-12-16 10:52:38 -06:00
Jim Minter a3096fea90
Implement ARO extension
Co-authored-by: Mangirdas Judeikis <Mangirdas@Judeikis.LT>
2019-12-15 22:06:27 -06:00
Jim Minter eea5d49874
add make secrets 2019-12-04 07:17:27 -06:00
Jim Minter a2afa32f36
add ARM service principal 2019-12-03 12:40:36 -06:00
Jim Minter a58e4fd489
add cluster SP and validation 2019-12-01 19:57:42 -06:00
Jim Minter 69da5262cc
start rbac work: further rearrange service principals 2019-12-01 10:00:02 -06:00
Jim Minter b7fe465470
document RP_MODE environment variable 2019-11-18 18:51:39 -06:00
Jim Minter a707bb393d
rename RP_RESOURCEGROUP -> RESOURCEGROUP 2019-11-17 22:04:24 -06:00
Jim Minter 7e24602c57
remove COSMOSDB environment variables 2019-11-17 22:02:13 -06:00
Jim Minter f0515272e4
remove DOMAIN environment variable 2019-11-17 22:01:45 -06:00
Jim Minter 3a3394018e
remove DOMAIN_RESOURCEGROUP environment variable 2019-11-17 21:32:53 -06:00
Jim Minter 594c952510
improve README.md 2019-10-28 14:56:18 -06:00
Jim Minter b94c935f96
stop using storage account for queue 2019-10-18 20:10:16 -05:00
Jim Minter 561fb3b639
Initial commit 2019-10-15 22:43:52 -05:00