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

776 Коммитов

Автор SHA1 Сообщение Дата
Amber Brown 82cd82e6a9 regen 2024-11-21 12:41:18 +11:00
Amber Brown a07b8b8b64 fix the ARM resource deploying the partition key 2024-11-21 12:41:18 +11:00
Amber Brown 950cb64b10 go generate 2024-11-21 12:41:18 +11:00
Amber Brown fce90b0f94 fix build 2024-11-21 12:41:18 +11:00
Amber Brown 5c5a107567 add MIMO to dev 2024-11-21 12:41:17 +11:00
Ben Vesel fcbebae2a6
Merge pull request #3561 from Azure/ankusing/ARO-5514-cosmosdb-disable-local-auth
Disable cosmosdb local auth
2024-11-05 20:56:53 -05:00
Kipp Morris 25eef93d02
Deploy fix - GET devops MSI using properly scoped Azure client (#3936)
* GET the devops MSI using a separate identities client scoped to the
correct Azure subscription

* Fix silly mistake
2024-11-01 10:07:28 -07:00
Ben Vesel c340a9d702
Merge pull request #3851 from Azure/anshulvermapatel/ARO-9920-update-version-identity
Adding role assignment for the devops managed identity
2024-10-23 09:11:53 -04:00
Anshul Verma 97b0168d7a adding a parameter the name of the devops managed identity 2024-10-21 12:20:58 +05:30
Kipp Morris 3ba0b23251
Hotfix - MSI RP endpoint env var (#3881)
* Add missing RP-Config param to RP deploy ARM template

* Plumb msiRpEndpoint ARM parameter through to RP environment variable

* Regenerate RP ARM template

* Remove duplicated MSI_RP_ENDPOINT envvar in RP env

* Add env var to aro-rp.service startup

* Regenerate RP ARM template

---------

Co-authored-by: Tanmay Satam <tsatam@redhat.com>
2024-10-04 10:39:28 -04:00
Hilliary Lipsig e985b50ffb
Merge pull request #3863 from Azure/kimorris27/ARO-4360-move-to-uber-mock-fork
Move to Uber mock/mockgen fork
2024-09-26 12:18:07 -07:00
Ben Vesel 7859644051
Remove podman network causing outbound latency (#3865) 2024-09-26 10:13:09 -04:00
kimorris27 7448b3db41 `make validate-go` to format stuff and make CI happy 2024-09-26 09:00:11 -05:00
kimorris27 086f532624 Replace all references to the golang mock repo with references to the
Uber fork, then `go mod tidy` and `go mod vendor`

Note the change to `deps.go`
2024-09-26 09:00:11 -05: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
Ankur Singh dc2a28b1d2 Disable cosmosdb local auth 2024-09-20 13:04:56 +05:30
Jory Horeman 68bc93250c
Scaffolding for CI environment setup in Azure (#3838)
* adding CI dev template files and scripts
2024-09-19 09:42:39 -06:00
Steven Fairchild aebd2bb504
Remove dnf cronjob (#3840)
* Remove dnf update cron job

Automatic OS Updates are configured. Updating packages via a cron job is no longer required.

* Remove certs arg from verify_role, Add/Remove comments

Certificate generation has been broken up into a named function for each VMSS role. This means it's no longer necessary to provide the certs=true argumenet when checking VMSS roles.

Add a comment for why AZURE_CLOUD_NAME returns an error if unset.
Remove az cli login comment from pull_container_images, it is no longer relevant after the last refactor.
2024-09-17 12:12:21 -07:00
Tony Schneider 9584d669b6
generalize secret storage deployment and update shared rp documentation (#3828)
* generalize secret storage account deployment template
* update secret storage deployment step
2024-09-13 18:14:38 +10:00
Amber Brown c554e98391
Drop some unneccessary dependencies by moving to `bingo` for tooling (#3719)
* Move to using bingo for tools
* go mod vendor
2024-09-05 15:29:19 +10:00
Brendan Bergen c2da97aa53
Correct testing/time issues in pkg/deploy (#3808)
- Percolate up the time to wait for LB healthcheck probes, test @ 0 sec
- Correct a context timeout test case, test @ 0 sec timeout
2024-09-04 11:26:50 -06:00
Steven Fairchild 89cf7d3540
Update VMSS to Mariner with FIPS enabled (#3741)
* Update RP and Gateway vmss OS image to cbl-mariner-2-gen2 with Manually Configured FIPS Mode

System Changes:

Remove lvm disk resize, Mariner does not use lvm, the disk is automatically grown to the full size specified.
Remove semanage, Mariner Linux does not have selinux configured.

Remove gateway log rotation config
Log rotation for the podman level driver log was not the correct
approach. The podman log driver is now journald, so all logs will be
shipped to journald rather than a ctr.log file.

fips mode is manually configured following the example code at https://eng.ms/docs/products/azure-linux/features/security/fips
SKU cbl-mariner-2-gen2-fips does not support Automatic OS Updates, therefore we are switching to cbl-mariner-2-gen2, manually configuring fips mode, to allow for Automatic OS Updates.

Script Changes:

Restructure VMSS bootstrap bash scripts for increased reliability, and easier debugging
Move all shared code into a commonly shared file to be sourced by all
bootstrapping scripts. This allows for code reuse, minimal duplication.

Fix mdm mdsd certificate download script
During mdm and mdsd setup, I've added wait steps for the download
scripts to complete getting certificates. Without this, the download
scripts run in a subshell and fixing up the certificates fails.

Add firewalld configuration, required for podman networking
Add podman aro network creation to isolate RP containers from possible
interaction on the default podman network.

Package Changes:

Install Azure Security Monitor via VMSS Extension
Remove RHUI and Microsoft repo configuration, add Mariner Extended repo config
Increase rpm retry time to 30 minutes total, every 30 seconds.

* Embed scripts as strings rather than []byte

This is to reduce the amount of type conversions needed.
2024-08-22 10:37:13 -04: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
Steven Fairchild 2808298ec8
Increase RP and VMSS disk size from 256GB to 1024GB (#3731)
To ensure that the vmss instances do not become unavalaible due to storage usage.
2024-07-31 09:02:21 -04:00
Steven Fairchild 1a9bf96cc5 Update MDSD, MDM, Fluentbit base images 2024-07-24 11:00:53 -04:00
Rajdeep Chauhan 0684a5af89
ARO-6756 Remove usecheckaccess feature and variables (#3643) 2024-07-23 14:53:46 -05:00
Maitiú Ó Ciaráin bfb554c620
Merge pull request #3696 from Azure/kimorris27/ARO-9005-shared-dev-kv-for-msi
Deploy shared dev key vault for mock MSI certificates
2024-07-23 18:50:45 +02:00
Aldo Fuster Turpin b1a38a621a log outbound correlation data 2024-07-19 12:29:15 +02:00
kimorris27 54e94f2866 Consolidate OIDC storage account and cluster MSI key vault into one ARM
template + `make generate`
2024-07-18 12:40:20 -05:00
kimorris27 b90e510ce3 Appease the linter 2024-07-18 12:21:04 -05:00
kimorris27 4e46ed4bd6 `make generate` 2024-07-18 12:21:03 -05:00
kimorris27 1953401213 Move the shared cluster MSI key vault to its own ARM template 2024-07-18 12:21:03 -05:00
kimorris27 3b0147e3f6 Add new KV with RBAC and then `make generate` 2024-07-18 12:21:03 -05:00
kimorris27 b072d62309 Rename existing shared dev key vault
To clarify the purpose of this key vault as opposed to the new shared
key vault we're adding for MSI
2024-07-18 12:21:03 -05:00
kimorris27 5a234a9df9 Remove comment that appears to be out-of-date information 2024-07-18 12:21:03 -05:00
kimorris27 7fabe1569b Fix disk encryption set in a different place and `make generate` again 2024-07-12 14:59:15 -05:00
kimorris27 8c5e5d6af9 Fix disk encryption set version and `make generate`
The 2024-03-01 API version doesn't seem to work with disk encryption sets, so I used the version that's already in the map.
2024-07-12 14:22:43 -05:00
kimorris27 9bab3334b1 `make generate` 2024-07-12 14:11:21 -05:00
Maitiú Ó Ciaráin 367a4799fd
Merge pull request #3600 from Azure/nwnt/trusted-launch-devproxy
Make dev-proxy use Trusted Launch
2024-07-12 08:53:47 +02:00
Nont 6b30e877f1 Fix lint 2024-07-11 09:20:56 -05:00
Nont 5f00bdb54a Change to DiskEncryptionSetIdentityType 2024-07-10 17:57:01 -05:00
Amber Brown e711e610a0
Move to maintained yaml lib (#3454)
* move to maintained yaml lib

* update validate-imports

* go mod
2024-07-10 09:57:42 +10:00
Tanmay Satam 9c166704cd Increase dev-proxy-vmss OSDisk to 64GB 2024-07-01 10:29:40 -04:00
Rajdeep Singh Chauhan 42daa82815 ARO-4373 resolve comments and parameter fixes 2024-06-30 20:38:28 -04:00
Rajdeep Singh Chauhan 17805e9120 ARO-4373 Enable Web Endpoint for the OIDC Storage Account 2024-06-30 20:38:28 -04:00
Rajdeep Singh Chauhan 90fde763c3 ARO-4373 update mgmtstorage sdk to 2019-06-01 for disabling allowSharedKeyAccess 2024-06-30 20:38:28 -04:00
Rajdeep Singh Chauhan 57a64c739d ARO-4373 add RP Feature Flag EnablePublicOIDCBlobAccess 2024-06-30 20:38:28 -04:00
Rajdeep Singh Chauhan 80651af83f ARO-4373 set envs for storage account name and AFD endpoints 2024-06-30 20:38:28 -04:00
Tony Schneider aa3cb69498 remove provisioning state from arm template 2024-06-21 15:02:04 -05:00
Tony Schneider 5338e08f21 fix AzSecPack managed identity resource id 2024-06-21 14:56:02 -05:00