Skip to content

Removing function token support#254

Merged
ChrisFriesen merged 2 commits intomainfrom
chris/rm-fn-tokens
Mar 16, 2023
Merged

Removing function token support#254
ChrisFriesen merged 2 commits intomainfrom
chris/rm-fn-tokens

Conversation

@ChrisFriesen
Copy link
Contributor

Looking at the Prometheus metric function_token_authorization function tokens are no longer being used.

@ChrisFriesen ChrisFriesen marked this pull request as draft March 14, 2023 17:16
rootCmd.AddCommand(runCmd)

runCmd.PersistentFlags().StringP("token", "t", "", "function token to use")
runCmd.PersistentFlags().StringP("token", "t", "", "authorization token to use")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
runCmd.PersistentFlags().StringP("token", "t", "", "authorization token to use")
runCmd.PersistentFlags().StringP("token", "t", "", "authentication token to use")

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But we don't know who they are, just that they are authorized to run the function

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah interesting. Good point. I'm good either way in that case.

Copy link
Contributor

@justin1121 justin1121 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM so far. Just one typo i think.

@ChrisFriesen ChrisFriesen marked this pull request as ready for review March 14, 2023 17:20
justin1121
justin1121 previously approved these changes Mar 14, 2023
bendecoste
bendecoste previously approved these changes Mar 14, 2023
@ChrisFriesen ChrisFriesen dismissed stale reviews from bendecoste and justin1121 via 518f329 March 14, 2023 19:08
Reader: reader,
Insecure: insecure,
PcrSlice: pcrSlice,
Public: public,
Copy link
Contributor

@justin1121 justin1121 Mar 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would this make this a breaking change for creating public functions then?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently public functions are only denoted by the lack of functionTokenPublicKey sent to runtime as part of the deploy request, this change in runtime should gracefully be backwards compatible with the removal of function tokens for anyone using an old sdk/cli.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it. Do these need to be merged in a certain order then?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nvm I see what's going on in the runtime PR now.

@ChrisFriesen ChrisFriesen merged commit 07784b6 into main Mar 16, 2023
@ChrisFriesen ChrisFriesen deleted the chris/rm-fn-tokens branch March 16, 2023 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants