Enable client authentication and authorization
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 20/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- kubernetes, rust
- Ambito
- authentication, authorization, infrastructure, security
Direzione di ricerca
Inizia dalla documentazione sulla sicurezza di OPA collegata, quindi esamina l’OPA Operator, gli authorizers, operators, demos e integration tests indicati nell’elenco delle attività. Il lavoro è completato quando le richieste non autenticate vengono rifiutate, gli authorizers utilizzano certificati client e i demos e tests documentati coprono il nuovo flusso di autenticazione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Description
As a user of OpenPolicyAgent (OPA) I want to be sure that only authenticated & authorized clients can get data (which might include PII data from UserInfoFetcher and other sources).
OPA supports Bearer tokens and Client TLS certificates. The latter fits better into our platform so it's the preferred way but the bearer token can be used as well if there are any hurdles towards implementing client certificates.
Value
We want the SDP platform to be as secure as possible by default and design and in addition this will be a requirement of the Cyber Resilience Act we'll have to fulfill.
Therefore, we need to authenticate and authorize any client requests coming to OPA.
Dependencies
This requires the Secret Operator (I assume) to provide the necessary client certificates for all clients (i.e. authorizers) to be able to authenticate against OPA.
Tasks
- [ ] Change OPA Operator to set the required settings for authentication
- [ ] Create default authorization rule in OPA
- [ ] Change authorizers to use client certificates to authenticate themselves against OPA
- [ ] Change operators to provision the necessary client certificates
- [ ] Update demos and integration tests to use this functionality
- [ ] Document that authentication is now used for OPA
Acceptance Criteria
- OPA does not accept unauthenticated requests anymore
- All authorizers authenticate themselves when speaking to OPA
(Information Security) Risk Assessment
This will strictly make our product more secure and helps us with regulations such as the Cyber Resilience Act.
Additional risks are the need to create TLS certificates and protect them but that is already part of the platform.
Release Notes
All authorizers speaking to OpenPolicyAgent (OPA) now use Client TLS certificates to authenticate themselves against OPA.
Remarks
Be aware of this section in the docs:
Note that TLS authentication does not disable non-HTTPS listeners. To ensure that all your communication is secured, it should be paired with an authorization policy (see below) that at least requires the client identity (input.identity) to be set.
In general please read the docs on this feature before starting any implementation.
- Lingua principale
- Rust
- Stelle
- 21
- Fork
- 5
- Merge medio
- 12h 44m
- PR unite (30g)
- 11
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di stackabletech/opa-operator
-
type/bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 52/100
stackabletech/opa-operator#823 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 30/100
stackabletech/opa-operator#766 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
stackabletech/opa-operator#733 ·
-
User Info Fetcher: Document data differences between backends, and/or how to query it manually Aperta
Difficoltà 2/5 Mezza giornata Idoneità per principianti 50/100
stackabletech/opa-operator#724 ·
-
type/bug
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
stackabletech/opa-operator#718 ·
Tutte le issue di stackabletech/opa-operator
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
state:needs triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
zed-industries/zed#64680 · 2 commenti ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
RustPython/RustPython#8802 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
TheLarkInn/aipm#2390 ·