Skip to content

Commit

Permalink
Blewis/stack spec scoped variable (#226)
Browse files Browse the repository at this point in the history
* add stack spec scoped variable

* update stack spec scoped variable source
  • Loading branch information
blewisCycle authored Dec 8, 2023
1 parent d38287d commit c85bd12
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
title: StackSpecScopedVariableRawSource
type: object
description: A stack spec resource.
required:
- type
- details
properties:
type:
type: string
enum:
- raw
details:
type: object
required:
- value
- blob
- secret
properties:
value:
type: string
description: The value of the variable.
blob:
type: boolean
description: A boolean where true represents the text the user is entering will be multi line.
secret:
nullable: true
type: object
required:
properties:
iv:
type: string
description: A string describing the IV Hex associated with the encryption of the variable
hint:
type: string
description: A user specified hint that will suggest what the encryption key might be
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
title: StackSpecScopedVaribaleUrlSource
type: object
description: The `URL` type of scoped variable `value`, referred to as a source. This means the value of this variable is the result of calling the given URL. It is dynamic, in that Cycle will refetch the contents on every start.
required:
- type
- details
properties:
type:
type: string
description: The type of source value, can be either `raw` or `url`.
enum:
- url
details:
type: object
required:
- url
- headers
- auth_token_url
properties:
url:
type: string
description: The URL to call to produce the value.
headers:
type: object
description: Additional headers that can be attached to the URL request. Useful for adding metadata to third-party services.
additionalProperties: {}
auth_token_url:
nullable: true
type: string
description: A URL that can be provided to authenticate with a third party secret service. Cycle will make a request to this URL before fetching the secret URL, and use the response as the value of an Authorization header when requesting the secret.

0 comments on commit c85bd12

Please sign in to comment.