-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to support AAD users and groups too
- Loading branch information
Showing
3 changed files
with
25 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,19 @@ | ||
apiVersion: azure.microsoft.com/v1alpha1 | ||
kind: MySQLAADUser | ||
metadata: | ||
name: matthchr-mi-2 | ||
name: mysqlaaduser-sample | ||
spec: | ||
# TODO: Fix this to be more generic names | ||
server: matthchr-mysql-serv | ||
dbName: matthchr-mysql-db | ||
resourceGroup: matthchr-rg | ||
clientId: 519fadb2-1737-4e6b-ac09-a8632da37766 | ||
server: mysqlserver-sample | ||
dbName: mysqldatabase-sample | ||
resourceGroup: resourcegroup-azure-operators | ||
# AAD ID is the ID of the user in Azure Active Directory. | ||
# When creating a user for a managed identity this must be the client id (sometimes called app id) of the managed identity. | ||
# When creating a user for a "normal" (non-managed identity) user or group, this is the OID of the user or group. | ||
aadId: 00000000-0000-0000-0000-000000000000 | ||
roles: | ||
#now only supports granting privileges to a new user. Valid privileges are listed below: | ||
#SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, RELOAD, PROCESS, REFERENCES, INDEX, ALTER, SHOW DATABASES, | ||
#CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, REPLICATION SLAVE, REPLICATION CLIENT, | ||
#CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, CREATE USER, EVENT, TRIGGER | ||
# Valid privileges are listed below: | ||
# SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, RELOAD, PROCESS, REFERENCES, INDEX, ALTER, SHOW DATABASES, | ||
# CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, REPLICATION SLAVE, REPLICATION CLIENT, | ||
# CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, CREATE USER, EVENT, TRIGGER | ||
# This adds the privileges to the specified database | ||
- SELECT | ||
# Specify a specific username for the user | ||
# username: mysqluser-sample | ||
# Specify adminSecret and adminSecretKeyVault if you want to | ||
# read the MYSQL server admin creds from a specific keyvault secret | ||
# adminSecret: mysqlserver-sample | ||
# adminSecretKeyVault: asokeyvault | ||
|
||
# Use the field below to optionally specify a different keyvault | ||
# to store the secrets in | ||
# keyVaultToStoreSecrets: asokeyvault |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters