You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Plugin deployment option for different namespaces on Viya
Update readme to reflect that the scripts are now run separate configure-grafana.sh and then the appropriate register-oauth-client-*.sh
no longer need to provide the whole plugin url, just the version
Copy file name to clipboardExpand all lines: README.md
+31-10Lines changed: 31 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,13 +81,11 @@ This section is relevant only to internal users at SAS.
81
81
82
82
### Install a Released Version of the Plug-in
83
83
84
-
An installation script is provided to install the plug-in and configure Grafana. The installation script performs the following tasks:
85
-
* Modifies the Grafana deployment by adding the GF_INSTALL_PLUGINS environment variable to enable Grafana to install the plug-in.
86
-
* Configures a new `grafana.ini` file to enable OAuth authentication.
87
-
* Configures Grafana as an OAuth client with the chosen OAuth provider. Users of Grafana are directed to use the OAuth login page.
88
-
* Optionally installs Grafana for you.
89
-
90
-
Use the installation script to install the plug-in:
84
+
Installation scripts are provided to install the plug-in and configure Grafana. These scripts perform the following tasks:
85
+
* Modify the Grafana deployment by adding the GF_INSTALL_PLUGINS environment variable to enable Grafana to install the plug-in.
86
+
* Configure a new `grafana.ini` file to enable OAuth authentication.
87
+
* Configure Grafana as an OAuth client with the chosen OAuth provider. Users of Grafana are directed to use the OAuth login page.
88
+
* Optionally install Grafana for you.
91
89
92
90
1. Set the correct Kubernetes configuration file for your environment.
93
91
```
@@ -105,16 +103,39 @@ Use the installation script to install the plug-in:
105
103
```
106
104
export GRAFANA_NAMESPACE=grafana
107
105
```
108
-
5. Run the installation script, adjusting the command to specify the following variables:
106
+
5. Run `configure-grafana.sh`, adjusting the command to specify the following variables:
109
107
- The Kubernetes _namespace_ in which SAS Event Stream Processing is installed.
110
108
- The _version_ of the plug-in that you want to install. Ensure that you specify a version of the plug-in that is compatible with your version of Grafana.
111
-
- The _oauth-provider_ of the environment. Select one of the following options: **uaa**, **keycloak** or **viya**.
109
+
- The _oauth-provider_ of the environment. Select one of the following options: `uaa`, `keycloak` or `viya`.
112
110
> **Caution**: Running the installation script might overwrite any existing Grafana configuration.
6. Run one of the following three scripts, depending on your chosen OAuth provider. Adjust the command to specify the following variables.
117
+
- The Kubernetes namespace in which SAS Event Stream Processing is installed, _esp-namespace_.
118
+
- (Optional) The Kubernetes namespace in which Grafana is installed, _grafana-namespace_ if this differs from the namespace in which SAS Event Stream Processing is installed.
7. If your OAuth provider is the SAS Viya platform and Grafana is not running in the same namespace as the SAS Viya platform, you must update the Content Security Policy (CSP) for SAS Logon to allow the Grafana host name to be used as a target of form submission.
129
+
If you do not update the CSP, the browser blocks the redirect. You can update the CSP in one of the following two ways:
130
+
- Use SAS Environment Manager to update the _content-security-policy_ value under the _sas.commons.web.security_ section.
131
+
- Update the _sas-logon-app_ deployment to add the _SAS_COMMONS_WEB_SECURITY_CONTENTSECURITYPOLICY_ environment variable.
132
+
133
+
Update either SAS Environment Manager or the _sas-logon-app_ deployment with the following value, substituting the Grafana host name:
0 commit comments