Jeremy Facchetti
c31367a3f6
now uses streams instead of array
2023-01-13 10:34:55 -05:00
carvalhe
3559c4333d
logs added for frontend enrichment ( #2634 )
2023-01-13 15:12:33 +10:00
Spencer Amann
802e3f2294
refactor test for readability
2023-01-05 06:52:16 -07:00
Spencer Amann
128f8f1a3f
systemData may end up nil on clustermanager resources, set it to default before attempting to modify
2023-01-05 06:52:16 -07:00
Jeremy Facchetti
25ae8e23c6
move quota validation to frontend
2023-01-05 10:21:55 +01:00
Jeremy Facchetti
0ea3397778
Revert "quota validation to frontend" commits
...
This reverts commit b3823876f5
.
This reverts commit e9dec20e21
.
This reverts commit 6181939f80
.
This reverts commit 5c03b199ef
.
This reverts commit d7d9551103
.
This reverts commit 4bb8f0f5bb
.
This reverts commit a13d3340d0
.
This reverts commit 88537d3a43
.
This reverts commit b4a4d975ee
.
This reverts commit 410df02cc7
.
This reverts commit 74f76fdcae
.
This reverts commit 16fcfd184c
.
This reverts commit 61cf9f6a01
.
2023-01-05 10:21:55 +01:00
Jeremy Facchetti
e9dec20e21
fixed test which was using non existent field
2023-01-05 09:10:21 +01:00
Jeremy Facchetti
6181939f80
merged the lists from api/validate and dynamic/validate
2023-01-05 09:10:21 +01:00
Jeremy Facchetti
d7d9551103
fixed issues with unmarshalling
2023-01-05 09:10:21 +01:00
Jeremy Facchetti
4bb8f0f5bb
added test for quota fail and invalid sku
2023-01-05 09:10:21 +01:00
Jeremy Facchetti
a13d3340d0
fixed imports
2023-01-05 09:10:21 +01:00
Jeremy Facchetti
88537d3a43
somehow works now
2023-01-05 09:10:21 +01:00
Jeremy Facchetti
b4a4d975ee
more stuff
2023-01-05 09:10:21 +01:00
Jeremy Facchetti
74f76fdcae
moved quotavalidator to frontend package
2023-01-05 09:10:21 +01:00
Jeremy Facchetti
16fcfd184c
newfrontend now returns its own type instead of an interface
2023-01-05 09:10:21 +01:00
Jeremy Facchetti
61cf9f6a01
now returns the struct type instead of an interface
2023-01-05 09:10:21 +01:00
Jeremy Facchetti
800e8f7598
updated the test
2022-12-20 12:55:33 -05:00
Nont
e7c3a0649a
Fix the TenantID for AppLens ( #9 )
...
* Change to using the environment AppLens tenant ID
Add the tenant ID values for the clouds
* Remove the blank line
Co-authored-by: Nont <nthanonchai@microsoft.com>
2022-12-16 12:53:35 -05:00
Zach Jones
f9d20aaae3
feat: addition of applens client and detector endpoints
2022-12-16 12:53:35 -05:00
Andrew Denton
8676b8d79a
Remove deprecated TLS Config.PreferServerCipherSuites
2022-12-13 13:20:21 -05:00
Christoph Blecker
b93df83a8c
Merge pull request #2561 from facchettos/frontend-racecondition
...
fixed race condition in frontend
2022-12-01 08:45:02 -08:00
Jeremy Facchetti
597a9bb9d2
fixed race condition in frontend
2022-12-01 09:03:20 +01:00
Christoph Blecker
2f387d9fc3
Merge pull request #2248 from ArielLima/public-ip-removal
...
Public IP removal
2022-11-29 13:35:41 -08:00
Andrew Denton
0a6f9968d7
Microsoft-requested changed for API acceptance, next round
2022-11-07 12:33:42 -05:00
Andrew Denton
32679f39fd
Microsoft-requested changes for API acceptance
2022-11-07 12:33:42 -05:00
cadenmarchese
82fd03e444
add static validation, adjust tests
2022-11-07 12:33:42 -05:00
cadenmarchese
37b70c9aec
remove clustermanagerconfiguration, fix tests
2022-11-07 12:33:42 -05:00
cadenmarchese
ca8612a993
resolve unnecessary conversions
2022-11-04 11:13:15 -04:00
cadenmarchese
73e6e7858c
generate mocks, add coverage
2022-11-04 11:13:15 -04:00
cadenmarchese
d1a6947cde
validate static, remove clustermanagerconfiguration
2022-11-04 11:13:15 -04:00
Jeremy Facchetti
6210fa5852
added more linter ( #2481 )
2022-10-31 08:18:27 +11:00
Andrew Denton
8a61c9de13
Fix tests that don't use newTestInfra()
2022-09-28 17:50:24 -07:00
Andrew Denton
fb5df93a71
Add a real feature flag, FeatureEnableOCMEndpoints
2022-09-28 17:30:38 -07:00
Andrew Denton
8fc2fddea4
Extract tenantId
2022-09-27 16:15:39 -07:00
ArielLima
3733cbe084
changes needed for public IP removal
2022-09-27 10:51:17 -06:00
Andrew Denton
66aaf89a6c
wip testcase
2022-09-26 11:55:19 -07:00
Andrew Denton
f807b60081
Guard OCM routes with env variable ENABLE_OCM
2022-09-22 11:43:35 -07:00
Ross Bryan
eb87370694
Merge pull request #2414 from facchettos/ioutil-removal
...
removal of ioutil references
2022-09-22 10:59:34 -04:00
Jeremy Facchetti
72e67cd3db
removed ioutil references
2022-09-22 10:26:18 +02:00
bennerv
985dbe637f
Add changefeed to track supported and enabled OCP versions in frontend
2022-09-21 09:38:24 -04:00
Ross Bryan
f0c6e02346
marshalindent, and spaces not tabs, spaces look better
2022-09-20 11:56:02 -04:00
Ross Bryan
9b492f94c3
refactor openshiftversion implementation code
2022-09-20 09:28:09 -04:00
Ross Bryan
298d153192
refactor openshiftversion api models
2022-09-20 09:01:08 -04:00
Zach Jones
71d6a37c45
fix: update approce csr unit test with new frontend params
2022-09-15 18:05:09 -06:00
Zach Jones
bc82e3e1bb
feat: renamed csr approval functions and introduced better error handling
2022-09-15 17:57:12 -06:00
Damian Miller
087f675451
removed unnecessary commented code
2022-09-15 17:57:12 -06:00
Damian Miller
397b6fbcd7
fixes to unit test to reflect removal of approveAll and non-required csrName args
2022-09-15 17:57:12 -06:00
Damian Miller
c572368328
removed a few remaining references to approveAll in unit test
2022-09-15 17:57:11 -06:00
Damian Miller
37dda4d44b
Changed to approve all if no name arg is present
2022-09-15 17:57:11 -06:00
Zach Jones
ff5fbc91eb
feat: added admin endpoint for approving csrs
2022-09-15 17:57:11 -06:00
Ross Bryan
e93b0f49b4
address feedback
2022-09-14 16:10:07 -04:00
Ross Bryan
0ef1dde3b9
update examples, address feedback, make client
...
Co-authored-by: Spencer Amann <samann@redhat.com>
refactor
2022-09-14 10:26:47 -04:00
Ross Bryan
a5673f1532
rm interface support - refactor examples to resources b64 strings
2022-09-14 09:57:31 -04:00
Ross Bryan
b2b82743fb
add a bool to disable these api endpoints from replying right now
2022-09-14 09:57:31 -04:00
Ross Bryan
2d076a8242
create clustermanager api definitions, wire up cosmosdb
2022-09-14 09:57:29 -04:00
Jeremy Facchetti
8e3b90f9bf
api version improvements
2022-09-09 10:13:50 +02:00
Jeremy Facchetti
cd3e6c9981
removed useless pointer
2022-09-08 12:44:14 +02:00
Jeremy Facchetti
f263d0785b
stop passing request around
2022-09-08 12:11:00 +02:00
Jeremy Facchetti
d17c42fd4a
stop passing request around
2022-09-08 12:06:58 +02:00
bennerv
c5feb41531
Sort the response before validating response
2022-09-07 12:53:55 -04:00
darthhexx
72645f54ec
Address PR feedback, props bennerv
2022-09-05 12:08:59 +10:00
darthhexx
c4ae96c0d9
Tests tweak/fix
2022-09-05 12:08:58 +10:00
darthhexx
2fbda2eb9c
Refactor to remove version specific unmarshal, props hawkowl
2022-09-05 12:08:58 +10:00
darthhexx
2b78950615
Sort to ensure the response order is deterministic
2022-09-05 12:08:58 +10:00
darthhexx
1f678c3b87
M6: enable install-version selection for Hive adoption and installs
2022-09-05 12:08:56 +10:00
David Newman
e0c9352eb3
API 2022-09-04: install-version parameter activation and version listing fixes ( #2356 )
...
* Move InstallVersion into cluster properties and give it a type.
* Regenerated 2022-09-04 API
* Add 2022-09-04 API to the cluster creation, in preparation for the switchover.
* Pass a validated install-version parameter for create creation
* Fix the InstallVersion's parameters and example output
* Fix python visual indentation test requirement
2022-08-29 14:38:42 -04:00
Ben Vesel
70ab13a3b1
Merge pull request #2348 from bennerv/api-versions-for-operations
...
Set supported operations on an API version basis
2022-08-25 09:52:00 -04:00
Amber Brown
6d1a2773f0
some better registration/validation
2022-08-25 13:32:51 +10:00
Amber Brown
aec99ddd81
uuid generation and so
2022-08-25 13:32:50 +10:00
Amber Brown
f2b347518d
add urls to frontend
2022-08-25 13:32:50 +10:00
Amber Brown
24d7ef850d
frontend and tests
2022-08-25 13:32:11 +10:00
Amber Brown
115421ffd2
add the openshiftversions to the frontend
2022-08-25 13:31:19 +10:00
bennerv
00e4db5d43
Set supported operations on an API version basis
2022-08-24 12:31:55 -04:00
Amber Brown
03293a9312
initial frontend
2022-08-24 10:03:16 +10:00
Amber Brown
50117344df
Fix OpenShiftCcluster PUTs causing static validation errors due to ARM metadata ( #2343 )
2022-08-23 15:32:53 +02:00
Ben Vesel
cae9508907
Merge pull request #2275 from ArielLima/vm-actions-refactor
...
DRY implementation to our admin_vm_actions
2022-08-22 14:29:54 -04:00
zacharyljones
f275a03978
feat: added force parameter to kubernetes delete object admin endpoint ( #2114 )
2022-08-11 08:32:10 -04:00
ArielLima
3cf59afef3
DRY implementation to our admin_vm_actions + squash
2022-08-10 10:34:39 -06:00
Amber Brown
b33823e185
Merge pull request #2307 from darthhexx/list-install-version-scoped-by-location
...
Scope the OpenShift install version listing by location
2022-08-10 09:12:36 +10:00
Zach Jones
a25f698b17
feat: add cordon and drain related admin endpoints for new geneva actions
2022-08-04 11:20:34 -06:00
darthhexx
1e664e2456
Include a location parameter in the test's request
2022-08-04 23:01:29 +10:00
darthhexx
dfa13e4914
listInstallVersions by location, since we will have a DB per region
2022-08-04 21:19:27 +10:00
David Newman
31c2d0b9e4
Merge pull request #2225 from anshulvermapatel/list-version-endpoint
...
Added an endpoint to list available versions to install
2022-08-03 14:52:21 +10:00
Anshul Verma
7b17f7f973
changed
2022-08-02 17:40:25 +05:30
Anshul Verma
1f5a9a92ef
changed installOpenShiftVersions to installVersions
2022-08-02 11:34:33 +05:30
Anshul Verma
5d4f5fea0c
changed in path from 'listinstallopenshiftversions' to 'listinstallversions'
2022-08-02 09:55:44 +05:30
Amber Brown
b53b70171e
nextUUID -> newUUID
2022-07-28 13:21:57 +10:00
Anshul Verma
25590c623f
Added an endpoint to list available versions to install. Currently it responds with hardcoded data
2022-07-27 17:00:07 +05:30
Amber Brown
d9f33a0dc6
consistently use our uuids
2022-07-27 15:07:29 +10:00
Amber Brown
1e3eff799a
generate using them in code
2022-07-27 13:38:00 +10:00
Srinivas Atmakuri
e1258e9ff6
Prevent AdminAction redeploy if VM has an ephemeral OS disk
...
Redeploying a VM with an ephemeral OS disk will result in a error message,
stating that the VM has an ephemeral OS disk and cannot be redeployed.
If a VM that has an ephemeral OS disk is redeployed it will never become ready,
due to the fact that the VM's OS is re-provisioned and
the cluster machine approver will not allow the "new" machine
to join the cluster again.
2022-07-19 11:20:56 +05:30
Goutham Muguluvalli Niranjan
1dbeec99c1
fix operation uniqueness ( #2233 )
...
* adding subscription ID check before returning operation details
* adding tests to verify error return when no subscription matchwith operation
* import libs are re-arranged as per the standards
2022-07-08 14:10:31 -04:00
Anshul Verma
a1a7444e0b
add: Getpodlogs kubeaction api ( #1885 )
2022-06-02 11:56:07 +02:00
Jory Horeman
940c44d07c
Master resize ( #1889 )
...
* master resize GA
2022-05-10 14:45:03 -04:00
Shawn Bai
5404012838
Added a new function for a hardcoded filter of namespaces ( #1994 )
2022-05-09 09:41:42 +01:00
Aman Verma
a53082acb9
Enable first basic linters in ARO ( #2060 )
...
* Enable first basic linters in ARO
* Remove modules-download-mode from the linter run config
2022-04-19 12:35:01 -04:00
Jeremy Facchetti
d9d9fa0ed5
renamed oddly named metrics.Interface to Emitter
2022-04-11 15:27:22 +02:00
Ari Lima
5c0137ac13
Filter out unwanted data from azure list geneva action ( #1969 )
...
* filter our Microsoft.Compute/snapshots from azure list geneva action
* change filter input for test
2022-03-16 22:10:11 -04:00
Mikalai Radchuk
4064d6a62a
Minor ARO operator refactoring
...
* Gets rid of exported constants like `ENABLED` where exported constants are not required
* Gets rid of constant concatenations like `CONFIG_NAMESPACE + ".enabled"` to make search easier
* Removes unnecessary `Copy` method of `OperatorFlags` stuct as well as package level `DefaultOperatorFlags` variable.
Introduces `DefaultOperatorFlags()` instead.
2022-03-07 15:42:53 +00:00
David Newman
89e051b015
fix: HTTP 500 from "List cluster Azure resource" Geneva Action for unknown resource types ( #1978 )
...
* If don't have an apiVersion defined for a resource, then skip over it instead of returning an error.
* Reword the comment.
* Double quote the resource type in the log warning message.
Co-authored-by: Mikalai Radchuk <509198+m1kola@users.noreply.github.com>
2022-02-24 08:36:55 -05:00
Brendan Bergen
99c52b51eb
Re-enable Egress Lockdown
...
Enable egress lockdown feature by default on new clusters while also
allowing current clusters to be admin-upgraded with the new feature
Co-authored-by: Ben Vesel <10840174+bennerv@users.noreply.github.com>
2022-02-23 11:26:46 -07:00
bennerv
2c816ed966
Add geneva action to reconcile a failed NIC
2022-01-31 19:34:33 -05:00
Ben Vesel
3c9cda96c8
Merge pull request #1895 from Makdaam/operation_update
...
adding description for the listadmincredentials action
2022-01-14 09:24:11 -05:00
Leszek Jakubowski
1e843cfef3
adding description for the listadmincredentials action
2022-01-12 15:34:28 +01:00
Amber Brown
7643e0c52c
frontend tests for flags
2022-01-12 10:55:22 +11:00
Amber Brown
e6cb49a29f
Add a putorpatch admin test
2021-11-16 16:07:14 +11:00
Amber Brown
f8e49ef31a
Add new Maint type to the admin API
2021-11-16 16:07:14 +11:00
Ben Vesel
d9841e8f64
Merge pull request #1827 from bennerv/delete-gateway-race-condition
...
Fix race condition in the gateway doc deletion
2021-11-11 10:25:02 -05:00
bennerv
7b70040dd4
Disable gateway on create and remove gatewayDomains on PUCM
2021-11-05 15:19:10 -04:00
Amber Brown
8e797d2fef
Add test for validatestatic checking registryprofile, enable the static validator in putorpatch, and fix incorrect putorpatch test
2021-10-26 09:32:27 +01:00
Ben Vesel
86737a66c8
Merge pull request #1778 from bennerv/enable-gateway-for-new-clusters
...
Remove gateway check for ARM feature flag on cluster create
2021-10-15 11:24:31 -04:00
Drew Anderson
a0831d38dc
feedback response
2021-10-13 12:41:42 +01:00
Drew Anderson
038b73f0bb
Update pkg/frontend/adminactions/resources_list_test.go
...
Co-authored-by: Mikalai Radchuk <509198+m1kola@users.noreply.github.com>
2021-10-13 12:41:42 +01:00
Drew Anderson
f2ac9b2b6f
functions renamed, duplicates moved to tt.Run()
2021-10-13 12:41:42 +01:00
Drew Anderson
35c49f8bb4
updated preallocation
2021-10-13 12:41:42 +01:00
Drew Anderson
153911ae8c
feedback response
2021-10-13 12:41:42 +01:00
Drew Anderson
af7d8073e4
Simplify test loops, add enable diskencryptionsets, add fail diskencryptionsets
2021-10-13 12:41:42 +01:00
Drew Anderson
a12cc75a7c
Add DiskEncryptionSet to geneva action ResourcesList
2021-10-13 12:41:42 +01:00
bennerv
1168f7ddd0
Remove gateway check for ARM feature flag on cluster create
2021-10-08 17:43:51 -04:00
Ross Bryan
d44137ceda
add test for defaults, update frontend put/patch tests
2021-09-24 13:32:16 -04:00
Amber Brown
073e3e6246
Change kubernetes's runtime import name to kruntime
2021-08-25 11:51:32 +01:00
Mangirdas Judeikis
13fc1af228
Merge pull request #1668 from mjudeikis/arm.spec.adjust
...
ARM spec adjust
2021-08-20 10:49:08 -02:00
Mangirdas Judeikis
63382712ce
Adjust swagger as per ARM requirments
2021-08-20 12:09:56 +01:00
Jim Minter
ed319c139b
update rp
2021-08-19 10:30:29 -04:00
Jim Minter
1f909d4b9b
move from network 2019-07-01 to 2020-08-01
2021-08-19 10:17:45 -04:00
Mangirdas Judeikis
b163c66ea0
Merge pull request #1664 from mjudeikis/storage.client.bump
...
Storage Lockdown -2 - Update storage client
2021-08-17 06:11:50 -02:00
Mangirdas Judeikis
5efde463fb
Set Defaults functionality ( #1654 )
...
* Add internal API defaulting code
* ListAdminKubeconfig -> ListAdminCredentials
2021-08-11 15:21:05 +01:00
Mangirdas Judeikis
80c2fa7cca
update storage client
2021-08-10 09:21:38 +01:00
Nils Elde
b73b642bad
rename Streams to UpgradeStreams for clarity
2021-08-09 11:43:06 -04:00
Mangirdas Judeikis
6ba3d3b1bd
rename 20210131 -> 20210901
2021-07-20 12:15:25 +01:00
Mikalai Radchuk
66c9d81d50
Unit test improvements
...
* Moves gomock.NewController(t) call into subtests, where possible
* Adds missing t.Run(tt.name, ...) calls
2021-07-07 13:10:43 +01:00
Nils Elde
4c59ba73f5
use AROEnvironment everywhere
2021-06-24 10:19:16 -04:00
Mangirdas Judeikis
0b48334fb6
tests nits
2021-06-10 08:14:34 +01:00
Mangirdas Judeikis
3d95bffcb1
Add API generation for kubeconfig
2021-06-08 13:16:08 +01:00
Jim Minter
768040d8b9
add DisableReadinessDelay feature flag for faster development startup
2021-05-11 11:48:19 -04:00
Jim Minter
7182ad9299
fix healthz access logging
2021-05-11 11:46:27 -04:00
Mangirdas Judeikis
4039d66ac8
Add systemData handling ( #1412 )
...
Add systemData into document and handling in the frontend
2021-05-06 13:42:04 +01:00
Jim Minter
81229ae196
for clarity, rename IsDevelopmentMode -> IsLocalDevelopmentMode
2021-04-23 10:25:46 -05:00
Jim Minter
e9482f9ada
remove isDevelopment test from Headers()
2021-04-23 10:25:46 -05:00
Jim Minter
d37a04d66d
add RequireD2sV3Workers feature flag
2021-04-23 10:25:45 -05:00
Ivan Sim
5eb56f7ed3
Add IFxAudit Logging To Admin Portal ( #1411 )
...
* Add ifxaudit logging to admin portal
Signed-off-by: Ivan Sim <isim@redhat.com>
* Update comment in test
Signed-off-by: Ivan Sim <isim@redhat.com>
2021-04-20 10:01:06 +01:00
Jim Minter
10554999eb
remove pkg/util/deployment and revert to isDevelopment bool
2021-04-08 09:12:13 -05:00
Naveen Malik
b76aeffbf0
Removed uuid facade recently added.
...
The facade was inconsistently used and was replicating what was already
in uuid.Must(...)
2021-04-01 10:23:03 -04:00
Naveen Malik
d5c35ca3c5
Move from github.com/satori/go.uuid to github.com/gofrs/uuid
...
Why: https://www.whitesourcesoftware.com/vulnerability-database/WS-2018-0594
Requires updating azure-sdk-for-go, moved to latest release
Created wrapper util for gofrs/uuid as NewV4() now returns 2 args and we use it a lot in-line
Vendor updates coming in separate commit to keep this one clean.
There is no v1.2.1 tag for these repos on github.com.
A replace was added for these to 'master'.
Running `go mod vendor` updated the value from 'master' to what you see
in go.mod now.
The v0.0.0 versions needed excluded to get them to drop from go.sum.
Do not exlude v1.2.0 or dependencies cannot be resolved.
2021-03-30 17:13:29 -04:00
Jim Minter
fc2c145412
resource gets in list_resources should not be fatal if the ARM cache is out of date
2021-03-17 10:45:53 -06:00
Jim Minter
67be315915
prevent writing to RBAC using Geneva Actions
2021-03-05 12:24:42 -06:00
Ivan Sim
e0d54c2cb7
Update IFxAudit Target Resource Fields ( #1351 )
...
* Set ifxaudit target resource name to the resource URI, instead of
the cluster name
During the auditing process, the audit team uses the target resource
fields to identify the affected resources.
Also, fix incorrect ordering of the return values.
Signed-off-by: Ivan Sim <isim@redhat.com>
2021-03-05 09:52:24 -06:00
Jim Minter
d68fda1888
noop fixup imports
2021-03-02 13:17:01 -06:00
Mangirdas Judeikis
3ac59dc6fd
Merge pull request #1352 from jim-minter/pagination
...
Paginate in monitor and frontend (Geneva actions)
2021-03-02 06:06:35 -02:00
Jim Minter
9e99135756
protect frontend memory by not reading in more than 1000 items via geneva action
2021-03-01 18:27:01 -06:00
Jim Minter
c9c966cfcf
Partially revert #1071 : wait for 2 mins before advertising readiness
2021-03-01 18:20:45 -06:00
Jim Minter
d1b4b1264b
move admin action functions handling unstructured out of dynamic helper
2021-02-26 17:17:19 -06:00
Jim Minter
f19ecf2a65
remove dns validation from upgrade geneva action
2021-02-23 11:38:49 -06:00
Jim Minter
18bc7fab39
disable ifx audit logging for now ( #1301 )
...
* don't audit /healthz/ready
* disable ifx audit logging for now.
the collector is not yet configured server side; the fluent bit version we're
on (1.3.11) is ancient and doesn't support rewrite_tag; hence we're spamming
our logs with ifxaudit lines
2021-02-09 07:31:55 +00:00
Jim Minter
bfdf696ff5
abandon waiting for 2 minutes before indicating readiness
2021-02-08 11:02:20 -06:00
Ivan Sim
a6ef29638f
Collect Audit Logs From RP Frontend ( #1243 )
...
* Update RP frontend to collect audit logs
1. Add a new middleware to audit inbound requests
2. Requests to the Azure 'operationsstatus' endpoints are skipped
3. Remove the embedded 'env' from the audit log hook to decouple the
dependency. The 'env' is passed in to the Audit middleware
4. Replace unnecessary custom string types with basic string types
5. Update the testutil 'AssertLoggingOutput' method to skip asserting
audit logs to reduce flakiness in tests. Audit logs assertion is done
in a new 'audit.AssertAuditingOutput()' testutil method
Signed-off-by: Ivan Sim <isim@redhat.com>
* Address Troy's feedback
Signed-off-by: Ivan Sim <isim@redhat.com>
* Update fluent-bit config with rewrite_tag filter
This filter rewrites the input tag of journald logs that have the field
LOGKIND=ifxaudit, to ifxaudit. Using a different tag for ifxaudit logs
allows us to separate them from non-audit logs in the mdsd
configuration.
Signed-off-by: Ivan Sim <isim@redhat.com>
* Address Jim's feedback
Signed-off-by: Ivan Sim <isim@redhat.com>
* New changes per discussion with Jim
1. Merge the 'audit' middleware with the 'log' middleware
to avoid type assertions
3. Update security_test.go with audit test
4. Remove pointer reference to audit constructor
5. Add new audit log entry to testinfra struct
Signed-off-by: Ivan Sim <isim@redhat.com>
* Address MJ's feedback
1. Add unit test to test supported URL patterns
Signed-off-by: Ivan Sim <isim@redhat.com>
* Address Jim's feedback
1. Move adminOp 'if' conditional to log middleware
2. Extract out the 'if' conditional check into a helper function
3. Add start and end symbols to new regex expressions
Signed-off-by: Ivan Sim <isim@redhat.com>
2021-02-04 11:09:06 +00:00
Amber Brown
f55870d1a0
turn custom DNS upgrade errors into 500s with text
2021-02-01 12:14:25 +11:00
Jim Minter
454a93ab72
pass enriched log to enrichers
2021-01-25 10:58:56 -06:00
Jim Minter
68db0de021
bump compute API to 2020-06-01
2021-01-21 19:21:15 -06:00
Amber Brown
26007b15b3
4.6.12
2021-01-19 10:08:34 -06:00
Mikalai Radchuk
f2c093fd71
Adds a CreatedAt field into oc doc
2021-01-15 12:04:10 +00:00
Nils Elde
a33bd7173f
split k8s and az actions
2021-01-13 15:26:18 -05:00
Jim Minter
7a14788cea
renames:
...
cipher -> aead
encrypt/decrypt -> seal/open
aeadCipher -> xChaCha20Poly1305
2020-12-14 11:18:57 -06:00
Jim Minter
671eee7c03
Merge pull request #1058 from jim-minter/portal
...
Admin Portal
2020-12-10 16:53:07 -06:00
Troy Connor
82b1c873c5
remove TenantID from ServicePrincipalProfile in admin api
2020-12-09 22:15:54 -05:00
Jim Minter
64c3be1aec
update test/util/listener to use DialContext
2020-12-09 16:22:50 -06:00
Troy Connor
ae9fc5d3e2
remove tenantID from openshiftclustersdocument
2020-12-09 17:15:01 -05:00
Mangirdas Judeikis
d4a80f1a52
add comments
2020-12-02 17:50:54 +00:00
Nils Elde
b9d630572c
Make Azure clients cloud aware
2020-11-25 10:51:39 -05:00
Jim Minter
8b5c7921cd
Merge pull request #1165 from jim-minter/golangci-lint
...
Enable linting
2020-11-19 14:50:58 -06:00
Jim Minter
9f1e216bec
lint fixes
2020-11-19 08:09:59 -06:00
Jim Minter
c2888e0dab
remove service keyvault from env.Core
2020-11-19 07:54:22 -06:00
Nils Elde
f9b9135ce8
try to improve some names; return exported types
2020-11-13 16:34:33 -05:00
Nils Elde
a4c2278be0
Initial changes to allow cloud awareness
2020-11-13 11:43:28 -05:00
Jim Minter
1ab11ffbdb
refactor apiversions
2020-11-12 21:01:07 -06:00
Jim Minter
39ca43d7a3
remove unused resourcesClient List function
2020-11-12 21:01:06 -06:00
Jim Minter
39f70444eb
workaround LB/PLS bug
2020-11-06 11:36:00 -06:00
Mangirdas Judeikis
814e36d73e
upgrade to 4.5
2020-11-06 11:35:59 -06:00
Mangirdas Judeikis
3ae93869fa
context refactor for k8s 1.18
2020-11-06 11:35:58 -06:00
Jim Minter
09c606dddd
set ProvisionedBy on front end in install
2020-11-05 09:26:59 -06:00
Amber Brown
c398ba6366
add a CreatedBy field to the openshiftclustersproperties document and populate it in the frontend
2020-11-05 13:30:58 +11:00
Amber Brown
ab81ab2627
verify the wanted docs in osc_putorpatch_test
2020-11-05 13:29:17 +11:00
Mangirdas Judeikis
1f8949cce3
propagate cvo error to geneva
2020-11-04 14:31:07 +00:00
Mangirdas Judeikis
fe75e741d4
Merge pull request #1096 from jim-minter/remove-jmespath
...
remove jmespath: it's now handled in C#
2020-10-27 09:12:06 -02:00
Jim Minter
e85af595b8
Merge pull request #1068 from nilsanderselde/upgrade-allow-minor-option
...
Check if Y version cluster upgrade is allowed
2020-10-26 16:45:44 -06:00
Jim Minter
28d2aa2583
edits
2020-10-26 16:37:14 -06:00
Jim Minter
c9dff09bf2
remove jmespath: it's now handled in C#
2020-10-26 09:45:10 -06:00
Jim Minter
f333db5e6b
don't let any in-place modifications of r affect our "sent response" logging
2020-10-23 19:15:01 -05:00
Nils Elde
9592b62756
add flag to allow Y upgrades, refactor upgrade logic, improve tests
2020-10-23 13:47:14 -04:00
Mangirdas Judeikis
eeb7552159
remove must-gather as it very flaky
2020-10-22 15:01:23 +01:00
Mangirdas Judeikis
96cd0030db
Merge pull request #1060 from jim-minter/genrm
...
remove stale mock files
2020-10-14 11:17:27 -02:00
Jim Minter
9bf2896459
elide functions in test/database using ... syntax
2020-10-13 19:17:02 -05:00
Jim Minter
bbcf2997cc
typo/style/standardisation fixes to check.go
2020-10-13 19:16:52 -05:00
Jim Minter
56e74d694a
remove stale mock files
2020-10-13 12:42:03 -05:00
Amber Brown
1033d2ed11
Merge remote-tracking branch 'upstream/master' into hawkowl/frontend-test-refactor
2020-10-13 14:28:28 +11:00
Amber Brown
b79e0a84a2
fix unit tests to use individual db clients vs database.Database
2020-10-13 13:55:13 +11:00
Jim Minter
20af47f0e6
refactor test/util/log to allow matching of arbitrary log fields
2020-10-09 09:55:43 -05:00
Jim Minter
5f5713ec7a
remove database.Database
2020-10-08 09:41:18 -05:00
Jim Minter
7248b32892
Merge pull request #1040 from olga-mir/fix-get-serial-console-ga
...
Add check for nil pointer in get serial log GA
2020-10-07 20:36:38 -05:00
Olga Mirensky
6043a747d7
Add check for nil pointer in get serial log GA
2020-10-06 15:22:26 +11:00