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

6954 Коммитов

Автор SHA1 Сообщение Дата
Amber Brown bd9af03917
Only perform machineconfig reconciliation during OpenShift upgrades (#3473) 2024-09-10 18:24:46 +10:00
Ayato Tokubi 98fe23c8a2
Merge pull request #3787 from Azure/rhamitarora/ARO-0000-minor-dockerfile-change
Docker file change replace as with AS
2024-09-09 09:48:29 +01:00
Amber Brown 44bc3cc724
[MIMO] Move cluster certificate functionality to ClientHelper (#3736)
* move over TLS applying, as well as some clienthelper work
2024-09-05 15:44:46 +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 0c5b8e6acc
Separate Makefile targets for local vs containers (#3816)
- reverts changes to runlocal-rp
- updates old run-portal to runlocal-portal since it uses local bins
- adds new targets for containerized run of RP and Portal; opt-in
- fixes docs and pipelines to use updated targets
2024-09-04 15:45:44 -04:00
Brendan Bergen 4059644b4a
Make CI-RP Improvements (#3791)
- Remove linting from ci-rp
- Remove generate from ci-rp
2024-09-04 15:03:26 -04:00
Brendan Bergen 865e01be58
Generate smaller OIDC keys for unit tests (#3811)
- significantly increases unit test performance by moving from 4096 -> 256 bit keys
- preserves 4096 bit keys for all non-testing scenarios
2024-09-04 15:03:15 -04:00
Brendan Bergen 4323fa741d
Fix slow tests in /pkg/frontend (#3810)
* Clarifying etcd cert renew test

- Updated the test to make it clear it is passing because timeout is being reached
- Updated the timeout from 10s -> 0s to pass faster

* Fix slow changefeed tests
2024-09-04 11:30:31 -06:00
Brendan Bergen 49525d2cff
Fix slow tests in /pkg/backend (#3809) 2024-09-04 11:29:15 -06: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
Hilliary Lipsig 635c5a3493
Merge pull request #3755 from Azure/nwnt/security-waves-2-vulns
Address the vulnerability reported in Security Wave II
2024-09-03 23:21:43 -07:00
Nont 7e7703fab7 Use sudo for tdnf 2024-09-03 17:39:54 -05:00
Brendan Bergen ddff7a2e56
Fix make ci-clean and runlocal-rp (#3806)
* Fix make ci-clean error for running work containers by buildah that prevents prune from working
* Fix make runlocal-rp image syntax
2024-09-03 11:39:49 -06:00
Hilliary Lipsig efc69527a0
Merge pull request #3814 from Azure/mabadper/update-owners
Adding Ayato to CODEOWNERS
2024-09-03 09:18:23 -07:00
Miguel Abad Perez 0e05db447a
Adding Ayato to CODEOWNERS 2024-09-03 12:54:24 +02:00
Ayato Tokubi 9c23bd9234
Add smoke test documents (#3813) 2024-09-03 09:49:30 +02:00
Brendan Bergen 710eb2bdf0
Add the old make runlocal-rp as an alternative to containerization (#3789) 2024-08-30 14:52:47 -06:00
Nont 29f922900d Change home dir to /tmp for podman
see https://github.com/containers/podman/issues/23818
for more details.
2024-08-30 14:44:55 -05:00
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
Amit Arora f033ba1eaa Docker file change replace as with AS 2024-08-25 21:57:29 +05:30
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