-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Signed-off-by: Alexandre Gaudreault <[email protected]>
- Loading branch information
1 parent
b17c5e4
commit b4a63ae
Showing
5 changed files
with
146 additions
and
6 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 |
---|---|---|
|
@@ -25,9 +25,9 @@ Read the [RBAC documentation](../rbac.md#fine-grained-permissions-for-updatedele | |
|
||
### Removal of `argocd_app_sync_status`, `argocd_app_health_status` and `argocd_app_created_time` Metrics | ||
|
||
The `argocd_app_sync_status`, `argocd_app_health_status` and `argocd_app_created_time`, deprecated and disabled by | ||
The `argocd_app_sync_status`, `argocd_app_health_status` and `argocd_app_created_time`, deprecated and disabled by | ||
default since 1.5.0, have been removed. The information previously provided by these metrics is now available as labels | ||
on the `argocd_app_info` metric. | ||
on the `argocd_app_info` metric. | ||
|
||
#### Detection | ||
|
||
|
@@ -39,6 +39,38 @@ If it is not set to true, you can safely upgrade with no changes. | |
If you are using these metrics, you will need to update your monitoring dashboards and alerts to use the new metric and | ||
labels before upgrading. | ||
|
||
### Changes to RBAC with Dex SSO Authentication | ||
|
||
When using Dex, the `sub` claim returned in the authentication was used as the subject for RBAC. That value depends on | ||
the Dex internal implementation and should not be considered an immutable value that represent the subject. | ||
|
||
The new behavior will request the `federated:id` [scope](https://dexidp.io/docs/configuration/custom-scopes-claims-clients/) from Dex, and the new value used as the RBAC subject will be based | ||
on the `federated_claims.user_id` claim instead of the `sub` claim. | ||
|
||
If you were using the Dex sub claim in RBAC policies, you will need to update them to maintain the same access. | ||
|
||
You can know the correct `user_id` to use by decoding the current `sub` claims defined in your policies. You can also configure which | ||
value is used as `user_id` for some [connectors](https://dexidp.io/docs/connectors/). | ||
|
||
```sh | ||
$> echo "ChdleGFtcGxlQGFyZ29wcm9qLmlvEgJkZXhfY29ubl9pZA" | base64 -d | ||
|
||
[email protected]_conn_i% | ||
``` | ||
|
||
```yaml | ||
# Policies based on the Dex sub claim (wrong) | ||
- g, ChdleGFtcGxlQGFyZ29wcm9qLmlvEgJkZXhfY29ubl9pZA, role:example | ||
- p, ChdleGFtcGxlQGFyZ29wcm9qLmlvEgJkZXhfY29ubl9pZA, applications, *, *, allow | ||
|
||
# Policies now based on federated_claims.user_id claim (correct) | ||
- g, [email protected], role:example | ||
- p, [email protected], applications, *, *, allow | ||
``` | ||
If authenticating with the CLI, make sure to use the new version as well to obtain an authentication token with the | ||
appropriate claims. | ||
## Other changes | ||
### Using `cluster.inClusterEnabled: "false"` | ||
|
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
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