What could be fixed in Security in Moonwalk? #46
Replies: 8 comments 19 replies
-
@whitlockjc Add your thoughts here please! |
Beta Was this translation helpful? Give feedback.
-
Security Schemes (formerly known as "Security Definitions") provide a way to describe the security scheme(s) used by your API. Unfortunately, the types supported by OpenAPI are not only limited but they often tie the credential location to the Security Scheme type. This proposal will add a generic way to define where a credential is and its format so that the consumer can have complete control over where credentials are used in their API. Not only would this allow consumers to specify their own Security Schemes without OpenAPI having to be the gatekeeper, but it also allows a level of flexibility not available now. There have also been extra Security Scheme properties that have been tacked on to support the growing needs of consumers, which would be alleviated (or moved in this case). Note: Sourced from the Motivation section of the original proposal. |
Beta Was this translation helpful? Give feedback.
-
Stu: How do influence the community to create more consistent implementations? Lots of variations of OAuth2. |
Beta Was this translation helpful? Give feedback.
-
The security section assume that there is just a single Idp across all the environments. You can only define a single authorisation and token endpoint. Could it be like the servers section for the API so that you can have environment specific idp endpoints. Also there is mention of mtls being able to be defined but I have never managed to find an example. of how to use it in the operations level. So I only have the following for the security schema: |
Beta Was this translation helpful? Give feedback.
-
Is that something like readOnly/writeOnly from OAI 3.0? |
Beta Was this translation helpful? Give feedback.
-
3.x issue move to Moonwalk: |
Beta Was this translation helpful? Give feedback.
-
Hi folks, I want to chime in here with another perspective. I think it would be really nice if OpenAPI security schemes could describe "real world" authn/authz flows like cookie authentication. I chatted about this recently with @darrelmiller and we concluded that the only way to describe this in OpenAPI 3.x is with: components:
securitySchemes:
cookieAuth:
type: apiKey
in: cookie
name: token which to me seems totally inadequate. For example, it does not indicate what operation is used to obtain the cookie -- typically this is something like "/login". Also, "apiKey" seems wrong. I think of getting an API key from the service through some out-of-band channel. Does anyone else think that this is a problem that needs fixing in Moonwalk? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
All reactions