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

6935 Коммитов

Автор SHA1 Сообщение Дата
Nont 09756dcfe8 Install more OCI packages 2024-08-30 14:44:55 -05:00
Nont e504eb2a88 Install crun 2024-08-30 14:44:55 -05:00
Nont 62d628de86 Switch back to OneBranch build image 2024-08-30 14:44:54 -05:00
Nont da9bf68821 Install required binary for Podman 5 in ci 2024-08-30 14:43:34 -05:00
Nont 962402bff1 Upgrade to Podman 5 to fix the vuln 2024-08-30 14:40:37 -05:00
Petr Kotas 751cfe3b6b
Move ARM swagger to subfolder (#3805)
To add new HCP RP, the ARO RP is moved into the subfolder openshiftclusters.

There are no additional changes, no impact on the SDK and clients.
2024-08-30 18:18:40 +02:00
Ayato Tokubi 725fd1b017
Add smoke test for alerts from Alertmanager (#3801) 2024-08-30 18:16:31 +02:00
Shubhadapaithankar b1caf181ee
This is the new CI-RP stage for the pipline (#3768)
* This is the new CI-RP stage for the pipline (#3753)

* Ensure Podman Service is Started and PODMAN_REMOTE_ARGS is Configured Automatically

Ensure Podman Service is Started and PODMAN_REMOTE_ARGS is Configured Automatically

Ensure Podman Service is Started and PODMAN_REMOTE_ARGS is Configured Automatically

removed the tag

Add Podman service start and remote args setup for seamless operation

Add sudo to start Podman service for elevated permissions and fix permission errors

Add sudo to start Podman service for elevated permissions and fix permission errors

Refactor Makefile: Update Podman service handling with sudo and remove default PODMAN_REMOTE_ARGS to improve flexibility and ensure proper permissions.

Add sudo to start Podman service for elevated permissions and fix permission errors

* Added Podman service target and set PODMAN_REMOTE_ARGS for seamless builds.

* fix the makefile

* added the port to fix the Makefile
2024-08-29 09:09:59 -04:00
Maitiú Ó Ciaráin 2f651e7ef0
Merge pull request #3781 from Azure/lranjbar/ARO-9570-udr-etchosts-operator-patch
ARO-9570: Add a controller to the ARO operator to lay down etchosts
2024-08-28 14:43:19 +02:00
Maitiú Ó Ciaráin 5dfba0547e
Merge pull request #3780 from Azure/copy-fluentbit
Copy Fluenbit Image
2024-08-28 11:43:22 +02:00
Maitiú Ó Ciaráin fd2b2f9719
Merge pull request #3796 from Azure/shubhadapaithankar/runlocal-rp-version-fix
Fixed  to correctly reference the local  image tag
2024-08-28 11:42:26 +02:00
Maitiú Ó Ciaráin 6360087efa Add licenses 2024-08-28 11:37:32 +02:00
Maitiú Ó Ciaráin 564f1b03c1 Fix linting 2024-08-28 11:35:17 +02:00
Alex Chvatal fec517c2fc test the operator identity secret generation code properly 2024-08-27 16:12:16 -04:00
Alex Chvatal 4666495cfc get subscription info from the subscription doc rather than env 2024-08-27 16:12:16 -04:00
Alex Chvatal 69c55bf972 Update pkg/operator/deploy/deploy.go
Co-authored-by: Ayato Tokubi <atokubi@redhat.com>
2024-08-27 16:12:16 -04:00
Alex Chvatal fde6d81e6c generate a secret for the operator from workload identity 2024-08-27 16:12:16 -04:00
dependabot[bot] e83bf05c27
Bump micromatch from 4.0.7 to 4.0.8 in /portal/v2 (#3795)
Bumps [micromatch](https://github.com/micromatch/micromatch) from 4.0.7 to 4.0.8.
- [Release notes](https://github.com/micromatch/micromatch/releases)
- [Changelog](https://github.com/micromatch/micromatch/blob/4.0.8/CHANGELOG.md)
- [Commits](https://github.com/micromatch/micromatch/compare/4.0.7...4.0.8)

---
updated-dependencies:
- dependency-name: micromatch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-26 12:56:26 -04:00
Shubhada a05c82c50e Fixed to correctly reference the local image, preventing unauthorized Docker Hub pulls. 2024-08-26 09:49:05 -07:00
dependabot[bot] 426b56b5ac
Bump oxsecurity/megalinter from 7 to 8 (#3794)
Bumps [oxsecurity/megalinter](https://github.com/oxsecurity/megalinter) from 7 to 8.
- [Release notes](https://github.com/oxsecurity/megalinter/releases)
- [Changelog](https://github.com/oxsecurity/megalinter/blob/main/CHANGELOG.md)
- [Commits](https://github.com/oxsecurity/megalinter/compare/v7...v8)

---
updated-dependencies:
- dependency-name: oxsecurity/megalinter
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-26 10:07:36 -04:00
Lisa Rashidi-Ranjbar 7361eae36c ARO-9750: Add a controller to create the etchosts machineconfigs if they dont exist 2024-08-22 13:25:24 -07:00
Tanmay Satam e079d1700c
Only fail NPM audit on high/critical vulnerabilities (#3790)
* npm audit fix

* Do not fail npm audit on info/low/moderate vulnerabilities
2024-08-22 13:35:26 -06:00
Ayato Tokubi bd0229df01
Add route smoke-test (#3784) 2024-08-22 21:13:13 +02: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
Brendan Bergen c9410c24c8 Allow remote podman 2024-08-21 16:35:24 -06:00
Brendan Bergen e374a4275c Makefile Podman Fixes
- Allows true use of NO_CACHE by using LABELs and podman tag commands instead of --cache-from
- Standardizes formatting of image names and variables
- Standardizes use of VERSION for image tags
- Standardizes formatting of podman commands and parameter ordering
2024-08-21 16:35:24 -06:00
Brendan Bergen 09c49cbce8 Use Podman, not Docker 2024-08-21 16:35:24 -06:00
Tanmay Satam 8808352497
Allow prerelease OCP versions and version strings with metadata during cluster installation (#3782)
* Add unit tests for existing frontend version validation

* Use semver package to validate versions in frontend instead of regex

This allows the ability to provide prerelease versions or version strings
containing metadata.

* Ensure disableUpdates does not propagate metadata in version string to clusterversion resource
2024-08-21 15:30:48 -04:00
Brendan Bergen 92a8bfcc15
Containerized portal as it runs in prod, locally (#3745)
- creates a new make target to run the Portal app containerized
- updates portal addresses to work with podman machine
- adds docs
2024-08-21 09:21:45 -06:00
Alex Chvatal 52cdcb80eb
Exclude platform identities from permissions denial (#3653)
* Exclude platform identities from permissions denial

Add platform workload identities to the list of service principals
excluded from the permissions denial so that those identities can manage
Azure resources in the cluster's resource group

* improve testing of deny assignment generation

this confirms that ExcludePrincipals are generated correctly for the
deny assignment based on the presence of a ServicePrincipalProfile or a
PlatformWorkloadIdentityProfile

* use UsesWorkloadIdentity() helper function instead of bespoke check

* check empty ObjectID/SPObjectID values separately

* prevent nil pointer dereference for missing ServicePrincipalProfile
2024-08-21 09:30:35 -04:00
Nicolas Ontiveros fd8d3cf7f1
Add scripts to create platform identities for dev (#3734)
---------

Co-authored-by: Nicolas Ontiveros <nicolas.ontiveros@microsoft.com>
2024-08-21 09:25:17 -04:00
Ayato Tokubi 309d82afdb
Add PVC smoke tests (#3747) 2024-08-21 14:11:42 +02:00
Lisa Rashidi-Ranjbar a10deab992
ARO-9570: Update controller to watch MCP and ARO Cluster object 2024-08-20 12:08:35 -07:00
Lisa Rashidi-Ranjbar 9a4ad4ac98
ARO-9570: Add a controller to the ARO operator to lay down etchosts machine config 2024-08-20 10:09:03 -07:00
Brendan Bergen 8badd84bb7
Thank you Aldo, and good luck (#3774) 2024-08-19 12:05:52 -06:00
oraz 0ae1ef4c9a
Copy fluentbit image from arointsvc ACR to your ACR
It is needed since it is compared against a default image (and digest) from const file
2024-08-19 17:20:32 +03:00
oraz 7531359c16
Align docs hierarchy
Indent bullet points
2024-08-19 17:17:12 +03:00
Ayato Tokubi c3e324c7c9
fix typo (#3779) 2024-08-19 08:12:24 -05:00
Ayato Tokubi 18b43b5c4b
Add smoke tests doc (#3750) 2024-08-19 09:26:24 +02:00
Ayato Tokubi 0d991571c8
Add missing dependencies (#3749) 2024-08-19 08:56:09 +02: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
Ayato Tokubi c74906d445
Change load balancer image in smoke test (#3740) 2024-08-16 18:49:00 +02:00
Steven Fairchild d874268829
Update hive image to tag bdf9d08a06 (#3770)
hive:bdf9d08a06 uses github.com/openshift/hive git commit bdf9d08a060abf558ca60e014123bf9278f58b4b.
2024-08-14 08:21:03 -04:00
Tanmay Satam 8bcd1b6dc1
WI/MI CLI Phase 1 - Base Update Functionality (#3709)
* Add --assign-platform-wi flag to az aro update

* Fix nil pointer dereference when converting Identity structs on API

* Restructure update command to make branching logic more clear

* Remove duplicate test

* Disallow passing in duplicate platform workload identities within the same create/update invocation

* Ensure reported duplicate platform_workload_identities list doesn't itself contain duplicates
2024-08-13 16:32:17 -04:00
Amber Brown a1c4de75a4
Fix axios vulnerability by moving to Fetch (#3769)
* bump prettier + config

* run prettier on portal

* update to use native HTTP fetch

* clean up some typescript lint problems

* regen

* fix

* rebuild

* send correct content type

* regen
2024-08-13 12:42:26 -04:00
Steven Fairchild 29e09d5260
Fluentbit pipeline has been updated to sync versions between arointsvc (#3766)
and arosvc registries

Updating checksum to sha256:dbf5304bd98cd51c72e4ae0ee8511d3bbcdbcb7e72e65e7d1495a50d7ac33b8d
2024-08-12 12:24:44 -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
Amit Arora 50939e1a38
Minor document changes (#3759)
* replaced duplicate australiaeast value with eastus

* minor document changes
2024-08-06 08:48:57 -05:00
Maitiú Ó Ciaráin cb40d348b1
Merge pull request #3737 from Azure/hevs/docs-rp
Added known issues and a session of when to use
2024-08-05 15:27:13 +02:00
Steven Fairchild 66e2980434
Correct mdsd image sha to distroless checksum (#3751) 2024-08-02 16:25:38 -04:00