Skip to content

Commit 70a40cc

Browse files
committed
Remove secret reference validation
1 parent 3328f8b commit 70a40cc

File tree

3 files changed

+0
-25
lines changed

3 files changed

+0
-25
lines changed

example/example.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,6 @@ async def main():
3232
print(item.title)
3333
# [developer-docs.sdk.python.list-items]-end
3434

35-
# [developer-docs.sdk.python.validate-secret-reference]-start
36-
# Validate secret reference to ensure no syntax errors
37-
try:
38-
await Secrets.validate_secret_reference("op://vault/item/field")
39-
except Exception as error:
40-
print(error)
41-
# [developer-docs.sdk.python.validate-secret-reference]-end
42-
4335
# [developer-docs.sdk.python.resolve-secret]-start
4436
# Retrieves a secret from 1Password. Takes a secret reference as input and returns the secret to which it points.
4537
value = await client.secrets.resolve("op://vault/item/field")

src/onepassword/secrets.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,3 @@ async def resolve(self, secret_reference):
3030
}
3131
)
3232
return str(loads(response))
33-
34-
@staticmethod
35-
async def validate_secret_reference(secret_reference):
36-
"""
37-
Validate the secret reference to ensure there are no syntax errors.
38-
"""
39-
await _invoke(
40-
{
41-
"invocation": {
42-
"parameters": {
43-
"name": "ValidateSecretReference",
44-
"parameters": {"secret_reference": secret_reference},
45-
}
46-
}
47-
}
48-
)

src/release/RELEASE-NOTES

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
The v0.1.2 release of the Python SDK brings:
22
* Support for item tags. You can now create, get, and edit tags within your 1Password items using item CRUD functions.
33
* Support for fetching one-time password codes using secret references. You can now fetch your TOTP code with the `secrets.resolve` function, using a secret reference for the TOTP field in your item. For example: "op://vault/item/field?=attribute=totp"
4-
* Support for validating secret references. You can now check that a secret reference is formatted correctly without having to resolve it or even authenticate, using the `validate_secret_reference` function.
54
* PyPI wheels for the Python SDK. You can now install the Python SDK via `pip3 install onepassword-sdk`
65
* Full support for optional values. You no longer have to manually set `details: None` or `section: None` when instantiating `ItemCreateParams`.
76
* Item creation now only requires specifying the vault ID, item category, and item title.

0 commit comments

Comments
 (0)