bennerv
7be7c5c24c
remove master key authorizer in favor of local auth
2024-11-05 21:03:00 -05:00
Maitiú Ó Ciaráin
07672dde9c
Switch to using the secondary key ( #3427 )
...
* Switch to using the secondary key
* Documentation update
* Log the name of the key used
* Pass log arg through
* Fix import ordering
* Shorten line
2024-03-21 11:28:58 -04:00
Amber Brown
b4e8930830
Make env know what the service component its running is ( #3254 )
...
* make env know what the service component its running is
* regen mocks
2024-01-17 15:17:14 +11:00
Nont
e7f514086d
Migrate documentdb client from sdk track 1 to track 2 client ( #3255 )
...
* Create documentdb track 2 client and mockgen
* Replace track 1 documentdb with track 2
* Refactor per comments
* Delete unused client
* Fix generated env mocks
2023-11-17 15:34:17 -05:00
Aldo Fuster Turpin
a3b9613323
Refactor/env vars access ( #2693 )
...
Limits the dependency between packages to make the code more readable
2023-06-01 14:10:36 +02:00
Matthew Barnes
176a7c9fbe
azureclient: Add scope members to AROEnvironment
...
Scope strings should mostly go away once the RP code is fully
migrated to the newer TokenCredential-based Azure SDK, but this
was requested by multiple peer-reviewers.
2023-04-11 16:32:49 -04:00
Matthew Barnes
d988fb6f9e
hack/db: Port to azidentity
2023-04-11 16:32:49 -04:00
Matthew Barnes
4d264806a2
pkg/env: Port to azidentity
2023-04-11 16:32:49 -04:00
Amber Brown
2876a8e64c
Revert "Database tests are placed in tests/database." ( #2629 )
...
This reverts commit 39326bca8c
.
2023-01-12 16:40:19 +11:00
Steven Fairchild
39326bca8c
Database tests are placed in tests/database.
...
httptest is used to send http responses.
Add Mock for databaseaccounts.
Add DatabaseClient, MasterKeyClient interfaces to allow for mock testing.
Add unit tests for subscriptions.
Add billing unit tests.
Add default http.Client to database.go, update references to use DatabaseClient interface. This will keep from importing "net/http" in every package calling it and allow easy changing within database if needed."
Add unit tests for clustermanager in database package
Add asyncoperations unit tests.
Add monitor tests.
Add gateway unit tests.
Add openshiftversions tests.
Add portal tests.
Add openshiftclusters tests.
Tests for billing and subscriptions are placed in test/database to reuse
fake testing code due without import cycling.
2022-12-16 13:03:07 -05:00
Jim Minter
9b3c4383a4
add encryption.multi
2021-09-10 11:26:20 -04:00
Jim Minter
6aecbe085a
add GetBase64Secrets
2021-09-10 11:26:20 -04:00
Roland Kunkel
af1d79047d
User RP credentials in DB script ( #1559 )
2021-06-23 11:59:56 +01:00
Jim Minter
7dde80a432
remove NewMSIAuthorizer call from pkg/database
2021-05-11 11:48:19 -04:00
Jim Minter
7ed6032446
use local user's credentials for keyvault access in hack/db
2021-05-11 11:46:27 -04:00
Jim Minter
31fbebea89
update NewDatabaseClient to new go-cosmosdb API
2021-04-26 13:56:49 -05:00
Jim Minter
81229ae196
for clarity, rename IsDevelopmentMode -> IsLocalDevelopmentMode
2021-04-23 10:25:46 -05:00
Jim Minter
10554999eb
remove pkg/util/deployment and revert to isDevelopment bool
2021-04-08 09:12:13 -05:00
Jim Minter
a452396af6
move *KeyVaultSuffix to env
2021-02-09 08:52:28 -06:00
Jim Minter
7a14788cea
renames:
...
cipher -> aead
encrypt/decrypt -> seal/open
aeadCipher -> xChaCha20Poly1305
2020-12-14 11:18:57 -06:00
Jim Minter
17d4f2d663
remove key vault autodiscovery
2020-11-19 07:54:22 -06:00
Jim Minter
c2888e0dab
remove service keyvault from env.Core
2020-11-19 07:54:22 -06:00
Jim Minter
e80ffcffbf
remove env.GetBase64Secret from pkg/util/encryption
2020-11-19 07:53:25 -06:00
Jim Minter
5f5713ec7a
remove database.Database
2020-10-08 09:41:18 -05:00
Jim Minter
8cf6c9dbe7
internalise uuid into database clients
2020-10-08 09:41:18 -05:00
Jim Minter
335c6376fb
Move some env.Interfaces to env.Cores
2020-09-25 10:03:56 -05:00
Mikalai Radchuk
e201718d90
Adds pagination to API
2020-04-07 19:07:19 -05:00
Jim Minter
edd02eacbe
encryption fixups:
...
* pass cipher into database.NewDatabase, rather than bool
* unexport as much as possible
* remove backwards-compatibility and "read without key" options for now, adds too much complexity
2020-02-10 07:50:26 +00:00
Mangirdas Judeikis
468621f73c
add encrypt pkg
2020-02-07 09:37:41 +00:00
Mangirdas Judeikis
d36f0e72c6
add cosmosdb metrics
2020-01-25 09:05:37 +00:00
Mangirdas Judeikis
4292ed94d3
generate and bump code
2020-01-21 13:43:31 +00:00
Jim Minter
57f2b597a3
pass context to cosmosdb
2020-01-06 12:16:59 -06:00
Jim Minter
b1793e893a
allow database name to be parametrised
2019-12-29 12:44:31 -06:00
Jim Minter
224a09da61
remove unused contexts in database layer
2019-12-25 16:30:16 -06:00
Jim Minter
2a8d88618a
remove uuid type from database layer
2019-12-22 08:36:19 -06:00
Jim Minter
acb393d34d
remove api.Key type
2019-12-22 08:36:18 -06:00
Jim Minter
18e245b67e
package rename
2019-12-16 19:26:21 -06:00
Jim Minter
00e3c6555a
add code license boilerplate
2019-12-16 19:16:50 -06:00
Jim Minter
06b5067f1b
nits
2019-12-16 11:32:43 -06:00
Angus Salkeld
b121c554f5
Add GetLogger() to avoid duplicated code
2019-12-16 11:30:38 -06:00
Jim Minter
612c64a4c2
further shorten
2019-12-03 22:34:51 -06:00
Angus Salkeld
d1d895f0c3
log relative paths not absolute to make them more readable
2019-12-03 22:20:11 -06:00
Jim Minter
268576a8dc
standardise on 4-space indent for json
2019-12-03 19:13:19 -06:00
Jim Minter
e4b9093750
move environment checks
2019-12-01 22:50:42 -06:00
Jim Minter
69da5262cc
start rbac work: further rearrange service principals
2019-12-01 10:00:02 -06:00
Jim Minter
f249280ddc
breaking change: rename database and tables
2019-11-29 17:36:27 -06:00
Jim Minter
221a61c4fa
normalise ugorji json handling
2019-11-28 13:54:28 -06:00
Jim Minter
62ab803c0c
add top-level Database type
2019-11-28 07:11:34 -06:00
Jim Minter
d6f0078919
breaking change: separate out database key
2019-11-28 07:11:33 -06:00
Jim Minter
9b77ca6f5a
simplify cmd/rp/rp.go
2019-11-18 18:50:18 -06:00